aboutsummaryrefslogtreecommitdiff
path: root/src/app/components/image/index.css
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/components/image/index.css')
-rw-r--r--src/app/components/image/index.css26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/app/components/image/index.css b/src/app/components/image/index.css
new file mode 100644
index 0000000..d9a9ff5
--- /dev/null
+++ b/src/app/components/image/index.css
@@ -0,0 +1,26 @@
+.image {
+ width: 100%;
+ padding-bottom: 100%;
+ height: 0;
+ 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;
+ }
+}