dark mode fixes
This commit is contained in:
parent
0a0c5468f7
commit
947d4ed983
1 changed files with 19 additions and 0 deletions
|
@ -227,6 +227,10 @@ pre, :not(pre) > code {
|
||||||
border: 2px dotted color-mix(in srgb, currentcolor 75%, transparent);
|
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; }
|
:not(pre) > code { padding: 0 5px; }
|
||||||
|
|
||||||
pre {
|
pre {
|
||||||
|
@ -548,6 +552,21 @@ aside.floating :last-child { margin-bottom: 0; }
|
||||||
.al { color: hsl(350deg, 80%, 25%); }
|
.al { color: hsl(350deg, 80%, 25%); }
|
||||||
.cn { color: hsl(343deg, 100%, 30%); }
|
.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 {
|
.floating {
|
||||||
float: right;
|
float: right;
|
||||||
|
|
Loading…
Reference in a new issue