summaryrefslogtreecommitdiffstats
path: root/web_src/less/_base.less
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2021-11-30 15:40:17 -0800
committerGitHub <noreply@github.com>2021-12-01 01:40:17 +0200
commit3fd502cca81051736014dfe2d62b732975358540 (patch)
tree08ad5cc81cd650b8da25c4bde96c5277b9e2ef71 /web_src/less/_base.less
parent01087e9eef21ff5ea1cebbb1e84933954671fdf2 (diff)
downloadgitea-3fd502cca81051736014dfe2d62b732975358540.tar.gz
gitea-3fd502cca81051736014dfe2d62b732975358540.zip
Rework commit page header (#17849)
- Remove blue background and use regular header styling - Use flexbox on author and signature segments - Add shield-type icons besides gpg key, replacing icon font icons - Ensure author and signature line are same height - Remove erronous green background on arc-green signature line - Turn signing colors into CSS variables - Consolidate the two warning states into one Co-authored-by: zeripath <art27@cantab.net>
Diffstat (limited to 'web_src/less/_base.less')
-rw-r--r--web_src/less/_base.less33
1 files changed, 19 insertions, 14 deletions
diff --git a/web_src/less/_base.less b/web_src/less/_base.less
index e8f63a708b..e9e2cf064e 100644
--- a/web_src/less/_base.less
+++ b/web_src/less/_base.less
@@ -82,6 +82,15 @@
--color-diff-moved-row-border: #d0e27f;
--color-diff-added-row-border: #e6ffed;
--color-diff-inactive: #f2f2f2;
+ --color-error-border: #c29393;
+ --color-error-bg: #fff5f5;
+ --color-error-text: #d64444;
+ --color-success-border: #a3c293;
+ --color-success-bg: #fcfff5;
+ --color-success-text: #6cc644;
+ --color-warning-border: #c2c193;
+ --color-warning-bg: #fffff5;
+ --color-warning-text: #fbbd08;
/* target-based colors */
--color-body: #ffffff;
--color-text-dark: #080808;
@@ -411,6 +420,16 @@ a.muted:hover,
background: var(--color-active) !important;
}
+.ui.message {
+ background: var(--color-box-body);
+ color: var(--color-text);
+}
+
+.ui.bottom.attached.message {
+ box-shadow: none !important;
+ border: 1px solid var(--color-secondary);
+}
+
.ui.selection.active.dropdown,
.ui.selection.active.dropdown:hover,
.ui.selection.active.dropdown .menu,
@@ -896,20 +915,6 @@ a.ui.card:hover,
text-align: left;
}
- &.bottom.attached.message {
- text-align: left;
- color: black;
-
- .pull-right {
- color: black;
- }
-
- & > span,
- .pull-right > span {
- color: var(--color-green);
- }
- }
-
.header > i + .content {
padding-left: .75rem;
vertical-align: middle;