summaryrefslogtreecommitdiffstats
path: root/src/objects/_lightbox.scss
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2024-10-26 11:12:49 +0200
committerVolpeon <git@volpeon.ink>2024-10-26 11:12:49 +0200
commit266404c16f773afd755b324fe3ae4c0c88a129c4 (patch)
tree339db8bff633277638245c3f9a27911e93c4df58 /src/objects/_lightbox.scss
parentLightbox: Explicit auto size of image (diff)
downloadiro-design-266404c16f773afd755b324fe3ae4c0c88a129c4.tar.gz
iro-design-266404c16f773afd755b324fe3ae4c0c88a129c4.tar.bz2
iro-design-266404c16f773afd755b324fe3ae4c0c88a129c4.zip
Fix
Diffstat (limited to 'src/objects/_lightbox.scss')
-rw-r--r--src/objects/_lightbox.scss6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/objects/_lightbox.scss b/src/objects/_lightbox.scss
index dbcc3ab..092d676 100644
--- a/src/objects/_lightbox.scss
+++ b/src/objects/_lightbox.scss
@@ -28,8 +28,9 @@
28 display: block; 28 display: block;
29 grid-area: content; 29 grid-area: content;
30 place-self: center; 30 place-self: center;
31 size: auto; 31 inline-size: auto;
32 max-inline-size: 100%; 32 max-inline-size: 100%;
33 block-size: auto;
33 max-block-size: 80vh; 34 max-block-size: 80vh;
34 padding: props.get(vars.$pad); 35 padding: props.get(vars.$pad);
35 margin-inline: auto; 36 margin-inline: auto;
@@ -94,7 +95,8 @@
94 inset-block-start: 0; 95 inset-block-start: 0;
95 inset-inline-start: 0; 96 inset-inline-start: 0;
96 display: block; 97 display: block;
97 size: 100%; 98 inline-size: 100%;
99 block-size: 100%;
98 object-fit: cover; 100 object-fit: cover;
99 object-position: center center; 101 object-position: center center;
100 } 102 }