all repos — website @ 8dcab3eb04ed1de6ff6e7f6a6ecf6d2d7e4e9c18

Unnamed repository; edit this file 'description' to name the repository.

feat(layout): full width in smaller windows
vi did:web:vt3e.cat
Mon, 11 May 2026 02:50:03 +0100
commit

8dcab3eb04ed1de6ff6e7f6a6ecf6d2d7e4e9c18

parent

31f5c16aaf1aa8b9982dc4b4ec98b848adbf3031

1 files changed, 9 insertions(+), 2 deletions(-)

jump to
M src/layouts/Layout.astrosrc/layouts/Layout.astro

@@ -66,19 +66,26 @@ }

} .content { + --margin: 0.5rem; position: relative; z-index: 1; background: hsla(var(--crust) / 1); box-shadow: 0 0.5rem 2rem hsla(var(--shadow) / 0.5); - width: calc(100% - 0.2rem); + width: calc(100% - calc(var(--margin) * 2)); max-width: 60ch; - margin: 90dvh 0.1rem 0 0.1rem; + margin: 90dvh var(--margin) 0 var(--margin); border-radius: 2rem 2rem 0 0; overflow: hidden; &.wide { max-width: 120ch; + } + } + + @media (max-width: 60ch) { + .content { + --margin: 0;; } }