From e00455e33fe06c5023a45d09d388fda0668c0d1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20Tron=C3=AD=C4=8Dek?= Date: Thu, 10 Sep 2020 21:17:24 +0200 Subject: [PATCH] Add darkmode to syntax in md --- _sass/_highlight-syntax.scss | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/_sass/_highlight-syntax.scss b/_sass/_highlight-syntax.scss index 3889da8..c50a965 100644 --- a/_sass/_highlight-syntax.scss +++ b/_sass/_highlight-syntax.scss @@ -59,6 +59,10 @@ .highlight .vi { color: #008080 } /* Name.Variable.Instance */ .highlight .il { color: #009999 } /* Literal.Number.Integer.Long */ +@media (prefers-color-scheme: dark) { + .highlight { width: 100%; overflow: auto; background: #202020; } +} + /* Make line numbers unselectable: excludes line numbers from copy-paste user ops */ .highlight .lineno {-webkit-user-select: none;-moz-user-select: none; -o-user-select: none;} .lineno::-moz-selection {background-color: transparent;} /* Mozilla specific */ -- 2.51.2