diff --git a/index.css b/index.css index 7b3eb4f..b9d15ea 100644 --- a/index.css +++ b/index.css @@ -14,6 +14,13 @@ font-size: 16px; } +@media (prefers-color-scheme: dark) { + :root { + --text-color: #fff; + --background-color: #000; + } +} + * { box-sizing: border-box; } @@ -171,7 +178,7 @@ img, video { width: 100%; padding-bottom: calc( round( - down, + up, var(--line-height) - ( var(--real-height) - round(down, var(--real-height), var(--line-height)) ), @@ -276,12 +283,5 @@ li { } body :not(.grid) { - /*background: rgba(255, 0, 0, 0.1);*/ -} - -@media (prefers-color-scheme: dark) { - :root { - --text-color: #fff; - --background-color: #000; - } + background: rgba(255, 0, 0, 0.1); }