diff options
author | silverwind <me@silverwind.io> | 2021-12-06 07:49:30 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-06 23:49:30 +0800 |
commit | 12a42baa5ed5f5b5224f7c775b8be04b3eb4980c (patch) | |
tree | db552588884e0155a314a1fe94be08d296997a47 /web_src/less/themes | |
parent | dcdb4873c8d77a444526fad5b1c8e705fdfe149d (diff) | |
download | gitea-12a42baa5ed5f5b5224f7c775b8be04b3eb4980c.tar.gz gitea-12a42baa5ed5f5b5224f7c775b8be04b3eb4980c.zip |
Apply CSS Variables to all message elements (#17920)
Fixes #17918. Applies color variables to all ui message on both themes.
The colorization on .segment is a customization not present in fomantic
ui, only used on user/repo/org delete pages.
Diffstat (limited to 'web_src/less/themes')
-rw-r--r-- | web_src/less/themes/theme-arc-green.less | 57 |
1 files changed, 8 insertions, 49 deletions
diff --git a/web_src/less/themes/theme-arc-green.less b/web_src/less/themes/theme-arc-green.less index 98f98c7871..091cd28752 100644 --- a/web_src/less/themes/theme-arc-green.less +++ b/web_src/less/themes/theme-arc-green.less @@ -79,14 +79,17 @@ --color-diff-added-row-border: #314a37; --color-diff-inactive: #353846; --color-error-border: #a53a37; - --color-error-bg: #403440; - --color-error-text: #d64444; + --color-error-bg: #482c2c; + --color-error-text: #ff4433; --color-success-border: #458a57; - --color-success-bg: #304440; + --color-success-bg: #284034; --color-success-text: #6cc664; - --color-warning-border: #aaa050; - --color-warning-bg: #404440; + --color-warning-border: #bb9d00; + --color-warning-bg: #3a3a30; --color-warning-text: #fbbd08; + --color-info-border: #306090; + --color-info-bg: #26354c; + --color-info-text: #38a8e8; /* target-based colors */ --color-body: #383c4a; --color-box-header: #404652; @@ -337,38 +340,6 @@ td.blob-hunk { color: #dbdbdb !important; } -.ui .warning.header, -.ui.warning.message { - background-color: #542 !important; - border-color: #ec8; -} - -.ui.warning.message { - color: #ec8; - box-shadow: 0 0 0 1px #ec8; -} - -.ui.warning.segment { - border-color: #ec8; -} - -.ui.red.message, -.ui.error.message { - background-color: #522; - color: #f9cbcb; - box-shadow: 0 0 0 1px #a04141 inset; -} - -.ui .error.header, -.ui.error.message { - background-color: #522 !important; - border-color: #a04141; -} - -.ui.error.segment { - border-color: #a04141; -} - .ui.red.button, .ui.red.buttons .button { background-color: #7d3434; @@ -379,18 +350,6 @@ td.blob-hunk { background-color: #984646; } -.ui.positive.message { - background-color: #0d491b; - color: #87ab63; - box-shadow: 0 0 0 1px #2d693b inset, 0 0 0 0 transparent; -} - -.ui.negative.message { - background-color: rgba(80, 23, 17, .6); - color: #f9cbcb; - box-shadow: 0 0 0 1px rgba(121, 71, 66, .5) inset, 0 0 0 0 transparent; -} - .ui.list .list > .item .header, .ui.list > .item .header { color: #dedede; |