From a99f450e19f6efaf75e4268a35690042bb93d63a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oskar=20Wickstr=C3=B6m?= Date: Thu, 22 Aug 2024 22:37:45 +0200 Subject: [PATCH] round up for filler calc --- index.css | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) 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); }