diff options
author | Volpeon <git@volpeon.ink> | 2022-02-15 18:57:05 +0100 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2022-02-15 18:57:05 +0100 |
commit | 27616aff3eaa1fb8baecfcfec1f0542473d1fb36 (patch) | |
tree | 771e0f36783a5c17ed0821378bd869bf7ee2f5a7 /src/objects | |
parent | Brighter accents in dark mode (diff) | |
download | iro-design-27616aff3eaa1fb8baecfcfec1f0542473d1fb36.tar.gz iro-design-27616aff3eaa1fb8baecfcfec1f0542473d1fb36.tar.bz2 iro-design-27616aff3eaa1fb8baecfcfec1f0542473d1fb36.zip |
Added lightbox
Diffstat (limited to 'src/objects')
-rw-r--r-- | src/objects/_backdrop.scss | 1 | ||||
-rw-r--r-- | src/objects/_lightbox.scss | 35 |
2 files changed, 36 insertions, 0 deletions
diff --git a/src/objects/_backdrop.scss b/src/objects/_backdrop.scss index 5957ffa..9ab140e 100644 --- a/src/objects/_backdrop.scss +++ b/src/objects/_backdrop.scss | |||
@@ -40,5 +40,6 @@ | |||
40 | flex-direction: column; | 40 | flex-direction: column; |
41 | padding: fn.dim(--pad-y) fn.dim(--pad-x); | 41 | padding: fn.dim(--pad-y) fn.dim(--pad-x); |
42 | background-color: fn.color(--bg); | 42 | background-color: fn.color(--bg); |
43 | color: fn.global-color(--fg); | ||
43 | } | 44 | } |
44 | } | 45 | } |
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 | } | ||