mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
Move all remaining colors into CSS variables (#21903)
This should eliminate all non-variable color usage in the styles, making gitea fully themeable via CSS variables. Also, it adds a linter to enforce variables for colors.
This commit is contained in:
@@ -118,6 +118,20 @@
|
||||
--color-info-border: #a9d5de;
|
||||
--color-info-bg: #f8ffff;
|
||||
--color-info-text: #276f86;
|
||||
--color-red-badge: #db2828;
|
||||
--color-red-badge-bg: #db28281a;
|
||||
--color-red-badge-hover-bg: #db28284d;
|
||||
--color-green-badge: #21ba45;
|
||||
--color-green-badge-bg: #21ba451a;
|
||||
--color-green-badge-hover-bg: #21ba454d;
|
||||
--color-yellow-badge: #fbbd08;
|
||||
--color-yellow-badge-bg: #fbbd081a;
|
||||
--color-yellow-badge-hover-bg: #fbbd084d;
|
||||
--color-orange-badge: #f2711c;
|
||||
--color-orange-badge-bg: #f2711c1a;
|
||||
--color-orange-badge-hover-bg: #f2711c4d;
|
||||
--color-git: #f05133;
|
||||
/* target-based colors */
|
||||
--color-body: #ffffff;
|
||||
--color-text-dark: #080808;
|
||||
--color-text: #212121;
|
||||
@@ -1196,11 +1210,7 @@ a.ui.card:hover,
|
||||
}
|
||||
|
||||
.searchbox {
|
||||
background-color: #f4f4f4 !important;
|
||||
|
||||
&:focus {
|
||||
background-color: #e9e9e9 !important;
|
||||
}
|
||||
background-color: var(--color-input-background) !important;
|
||||
}
|
||||
|
||||
.text .svg {
|
||||
@@ -1932,7 +1942,7 @@ footer {
|
||||
}
|
||||
|
||||
.archived-icon {
|
||||
color: lighten(#000000, 70%) !important;
|
||||
color: var(--color-secondary-dark-2) !important;
|
||||
}
|
||||
|
||||
.oauth2-authorize-application-box {
|
||||
@@ -2085,7 +2095,7 @@ a.ui.label:hover {
|
||||
.lines-commit {
|
||||
&:extend(.unselectable);
|
||||
vertical-align: top;
|
||||
color: #999999;
|
||||
color: var(--color-grey);
|
||||
padding: 0 !important;
|
||||
background: var(--color-code-sidebar-bg);
|
||||
width: 1%;
|
||||
@@ -2161,6 +2171,7 @@ a.ui.label:hover {
|
||||
color: var(--color-text);
|
||||
}
|
||||
|
||||
.ui.active.button,
|
||||
.ui.button:active,
|
||||
.ui.active.button:active,
|
||||
.ui.active.button:hover {
|
||||
@@ -2312,7 +2323,7 @@ a.ui.basic.label:hover {
|
||||
}
|
||||
|
||||
.migrate .svg.gitea-git {
|
||||
color: #f05133; /* from https://upload.wikimedia.org/wikipedia/commons/e/e0/Git-logo.svg */
|
||||
color: var(--color-git);
|
||||
}
|
||||
|
||||
.color-icon {
|
||||
|
Reference in New Issue
Block a user