Skip to content

Commit

Permalink
add: fullscreen
Browse files Browse the repository at this point in the history
  • Loading branch information
Valexr committed May 20, 2024
1 parent a585b99 commit 1e58a74
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/css/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -22,7 +26,7 @@ html::after {
z-index: -1;
inset: 0;
overflow: hidden;
height: 100dvh;
height: 100%;
}


Expand Down

0 comments on commit 1e58a74

Please sign in to comment.