aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/less/_base.less
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2020-12-04 12:18:37 +0100
committerGitHub <noreply@github.com>2020-12-04 12:18:37 +0100
commitbb50ab28613e9c39a57da98e873314e1739f4c14 (patch)
treed438d6c3fe63ea5d5d482acb50f4e4d0ef66b679 /web_src/less/_base.less
parent557479642d1d1381bede0a31c4b19eecf46c0363 (diff)
downloadgitea-bb50ab28613e9c39a57da98e873314e1739f4c14.tar.gz
gitea-bb50ab28613e9c39a57da98e873314e1739f4c14.zip
Style and template tweaks (#13828)
* Style and template tweaks - Get red and green buttons on arc green closer to base theme - EasyMDE adjustments, toolbar and focus border - Fix header on 404 repo page - Tweaks to frontpage search, add 'Create Repo' button - Fix misaligned box headers - Fix pagination on arc-green - Fix background and footer on explore and repo search * better fix for header button alignment * add label hover for reactions
Diffstat (limited to 'web_src/less/_base.less')
-rw-r--r--web_src/less/_base.less39
1 files changed, 31 insertions, 8 deletions
diff --git a/web_src/less/_base.less b/web_src/less/_base.less
index 36421ca733..a1df19ef69 100644
--- a/web_src/less/_base.less
+++ b/web_src/less/_base.less
@@ -69,7 +69,7 @@
--color-purple: #a333c8;
--color-pink: #e03997;
--color-brown: #a5673f;
- --color-grey: #767676;
+ --color-grey: #888888;
--color-black: #1b1c1d;
--color-gold: #a1882b;
--color-white: #ffffff;
@@ -97,6 +97,7 @@
--color-markdown-table-row: #00000008;
--color-markdown-code-block: #00000010;
--color-button: #ffffff;
+ --color-code-bg: #ffffff;
}
:root:lang(ja) {
@@ -253,6 +254,10 @@ a.muted:hover,
border-color: var(--color-primary);
}
+.CodeMirror-focused {
+ border-color: var(--color-primary) !important;
+}
+
.ui.action.input:not([class*="left action"]) > input:focus {
border-right-color: var(--color-primary);
}
@@ -288,6 +293,10 @@ a.muted:hover,
background: none;
}
+.ui.ui.menu .item.disabled {
+ color: var(--color-text-light-2);
+}
+
.ui.dropdown .menu {
background: var(--color-menu);
border-color: var(--color-secondary);
@@ -307,6 +316,8 @@ a.muted:hover,
}
.ui.dropdown .menu .active.item {
+ color: var(--color-text);
+ background: var(--color-active);
font-weight: normal;
}
@@ -523,17 +534,15 @@ a.muted:hover,
flex-direction: inherit;
}
-.ui.dropdown:not(.labeled) > .dropdown.icon {
- height: 14px;
- vertical-align: bottom;
- margin-bottom: -2px;
- margin-left: .5rem;
-}
-
.ui.dropdown .menu {
border-color: var(--color-secondary);
}
+.ui.pagination.menu .active.item {
+ color: var(--color-text);
+ background: var(--color-active);
+}
+
.ui.form .field > .selection.dropdown > .dropdown.icon {
height: auto;
}
@@ -1266,6 +1275,11 @@ a.ui.label:hover {
color: var(--color-text);
}
+.ui.basic.labels a.label:hover,
+a.ui.basic.label:hover {
+ background: var(--color-label-hover);
+}
+
.ui.label > .detail .icons {
margin-right: .25em;
}
@@ -1597,6 +1611,7 @@ a.ui.label:hover {
}
.ui.attached.header {
+ position: relative;
background: var(--color-box-header);
border-color: var(--color-secondary);
@@ -1606,6 +1621,14 @@ a.ui.label:hover {
}
}
+/* fix misaligned right buttons on box headers */
+.ui.attached.header .right {
+ position: absolute;
+ right: .78571429rem;
+ top: 50%;
+ transform: translateY(-50%);
+}
+
/* https://github.com/go-gitea/gitea/issues/10210 */
.ui.attached.segment ~ .ui.top.attached.header {
margin-top: 1rem;