diff options
Diffstat (limited to 'src/objects')
-rw-r--r-- | src/objects/_lightbox.scss | 14 |
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 | ||