From b292237416326550bcf0528ce250d72cdc18c262 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Wed, 16 Dec 2020 09:49:59 -0500 Subject: [PATCH] Dark theme improvements --- scss/main.scss | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scss/main.scss b/scss/main.scss index dbb0a27..4d6eaf5 100644 --- a/scss/main.scss +++ b/scss/main.scss @@ -40,13 +40,19 @@ a[href^="mailto:"] { .table-code { display: block; - background: #333; width: 100%; overflow-x: scroll; padding-top: 0.5rem; margin-bottom: 1rem; + + background-color: #333; @include anchor_with_contrast(#333); + @media(prefers-color-scheme: dark) { + background-color: darken($gray-900, 10); + @include anchor_with_contrast(darken($gray-900, 10)); + } + pre { background: transparent; color: white;