diff options
| author | Volpeon <git@volpeon.ink> | 2024-10-18 18:08:24 +0200 |
|---|---|---|
| committer | Volpeon <git@volpeon.ink> | 2024-10-18 18:08:24 +0200 |
| commit | 365c56edcc36b5b92902bac01ce44b43d01e8685 (patch) | |
| tree | 644611792591a76e605068d0c9e230fad6a633e7 /src/scopes/_tables.vars.scss | |
| parent | Revamped variable management (diff) | |
| download | iro-design-365c56edcc36b5b92902bac01ce44b43d01e8685.tar.gz iro-design-365c56edcc36b5b92902bac01ce44b43d01e8685.tar.bz2 iro-design-365c56edcc36b5b92902bac01ce44b43d01e8685.zip | |
Refactoring
Diffstat (limited to 'src/scopes/_tables.vars.scss')
| -rw-r--r-- | src/scopes/_tables.vars.scss | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/scopes/_tables.vars.scss b/src/scopes/_tables.vars.scss new file mode 100644 index 0000000..2c3f255 --- /dev/null +++ b/src/scopes/_tables.vars.scss | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | @use '../props'; | ||
| 2 | @use '../vars'; | ||
| 3 | |||
| 4 | $indent: props.def(--s-lists--indent, calc(props.get(vars.$list--indent) + 1em)) !default; | ||
| 5 | $margin-bs: props.def(--s-lists--margin-bs, props.get(vars.$paragraph--margin-bs)) !default; | ||
| 6 | |||
| 7 | $compact--indent: props.def(--s-lists--compact--indent, props.get(vars.$list--compact-indent)) !default; | ||
| 8 | |||
| 9 | @include iro.props-store(( | ||
| 10 | --dims: ( | ||
| 11 | --pad-i: fn.foreign-dim(--table, --pad-i), | ||
| 12 | --pad-b: fn.foreign-dim(--table, --pad-b), | ||
| 13 | --rounding: fn.foreign-dim(--table, --rounding), | ||
| 14 | --border: fn.foreign-dim(--table, --border), | ||
| 15 | --margin-bs: fn.global-dim(--paragraph --margin-bs), | ||
| 16 | ), | ||
| 17 | --colors: ( | ||
| 18 | --border: fn.foreign-color(--table, --border), | ||
| 19 | --heading: fn.foreign-color(--table, --heading), | ||
| 20 | --box: ( | ||
| 21 | --bg: fn.foreign-color(--table, --box --bg), | ||
| 22 | ) | ||
| 23 | ) | ||
| 24 | )); | ||
