diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2026-10-26 15:45:33 +0100 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2026-10-26 15:45:33 +0100 |
| commit | feeedb0bf31314b182e7bbc135182f6e0bc859b2 (patch) | |
| tree | 163948cd874729925c2bf57d0927619065d2322d /src/app/components/image/index.css | |
| parent | 91d9b6992ac0ebee13704a3faefa8fd41a00075e (diff) | |
update zilch
Diffstat (limited to 'src/app/components/image/index.css')
| -rw-r--r-- | src/app/components/image/index.css | 24 |
1 files changed, 21 insertions, 3 deletions
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; + } +} |