From feeedb0bf31314b182e7bbc135182f6e0bc859b2 Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Mon, 26 Oct 2026 15:45:33 +0100 Subject: update zilch --- src/app/components/image/index.css | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) (limited to 'src/app/components/image/index.css') diff --git a/src/app/components/image/index.css b/src/app/components/image/index.css index 034a509..d9a9ff5 100644 --- a/src/app/components/image/index.css +++ b/src/app/components/image/index.css @@ -1,8 +1,26 @@ .image { - width: calc(100% / var(--gallery-splits)); - padding-bottom: calc(100% / var(--gallery-splits)); + width: 100%; + padding-bottom: 100%; height: 0; - background: red; + background: var(--image); background-size: cover; background-position: center; } + +img { + content: var(--image); + width: 100%; + display: none; + visibility: hidden; +} + +@container style(--gallery-splits: 1) { + .image { + padding-bottom: 0px; + height: unset; + } + + img { + display: unset; + } +} -- cgit v1.2.3-70-g09d2