From 78ed6ba971aeecf6e596944d3529357ed30fb3e6 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 26 Jan 2021 11:50:00 +0300 Subject: night theme: use common css class with warmer fg color --- css/themes.less | 48 +++++++++++++++++++++++------------------------- 1 file changed, 23 insertions(+), 25 deletions(-) (limited to 'css/themes.less') diff --git a/css/themes.less b/css/themes.less index 09f11a5..a73ea46 100644 --- a/css/themes.less +++ b/css/themes.less @@ -1,13 +1,25 @@ +.theme-night-common { + &, .loading, html:-webkit-full-screen { + background : #222; + color : #d7cbc1; + } + + a, a:hover { + color : #00bdaa; + } + + .modal { + color : #333; + } + + .footer .spacer .toc-bar-entry.current-position { + background : darkred; + } +} + body.theme-default { @media (prefers-color-scheme: dark) { - &, .loading, html:-webkit-full-screen { - background : #222; - color : #ccc; - } - - .modal { - color : #333; - } + .theme-night-common; } } @@ -67,22 +79,7 @@ body.theme-mocca { } body.theme-night { - &, .loading, html:-webkit-full-screen { - background : #222; - color : #ccc; - } - - a, a:hover { - color : #00bdaa; - } - - .modal { - color : #333; - } - - .footer .spacer .toc-bar-entry.current-position { - background : darkred; - } + .theme-night-common; } body.theme-plan9 { @@ -123,4 +120,5 @@ body.theme-sepia { .footer .spacer .toc-bar-entry.current-position { background : #B85C57; } -} \ No newline at end of file +} + -- cgit v1.2.3