diff options
Diffstat (limited to 'src/objects/_lightbox.scss')
| -rw-r--r-- | src/objects/_lightbox.scss | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/objects/_lightbox.scss b/src/objects/_lightbox.scss new file mode 100644 index 0000000..3ba9744 --- /dev/null +++ b/src/objects/_lightbox.scss | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | @use 'iro-sass/src/index' as iro; | ||
| 2 | @use '../functions' as fn; | ||
| 3 | |||
| 4 | @include iro.props-namespace('lightbox') { | ||
| 5 | @include iro.props-store(( | ||
| 6 | --dims: ( | ||
| 7 | |||
| 8 | ), | ||
| 9 | ), 'dims'); | ||
| 10 | |||
| 11 | @include iro.bem-object(iro.props-namespace()) { | ||
| 12 | display: contents; | ||
| 13 | |||
| 14 | @include iro.bem-elem('header') { | ||
| 15 | display: flex; | ||
| 16 | box-sizing: border-box; | ||
| 17 | flex: 0 0 auto; | ||
| 18 | align-items: center; | ||
| 19 | width: 100%; | ||
| 20 | } | ||
| 21 | |||
| 22 | @include iro.bem-elem('img') { | ||
| 23 | align-self: center; | ||
| 24 | max-width: 100%; | ||
| 25 | min-height: 0; | ||
| 26 | max-height: 100%; | ||
| 27 | margin-top: auto; | ||
| 28 | margin-bottom: auto; | ||
| 29 | } | ||
| 30 | |||
| 31 | @include iro.bem-elem('close-btn') { | ||
| 32 | margin-left: auto; | ||
| 33 | } | ||
| 34 | } | ||
| 35 | } | ||
