diff options
author | delvh <dev.lh@web.de> | 2022-10-07 11:48:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-07 17:48:03 +0800 |
commit | 81d7270cde2960d52f5d987ec8b3fc3c679724a6 (patch) | |
tree | f0a860522937722e25e8b73aec8289b7815b2484 /web_src/less/_review.less | |
parent | 30ca91666ebd3168923baa82b4a17b039039d0a9 (diff) | |
download | gitea-81d7270cde2960d52f5d987ec8b3fc3c679724a6.tar.gz gitea-81d7270cde2960d52f5d987ec8b3fc3c679724a6.zip |
Add new CSS variables --color-accent and --color-small-accent (#21305)
At the moment, this is only used to replace the color of the `viewed`
checkbox and of the `has changed` label.
Previously, the used variable accentuated always either darker or
lighter, which meant that one theme looked good while the other didn't.
Co-authored-by: silverwind <me@silverwind.io>
Diffstat (limited to 'web_src/less/_review.less')
-rw-r--r-- | web_src/less/_review.less | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/web_src/less/_review.less b/web_src/less/_review.less index fd18ecb3d3..33e4003b2c 100644 --- a/web_src/less/_review.less +++ b/web_src/less/_review.less @@ -264,11 +264,12 @@ a.blob-excerpt:hover { } .changed-since-last-review { - margin: 0 5px; - padding: 0 3px; - border: 2px var(--color-primary-light-3) solid; - background-color: var(--color-primary-alpha-30); - border-radius: 7px; + border: 1px var(--color-accent) solid; + background-color: var(--color-small-accent); + border-radius: 15px; + padding: 4px 8px; + margin: -8px 0; // just like other buttons in the diff box header + font-size: .857rem; // just like .ui.tiny.button } .viewed-file-form { @@ -286,8 +287,8 @@ a.blob-excerpt:hover { } .viewed-file-checked-form { - background-color: var(--color-primary-light-6); - border: 1px solid var(--color-primary-light-4); + background-color: var(--color-small-accent); + border: 1px solid var(--color-accent); } #viewed-files-summary { |