diff options
author | silverwind <me@silverwind.io> | 2020-12-27 11:53:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-27 18:53:53 +0800 |
commit | fe403725f45e4515ce89d6a4dfd01e9698d38ad9 (patch) | |
tree | a61908301ccdd4abb5c096e4da5b9fa60379ec68 /web_src/less/themes/theme-arc-green.less | |
parent | dd08853b10781177253b581fde482fe67ab14edf (diff) | |
download | gitea-fe403725f45e4515ce89d6a4dfd01e9698d38ad9.tar.gz gitea-fe403725f45e4515ce89d6a4dfd01e9698d38ad9.zip |
Improve basic button and label styles (#14119)
* Improve disabled styles for repo buttons
- Simplify disabled styling of label by matching for the disabled
attribute.
- Raise fomantic disabled opacity from .45 to .55 to for more contrast.
- Use CSS vars for basic button styles.
* restore clickability on label
* color tweaks and remove arc-green style
* slightly reduce button size
* consolidate vars
* also cover active class
* slightly more distinct active class
* remove useless rule
Diffstat (limited to 'web_src/less/themes/theme-arc-green.less')
-rw-r--r-- | web_src/less/themes/theme-arc-green.less | 58 |
1 files changed, 4 insertions, 54 deletions
diff --git a/web_src/less/themes/theme-arc-green.less b/web_src/less/themes/theme-arc-green.less index ca629188bc..9f35d4dafe 100644 --- a/web_src/less/themes/theme-arc-green.less +++ b/web_src/less/themes/theme-arc-green.less @@ -91,13 +91,10 @@ --color-input-border: #454a57; --color-input-border-hover: #505667; --color-navbar: #2a2e3a; - --color-label: #ffffff0d; - --color-label-hover: #ffffff20; - --color-label-basic: #00000030; - --color-label-basic-hover: #40404030; - --color-label-border: #ffffff28; - --color-hover: #ffffff0d; - --color-active: #ffffff14; + --color-light: #00000028; + --color-light-border: #ffffff28; + --color-hover: #60606020; + --color-active: #60606040; --color-menu: #2e323e; --color-card: #2e323e; --color-markdown-table-row: #ffffff06; @@ -271,34 +268,6 @@ a.ui.basic.green.label:hover { background-color: #a0cc75; } -.ui.basic.button, -.ui.basic.buttons .button { - color: var(--color-secondary-dark-6); - background: rgba(0, 0, 0, .1); - box-shadow: none; -} - -.ui.basic.button:focus, -.ui.basic.button:hover, -.ui.basic.buttons .button:focus, -.ui.basic.buttons .button:hover { - color: #dbdbdb; - background: rgba(255, 255, 255, .08); - box-shadow: none; -} - -.ui.labeled.button:not([class*="left labeled"]) > .label, -.ui[class*="left labeled"].button > .button { - background: var(--color-secondary); - border: 1px solid var(--color-secondary); - color: #87ab63; -} - -.ui.button:hover { - background-color: var(--color-secondary); - color: #dbdbdb; -} - .ui.search > .results { background: #383c4a; border-color: var(--color-secondary); @@ -521,25 +490,6 @@ td.blob-excerpt { color: #dbdbdb; } -.sha.label, -.repository #repo-files-table .sha.label, -.repository #commits-table td.sha .sha.label, -#rev-list .sha.label, -.repository .timeline-item.commits-list .singular-commit .sha.label, -.repository.view.issue .comment-list .timeline-item.commits-list .singular-commit .shabox .sha.label { - border-color: #505667; -} - -.sha.label.isSigned .detail.icon, -.repository #commits-table td.sha .sha.label.isSigned .detail.icon, -#rev-list .sha.label.isSigned .detail.icon, -.repository #repo-files-table .sha.label.isSigned .detail.icon, -.repository .timeline-item.commits-list .singular-commit .sha.label.isSigned .detail.icon, -.repository.view.issue .comment-list .timeline-item.commits-list .singular-commit .shabox .sha.label.isSigned .detail.icon { - background: none; - border-left-color: #888; -} - .repository .ui.attached.message.isSigned.isVerified { background-color: #394829; color: var(--color-secondary-dark-6); |