danix
's git repository
home
/
my projects
/
gitweb-theme-danix.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
still testing css variables inside media queries
[gitweb-theme-danix.git]
/
gitweb-danixland
/
gitweb.css
diff --git
a/gitweb-danixland/gitweb.css
b/gitweb-danixland/gitweb.css
index
2e92d91
..
41b3022
100644
(file)
--- a/
gitweb-danixland/gitweb.css
+++ b/
gitweb-danixland/gitweb.css
@@
-41,6
+41,19
@@
table {
a { outline: none; }
a { outline: none; }
+/* Colors
+------------------------------------------------------------------------- */
+:root {
+ --bg: #D8D9CF;
+ --fg: #393E46;
+}
+@media screen and (prefers-color-scheme: dark) {
+ :root {
+ --bg: #393E46;
+ --fg: #D8D9CF;
+ }
+}
+
/* General - light theme
---------------------------------------------------------------------------- */
/* General - light theme
---------------------------------------------------------------------------- */
@@
-54,8
+67,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
+776,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;
- }
-}