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 */