dark: set --is-dark-theme variable

This commit is contained in:
pat-s 2022-08-21 16:56:11 +02:00
parent fc3ad49098
commit 1bd187680f
No known key found for this signature in database
GPG key ID: 3C6318841EF78925

View file

@ -18,6 +18,8 @@
--color-menu: #22272e; --color-menu: #22272e;
--color-secondary: #454a57; --color-secondary: #454a57;
--color-caret: var(--color-text); --color-caret: var(--color-text);
/* allows gitea to detect dark themes and changes the monaco code editor colors to dark ones */
--is-dark-theme: true;
} }
.ui.list .list > .item > .content, .ui.list .list > .item > .content,
@ -574,7 +576,8 @@ input {
} }
/* review - pending label */ /* review - pending label */
.ui.basic.labels .yellow.label, .ui.ui.ui.basic.yellow.label { .ui.basic.labels .yellow.label,
.ui.ui.ui.basic.yellow.label {
background: var(--color-project-board-bg); background: var(--color-project-board-bg);
color: #333 !important; color: #333 !important;
} }
@ -591,12 +594,14 @@ span.green .svg {
} }
/* highlight color bg for highlighted lines */ /* highlight color bg for highlighted lines */
.lines-code.active, .lines-code .active { .lines-code.active,
.lines-code .active {
border-radius: 6px; border-radius: 6px;
background: #000000 !important; background: #000000 !important;
} }
.ui.ui.ui.ui.table tr.active, .ui.ui.table td.active { .ui.ui.ui.ui.table tr.active,
.ui.ui.table td.active {
box-shadow: 0 0 #000000de inset; box-shadow: 0 0 #000000de inset;
background: #E0E0E0; background: #e0e0e0;
color: --var(--color-text); color: --var(--color-text);
} }