summaryrefslogtreecommitdiffstats
path: root/src/objects/_lightbox.vars.scss
blob: 999776e94edf3364ac0c35108f31b783990fbe41 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
@use 'sass:map';
@use 'sass:string';
@use 'iro-sass/src/props';
@use '../core.vars' as core;

$pad: props.def(--o-lightbox--pad, props.get(core.$size--150)) !default;

$fullscreen--height: props.def(--o-lightbox--fullscreen--height, 100vh) !default;

$image--max-height: props.def(--o-lightbox--image--max-height, calc(100vh - props.get(core.$size--600))) !default;

$close-button--font-size: props.def(--o-lightbox--close-button--font-size, props.get(core.$font-size--200)) !default;

$nav-button--inline-size: props.def(--o-lightbox--nav-button--inline-size, props.get(core.$size--2000)) !default;
$nav-button--block-size:  props.def(--o-lightbox--nav-button--block-size, props.get(core.$size--3800)) !default;
$nav-button--font-size:   props.def(--o-lightbox--nav-button--font-size, props.get(core.$font-size--200)) !default;

$nav-button--inline-size--md: props.def(--o-lightbox--nav-button--inline-size, props.get(core.$size--2500), 'md') !default;
$nav-button--block-size--md:  props.def(--o-lightbox--nav-button--block-size, props.get(core.$size--2500), 'md') !default;

$static-themes: props.def(--o-lightbox, (), 'color');

@each $theme in map.keys(props.get(core.$transparent-colors)) {
    $lightbox-theme: --static-#{string.slice($theme, 3)};

    $static-themes: props.merge($static-themes, (
        $lightbox-theme: (
            --text: props.get(core.$transparent-colors, $theme, --800),
        )
    ));
}