X-Git-Url: https://git.danix.xyz/?a=blobdiff_plain;f=gitweb-danixland%2Fgitweb.css;h=41b302261de238d67869c2a7ad34248ad3136f75;hb=1bc0e66a80707335c9d72faa44ccec3f1bc543b1;hp=2e92d9148ba499e83322b1bdae59f1d343d409ed;hpb=050112dff54fa9b1de3f3c4c966d7e0a8a52a244;p=gitweb-theme-danix.git diff --git a/gitweb-danixland/gitweb.css b/gitweb-danixland/gitweb.css index 2e92d91..41b3022 100644 --- a/gitweb-danixland/gitweb.css +++ b/gitweb-danixland/gitweb.css @@ -41,6 +41,19 @@ table { a { outline: none; } +/* Colors +------------------------------------------------------------------------- */ +:root { + --bg: #D8D9CF; + --fg: #393E46; +} +@media screen and (prefers-color-scheme: dark) { + :root { + --bg: #393E46; + --fg: #D8D9CF; + } +} + /* General - light theme ---------------------------------------------------------------------------- */ @@ -54,8 +67,8 @@ body { 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 */ @@ -763,12 +776,3 @@ td.pre, div.pre, div.diff { .kwc { color:#d4663d; } .kwd { color:#2928ff; } - -@media screen and (prefers-color-scheme: dark) { -/* General - dark theme ----------------------------------------------------------------------------- */ - body { - background-color: #303030; - color: #e2e2e2; - } -}