summaryrefslogtreecommitdiffstats
path: root/src/objects
diff options
context:
space:
mode:
Diffstat (limited to 'src/objects')
-rw-r--r--src/objects/_backdrop.scss1
-rw-r--r--src/objects/_lightbox.scss35
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}