danix
's git repository
home
/
my projects
/
gitweb-theme-danix.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
050112d
)
started using css variables.
author
danix
<danix@danix.xyz>
Sun, 26 Feb 2023 05:26:06 +0000
(06:26 +0100)
committer
danix
<danix@danix.xyz>
Sun, 26 Feb 2023 05:26:06 +0000
(06:26 +0100)
gitweb-danixland/gitweb.css
patch
|
blob
|
blame
|
history
diff --git
a/gitweb-danixland/gitweb.css
b/gitweb-danixland/gitweb.css
index
2e92d91
..
a6014e3
100644
(file)
--- a/
gitweb-danixland/gitweb.css
+++ b/
gitweb-danixland/gitweb.css
@@
-41,6
+41,17
@@
table {
a { outline: none; }
a { outline: none; }
+/* Colors
+------------------------------------------------------------------------- */
+:root {
+ --bg: #D8D9CF;
+ --fg: #393E46;
+}
+@media screen and (prefers-color-scheme: dark) {
+ --bg: #393E46;
+ --fg: #D8D9CF;
+}
+
/* General - light theme
---------------------------------------------------------------------------- */
/* General - light theme
---------------------------------------------------------------------------- */
@@
-54,8
+65,8
@@
body {
font: 13px Helvetica,arial,freesans,clean,sans-serif;
line-height: 1.4;
margin: 0 0 105px;
font: 13px Helvetica,arial,freesans,clean,sans-serif;
line-height: 1.4;
margin: 0 0 105px;
- background-color:
#fff
;
- color:
#000000
;
+ background-color:
var(--bg)
;
+ color:
var(--fg)
;
}
/* Monospaced Fonts */
}
/* Monospaced Fonts */
@@
-763,12
+774,3
@@
td.pre, div.pre, div.diff {
.kwc { color:#d4663d; }
.kwd { color:#2928ff; }
.kwc { color:#d4663d; }
.kwd { color:#2928ff; }
-
-@media screen and (prefers-color-scheme: dark) {
-/* General - dark theme
----------------------------------------------------------------------------- */
- body {
- background-color: #303030;
- color: #e2e2e2;
- }
-}