summaryrefslogtreecommitdiffstats
path: root/src/scopes/_tables.vars.scss
blob: 2d7fed17a0da6dee9053ea8d42b689e9863cc01f (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
@use '../props';
@use '../core';

$indent:    props.def(--s-lists--indent, calc(props.get(core.$list--indent) + 1em)) !default;
$margin-bs: props.def(--s-lists--margin-bs, props.get(core.$paragraph--margin-bs)) !default;

$compact--indent: props.def(--s-lists--compact--indent, props.get(core.$list--compact-indent)) !default;

@include iro.props-store((
    --dims: (
        --pad-i:     fn.foreign-dim(--table, --pad-i),
        --pad-b:     fn.foreign-dim(--table, --pad-b),
        --rounding:  fn.foreign-dim(--table, --rounding),
        --border:    fn.foreign-dim(--table, --border),
        --margin-bs: fn.global-dim(--paragraph --margin-bs),
    ),
    --colors: (
        --border:  fn.foreign-color(--table, --border),
        --heading: fn.foreign-color(--table, --heading),
        --box: (
            --bg: fn.foreign-color(--table, --box --bg),
        )
    )
));