From 061b56a088532d03b64ffb3848819f55cd0b3db1 Mon Sep 17 00:00:00 2001 From: George Cushen Date: Sun, 14 Oct 2018 02:08:26 +0100 Subject: [PATCH] dark theme: Fix contrast of muted text color --- layouts/partials/css/academic.css | 34 ++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/layouts/partials/css/academic.css b/layouts/partials/css/academic.css index 839dbc32..17ab4f85 100644 --- a/layouts/partials/css/academic.css +++ b/layouts/partials/css/academic.css @@ -670,6 +670,10 @@ article { margin-bottom: 1rem; } +.dark .page-subtitle { + color: rgba(255,255,255,0.54); +} + .split-header .page-subtitle { margin-bottom: 1.5rem; } @@ -734,7 +738,11 @@ article { } .text-muted { - color: rgba(0,0,0,0.54) !important; /* Override Bootstrap */ + color: rgba(0,0,0,0.54); /* Override Bootstrap */ +} + +.dark .text-muted { + color: rgba(255,255,255,0.54); } .article-metadata { @@ -745,6 +753,10 @@ article { color: rgba(0,0,0,0.54); } +.dark .article-metadata { + color: rgba(255,255,255,0.54); +} + .stream-meta.article-metadata { margin-bottom: 5px; } @@ -759,6 +771,10 @@ article .article-metadata { color: rgba(0,0,0,.54); } +.dark .article-metadata a { + color: rgba(255,255,255,0.54); +} + .article-metadata a:hover { color: {{ .Get "primary" }}; } @@ -891,6 +907,12 @@ article .article-metadata { font-size: 0.9rem; } + +.dark .pub-authors, +.dark .pub-publication { + color: rgba(255,255,255,0.54); +} + .pub-list-item .pub-links { padding-top: 10px; } @@ -1074,6 +1096,10 @@ article .article-metadata { font-size: 0.75rem; } +.dark .card-text p { + color: rgb(248, 248, 242); +} + .card p:last-child { margin-bottom: 0; } @@ -1170,6 +1196,12 @@ footer a#back_to_top i { color: rgba(0,0,0,0.54); } +.dark .site-footer, +.dark footer a#back_to_top i, +.dark .docs .body-footer { + color: rgba(255,255,255,0.54); +} + /************************************************** * Tags/Labels **************************************************/