Skip to content

Commit

Permalink
fix: stretch html to min-height: 100% (#110)
Browse files Browse the repository at this point in the history
## PR Checklist

- [x] Addresses an existing open issue: fixes #87
- [x] That issue was marked as [`status: accepting
prs`](https://github.com/JoshuaKGoldberg/SquiggleConf/issues?q=is%3Aopen+is%3Aissue+label%3A%22status%3A+accepting+prs%22)
- [x] Steps in
[CONTRIBUTING.md](https://github.com/JoshuaKGoldberg/SquiggleConf/blob/main/.github/CONTRIBUTING.md)
were taken

## Overview

Makes the `<html>` take up _at least_ 100% of its parent, the viewport.
This should stop vertical background cropping on big and/or zoomed-out
screens.

💖
  • Loading branch information
JoshuaKGoldberg authored Sep 3, 2024
1 parent b9e9523 commit 19ef31a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/layouts/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@
--widthBodyPadding: clamp(1rem, 5vw, 2rem);
}

html {
min-height: 100%;
}

html.dark {
color-scheme: dark;

Expand Down

0 comments on commit 19ef31a

Please sign in to comment.