diff options
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; + } +} |