From 58a901ebfe016cdef471325080921a85a3d265d8 Mon Sep 17 00:00:00 2001 From: Wynn Wolf Arbor Date: Sat, 13 Jun 2020 11:45:53 +0200 Subject: css: Have man.css respect prefers-color-scheme Add support for prefers-color-scheme to man.css by including all custom properties and referencing them in man.scss --- scss/man.scss | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'scss/man.scss') diff --git a/scss/man.scss b/scss/man.scss index ccbbdb2..b5c40a6 100644 --- a/scss/man.scss +++ b/scss/man.scss @@ -1,9 +1,20 @@ @import '_webfonts'; @import '_responsive_fonts'; +@import '_vars'; + +a { + color: var(--fg-href); +} + +a:visited { + color: var(--fg-href-visited); +} body { - background-color: white; - font-family: "Alegreya Sans", sans; + background-color: var(--bg-color); + color: var(--fg-color); + + font-family: var(--font-sans); font-size: 1.3em; line-height: 1.6; margin: 1em auto; -- cgit v1.2.3-2-gb3c3