diff options
Diffstat (limited to 'src/objects/_lightbox.vars.scss')
-rw-r--r-- | src/objects/_lightbox.vars.scss | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/objects/_lightbox.vars.scss b/src/objects/_lightbox.vars.scss new file mode 100644 index 0000000..cc926e4 --- /dev/null +++ b/src/objects/_lightbox.vars.scss | |||
@@ -0,0 +1,33 @@ | |||
1 | @use 'sass:map'; | ||
2 | @use 'sass:string'; | ||
3 | @use 'iro-sass/src/props'; | ||
4 | @use '../core.vars' as core; | ||
5 | |||
6 | $pad: props.def(--o-lightbox--pad, props.get(core.$size--150)) !default; | ||
7 | $fullscreen--height: props.def(--o-lightbox--fullscreen--height, 100vh) !default; | ||
8 | |||
9 | $image--max-height: props.def(--o-lightbox--image--max-height, calc(100vh - props.get(core.$size--600))) !default; | ||
10 | $image--border-radius: props.def(--o-lightbox--image--border-radius, props.get(core.$rounding)) !default; | ||
11 | |||
12 | $close-button--font-size: props.def(--o-lightbox--close-button--font-size, props.get(core.$font-size--200)) !default; | ||
13 | |||
14 | $nav-button--inline-size: props.def(--o-lightbox--nav-button--inline-size, props.get(core.$size--2000)) !default; | ||
15 | $nav-button--block-size: props.def(--o-lightbox--nav-button--block-size, props.get(core.$size--3800)) !default; | ||
16 | $nav-button--font-size: props.def(--o-lightbox--nav-button--font-size, props.get(core.$font-size--200)) !default; | ||
17 | |||
18 | $nav-button--inline-size--md: props.def(--o-lightbox--nav-button--inline-size, props.get(core.$size--2500), 'md') !default; | ||
19 | $nav-button--block-size--md: props.def(--o-lightbox--nav-button--block-size, props.get(core.$size--2500), 'md') !default; | ||
20 | |||
21 | $thumbnails--spacing: props.def(--o-lightbox--thumbnails--spacing, props.get(core.$size--100)) !default; | ||
22 | |||
23 | $static-themes: props.def(--o-lightbox, (), 'color'); | ||
24 | |||
25 | @each $theme in map.keys(props.get(core.$transparent-colors)) { | ||
26 | $lightbox-theme: --static-#{string.slice($theme, 3)}; | ||
27 | |||
28 | $static-themes: props.merge($static-themes, ( | ||
29 | $lightbox-theme: ( | ||
30 | --text: props.get(core.$transparent-colors, $theme, --800), | ||
31 | ) | ||
32 | )); | ||
33 | } | ||