dark mode fixes

This commit is contained in:
rhiannon morris 2024-09-26 15:57:17 +02:00
parent 0a0c5468f7
commit 947d4ed983

View file

@ -227,6 +227,10 @@ pre, :not(pre) > code {
border: 2px dotted color-mix(in srgb, currentcolor 75%, transparent);
}
@media (prefers-color-scheme: dark) {
pre, :not(pre) > code { background: hsla(0deg 0% 00% / 30%); }
}
:not(pre) > code { padding: 0 5px; }
pre {
@ -548,6 +552,21 @@ aside.floating :last-child { margin-bottom: 0; }
.al { color: hsl(350deg, 80%, 25%); }
.cn { color: hsl(343deg, 100%, 30%); }
@media (prefers-color-scheme: dark) {
.kw { color: hsl(300deg, 60%, 80%); }
.pp { color: hsl(343deg, 100%, 85%); /* font-weight: 500; */ }
.dt { color: hsl(193deg, 60%, 74%); /* font-weight: 500; */ }
.fu, .at { color: hsl(34deg, 100%, 70%); /* font-weight: 500; */ }
.va { color: hsl(203deg, 100%, 75%); /* font-weight: 500; */ }
.cf { color: hsl(276deg, 75%, 85%); /* font-weight: 500; */ }
.op { color: hsl(220deg, 40%, 70%); }
.co { color: hsl(221deg, 10%, 80%); /* font-style: italic; */ }
.bu { color: hsl(120deg, 55%, 75%); }
.st, .fl, .dv, .bn, .sc, .ss { color: hsl(143deg, 70%, 80%); }
.wa { color: hsl(350deg, 80%, 77%); text-decoration: wavy 1.5px underline; }
.al { color: hsl(350deg, 80%, 77%); }
.cn { color: hsl(343deg, 80%, 70%); }
}
.floating {
float: right;