From 365c56edcc36b5b92902bac01ce44b43d01e8685 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Fri, 18 Oct 2024 18:08:24 +0200 Subject: Refactoring --- src/scopes/_tables.vars.scss | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/scopes/_tables.vars.scss (limited to 'src/scopes/_tables.vars.scss') 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 @@ +@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), + ) + ) +)); -- cgit v1.2.3-70-g09d2