From 1e58a742dede2a321778d2211af9af48a56f3c7e Mon Sep 17 00:00:00 2001 From: Valexr Date: Mon, 20 May 2024 09:19:55 +0200 Subject: [PATCH] add: fullscreen --- src/css/base.css | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/css/base.css b/src/css/base.css index 500d598..bd74e2f 100644 --- a/src/css/base.css +++ b/src/css/base.css @@ -4,10 +4,14 @@ html { font-family: system-ui; } +:is(html, body):fullscreen { + height: 100vh; +} + html::before { content: attr(title); position: absolute; - inset: 97.5dvh 0 0; + inset: 97.5% 0 0; font-size: 0.8rem; font-weight: 300; font-family: inherit; @@ -22,7 +26,7 @@ html::after { z-index: -1; inset: 0; overflow: hidden; - height: 100dvh; + height: 100%; }