From 306f536aa663d7d78a858820bd6b949de19f2302 Mon Sep 17 00:00:00 2001 From: bouncepaw Date: Sat, 16 Jan 2021 20:44:49 +0500 Subject: [PATCH] Make dark theme lest contrast --- templates/asset.qtpl.go | 14 ++++++++------ templates/default.css | 14 ++++++++------ 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/templates/asset.qtpl.go b/templates/asset.qtpl.go index 6b906b1..e8ff5cb 100644 --- a/templates/asset.qtpl.go +++ b/templates/asset.qtpl.go @@ -133,11 +133,13 @@ td { border: #ddd 1px solid; } /* Dark theme! */ @media (prefers-color-scheme: dark) { -html { background-color: black; color: #ddd; } -main, article { background-color: #121212; } +html { background-color: #121212; color: #ddd; } +main, article { background-color: #343434; } blockquote { border-left: 4px #ddd solid; } -a, .wikilink_external { color: #22AA22; } -a:visited, .wikilink_external:visited { color: #228822; } +a, .wikilink_external { color: #f1fa8c; } +a:visited, .wikilink_external:visited { color: #ffb86c; } +.wikilink_new, .wikilink_new:visited { color: #dd4444; } +.prevnext__el, .prevnext__el:visited { color: #ddd; } .transclusion .transclusion__link { color: #ddd; } article code, @@ -149,9 +151,9 @@ article .codeblock, .prevnext__el, .upload-amnt, textarea, -table { border: 0; background-color: #232323; color: #ddd; } +table { border: 0; background-color: #444444; color: #ddd; } .transclusion code, -.transclusion .codeblock { background-color: #343434; } +.transclusion .codeblock { background-color: #454545; } } `) diff --git a/templates/default.css b/templates/default.css index ca8f8f1..89247dc 100644 --- a/templates/default.css +++ b/templates/default.css @@ -108,11 +108,13 @@ td { border: #ddd 1px solid; } /* Dark theme! */ @media (prefers-color-scheme: dark) { -html { background-color: black; color: #ddd; } -main, article { background-color: #121212; } +html { background-color: #121212; color: #ddd; } +main, article { background-color: #343434; } blockquote { border-left: 4px #ddd solid; } -a, .wikilink_external { color: #22AA22; } -a:visited, .wikilink_external:visited { color: #228822; } +a, .wikilink_external { color: #f1fa8c; } +a:visited, .wikilink_external:visited { color: #ffb86c; } +.wikilink_new, .wikilink_new:visited { color: #dd4444; } +.prevnext__el, .prevnext__el:visited { color: #ddd; } .transclusion .transclusion__link { color: #ddd; } article code, @@ -124,8 +126,8 @@ article .codeblock, .prevnext__el, .upload-amnt, textarea, -table { border: 0; background-color: #232323; color: #ddd; } +table { border: 0; background-color: #444444; color: #ddd; } .transclusion code, -.transclusion .codeblock { background-color: #343434; } +.transclusion .codeblock { background-color: #454545; } }