summaryrefslogtreecommitdiffstats
path: root/src/objects
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2024-01-12 12:23:25 +0100
committerVolpeon <git@volpeon.ink>2024-01-12 12:23:25 +0100
commitbbe41da2efac50af491cc1d55a2d09b0273c10ce (patch)
tree74ce6096a4658d3a05116046ee0ed74d5e6fc4c9 /src/objects
parentSupport basic JS-free lightbox (diff)
downloadiro-design-bbe41da2efac50af491cc1d55a2d09b0273c10ce.tar.gz
iro-design-bbe41da2efac50af491cc1d55a2d09b0273c10ce.tar.bz2
iro-design-bbe41da2efac50af491cc1d55a2d09b0273c10ce.zip
Fix static lightbox
Diffstat (limited to 'src/objects')
-rw-r--r--src/objects/_lightbox.scss14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/objects/_lightbox.scss b/src/objects/_lightbox.scss
index 2af8b0a..93256a1 100644
--- a/src/objects/_lightbox.scss
+++ b/src/objects/_lightbox.scss
@@ -77,12 +77,20 @@
77 margin: auto; 77 margin: auto;
78 padding: fn.dim(--pad); 78 padding: fn.dim(--pad);
79 79
80 &:target { 80 @include iro.bem-sibling-elem('img') {
81 display: block; 81 @include iro.bem-modifier('default') {
82 display: block;
83 }
82 } 84 }
83 85
84 @include iro.bem-is('visible') { 86 @include iro.bem-multi('&:target', 'is' 'visible') {
85 display: block; 87 display: block;
88
89 @include iro.bem-sibling-elem('img') {
90 @include iro.bem-modifier('default') {
91 display: none;
92 }
93 }
86 } 94 }
87 } 95 }
88 96