diff options
author | goodroot <9484709+goodroot@users.noreply.github.com> | 2021-07-03 08:06:15 +0300 |
---|---|---|
committer | goodroot <9484709+goodroot@users.noreply.github.com> | 2021-07-03 08:06:15 +0300 |
commit | ac084d95625957a432cfb3f70e47f10bd83cbe96 (patch) | |
tree | d460a65ee87d3598020538c5a8abb0212a15470b | |
parent | 3ef6687317c1acce1cfc1d4c4503f4a6774781e6 (diff) |
Adds darkmode
-rw-r--r-- | static/css/style.css | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/static/css/style.css b/static/css/style.css index 0612362..95b38f9 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -1,3 +1,83 @@ +/* Toggle darkmode / lightmode */ + +/* darkmode */ +@media (prefers-color-scheme: dark) { + body { + background-color: #393E41; + color: white; + } + + blockquote { + background: #393E41; + } + + a { + color: #EBC3DB; + } + + header { + background: #393E41; + border-bottom: 2px dotted #EBC3DB; + + } + + .article-meta, .menu a { + background: #393E41; + color: white; + } + + code { background: #black; } + + table { + margin: auto; + border-top: 1px solid #666; + border-bottom: 1px solid #666; + } + table thead th { border-bottom: 1px solid #666; } + th, td { padding: 5px; } + tr:nth-child(even) { background: #666 } + +} + +/* lightmode */ +@media (prefers-color-scheme: light) { + body { + background-color: #393E41; + color: white; + } + + blockquote { + background: #393E41; + } + + a { + color: #EBC3DB; + } + + header { + background: #393E41; + border-bottom: 2px dotted #EBC3DB; + + } + + .article-meta, .menu a { + background: #393E41; + color: white; + } + + code { background: #black; } + + table { + margin: auto; + border-top: 1px solid #666; + border-bottom: 1px solid #666; + } + table thead th { border-bottom: 1px solid #666; } + th, td { padding: 5px; } + tr:nth-child(even) { background: #666 } + +} + body { max-width: 800px; margin: auto; |