running-tools

A collection of tools for runners and their coaches
git clone https://git.ashermorgan.net/running-tools/
Log | Files | Refs | README

commit d78a386c4b57fa5ee022073cf04d9c319f3b4809
parent 5dfc32e6eb3e37c941a6d2b6976588361dfd9d1f
Author: ashermorgan <59518073+ashermorgan@users.noreply.github.com>
Date:   Sat, 28 Aug 2021 21:18:16 -0700

Add styles for print media

Diffstat:
Msrc/assets/global.css | 14+++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/src/assets/global.css b/src/assets/global.css @@ -81,7 +81,7 @@ button, input, select, tr { } /* dark mode */ -@media (prefers-color-scheme: dark) { +@media only screen and (prefers-color-scheme: dark) { :root { --background1: hsl(210, 20%, 10%); --background2: hsl(210, 20%, 15%); @@ -94,3 +94,15 @@ button, input, select, tr { filter: invert(90%); } } + +/* print media mode */ +@media only print { + :root { + --background1: #ffffff; + --background2: #ffffff; + --background3: #ffffff; + --background4: #ffffff; + --background5: #000000; + --foreground: #000000; + } +}