diff options
| author | Robert Günzler <r@gnzler.io> | 2025-03-07 01:45:26 +0100 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2025-03-07 01:56:53 +0100 |
| commit | 61c1ed64185624d7c0afa698394b251619b8af41 (patch) | |
| tree | 2be6e78242d621f9c5788ee175b7160e83cf8475 /links | |
| parent | 0f2e465daf49b4ca84fb3c2e40286134eebd9be9 (diff) | |
| download | site-61c1ed64185624d7c0afa698394b251619b8af41.tar.gz | |
add helper styles for making fullscreen pages
Signed-off-by: Robert Günzler <r@gnzler.io>
Diffstat (limited to 'links')
| -rw-r--r-- | links/main.css | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/links/main.css b/links/main.css index e538dd1..3172879 100644 --- a/links/main.css +++ b/links/main.css @@ -345,6 +345,22 @@ ul.nobull li { display: none } +.fullpage { + /* + * NOTE: 7rem = the height of header + footer, then the spacing between + * header and content and footer and line and content + */ + --header-and-footer-max-height: calc(7rem + (var(--body-spacing) * 3)); + + width: calc(100vw - (var(--body-spacing) * 2)); + height: calc(100vh - (var(--body-spacing) * 2) - var(--header-and-footer-max-height)); +} + +.center { + display: grid; + place-items: center; +} + /* theme */ @media (prefers-color-scheme: dark) { |