diff options
author | silverwind <me@silverwind.io> | 2021-05-16 22:18:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-16 22:18:18 +0200 |
commit | a32bfd867dc1619f3247310d16845c8b7b854e0e (patch) | |
tree | 66ab4133649f61a9b9c194aea5c0b51fdb3f8da3 /web_src | |
parent | 892e6561ff76d1fb4fd498b7ac4ed4ff77acbb7b (diff) | |
download | gitea-a32bfd867dc1619f3247310d16845c8b7b854e0e.tar.gz gitea-a32bfd867dc1619f3247310d16845c8b7b854e0e.zip |
Issue sidebar and misc css fixes (#15524)
- Replace remaining font icons with SVG in issue sidebar
- Rework issue due date display
- Realign avatar in timeline
- Fix font size in repo search and code explore
- Consolidate active button styles
- Fix loading form on arc-green
- Align time tracker buttons vertically
Fixes: https://github.com/go-gitea/gitea/issues/15896
Diffstat (limited to 'web_src')
-rw-r--r-- | web_src/less/_base.less | 16 | ||||
-rw-r--r-- | web_src/less/_editor.less | 4 | ||||
-rw-r--r-- | web_src/less/_repository.less | 2 | ||||
-rw-r--r-- | web_src/less/helpers.less | 1 | ||||
-rw-r--r-- | web_src/less/themes/theme-arc-green.less | 15 |
5 files changed, 21 insertions, 17 deletions
diff --git a/web_src/less/_base.less b/web_src/less/_base.less index 4fef180c4c..224586b079 100644 --- a/web_src/less/_base.less +++ b/web_src/less/_base.less @@ -669,10 +669,16 @@ a.ui.card:hover, height: auto; } -.ui.loading.segment::before { +.ui.loading.segment::before, +.ui.loading.form::before { background: none; } +.ui.loading.form > *, +.ui.loading.segment > * { + opacity: .35; +} + .ui.loading.loading.input > i.icon svg { visibility: hidden; } @@ -1589,11 +1595,19 @@ a.ui.label:hover { box-shadow: none !important; } +.ui.button:focus, .ui.button:hover { background: var(--color-hover); color: var(--color-text); } +.ui.button:active, +.ui.active.button:active, +.ui.active.button:hover { + background: var(--color-active); + color: var(--color-text); +} + .ui.button.no-text .icon { margin: 0 !important; } diff --git a/web_src/less/_editor.less b/web_src/less/_editor.less index b785189dbb..6ddb1a3357 100644 --- a/web_src/less/_editor.less +++ b/web_src/less/_editor.less @@ -55,6 +55,10 @@ background: var(--color-active); } +.editor-statusbar { + color: var(--color-text-light); +} + .editor-loading { padding: 1rem; text-align: center; diff --git a/web_src/less/_repository.less b/web_src/less/_repository.less index a79634dd8f..ef241661dd 100644 --- a/web_src/less/_repository.less +++ b/web_src/less/_repository.less @@ -815,7 +815,7 @@ .avatar.image img { width: 20px; height: 20px; - margin-right: .5rem; + margin: 0 .25rem; } &:first-child:not(.commit) { diff --git a/web_src/less/helpers.less b/web_src/less/helpers.less index a79b4e7f34..3f58184f06 100644 --- a/web_src/less/helpers.less +++ b/web_src/less/helpers.less @@ -24,7 +24,6 @@ .word-break { word-wrap: break-word !important; - word-break: break-all !important; } .full-screen-width { width: 100vw !important; } diff --git a/web_src/less/themes/theme-arc-green.less b/web_src/less/themes/theme-arc-green.less index 93f317a371..c493a255c7 100644 --- a/web_src/less/themes/theme-arc-green.less +++ b/web_src/less/themes/theme-arc-green.less @@ -98,7 +98,7 @@ --color-menu: #2e323e; --color-card: #2e323e; --color-markup-table-row: #ffffff06; - --color-markup-code-block: #2a2e3a; + --color-markup-code-block: #292d39; --color-button: #353846; --color-code-bg: #2a2e3a; --color-shadow: #00000060; @@ -317,19 +317,6 @@ a.ui.basic.green.label:hover { color: var(--color-secondary-dark-6) !important; } -.ui.active.button:active, -.ui.button:active, -.ui.button:focus, -.ui.active.button { - background-color: #2e3e4e; - color: #dbdbdb; -} - -.ui.active.button:hover { - background-color: #475e75; - color: #dbdbdb; -} - .repository .navbar .active.item, .repository .navbar .active.item:hover { border-color: transparent !important; |