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

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

$compact--indent: props.def(--s-lists--compact--indent, props.get(vars.$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),
        )
    )
));