diff options
author | Volpeon <git@volpeon.ink> | 2024-10-17 16:45:00 +0200 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2024-10-17 16:45:00 +0200 |
commit | 50f6acc739f24bfa2ca080d08e90d82f8fa83543 (patch) | |
tree | 404dbe97d34b7e4fc3293c8e6a8c92d9941ac51e /src_old/scopes/_lists.scss | |
parent | Colors (diff) | |
download | iro-design-50f6acc739f24bfa2ca080d08e90d82f8fa83543.tar.gz iro-design-50f6acc739f24bfa2ca080d08e90d82f8fa83543.tar.bz2 iro-design-50f6acc739f24bfa2ca080d08e90d82f8fa83543.zip |
Revamped variable management
Diffstat (limited to 'src_old/scopes/_lists.scss')
-rw-r--r-- | src_old/scopes/_lists.scss | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/src_old/scopes/_lists.scss b/src_old/scopes/_lists.scss new file mode 100644 index 0000000..bad9731 --- /dev/null +++ b/src_old/scopes/_lists.scss | |||
@@ -0,0 +1,66 @@ | |||
1 | @use 'iro-sass/src/index' as iro; | ||
2 | @use '../functions' as fn; | ||
3 | |||
4 | @include iro.props-namespace('lists') { | ||
5 | @include iro.props-store(( | ||
6 | --dims: ( | ||
7 | --indent: calc(fn.global-dim(--list --indent) + 1em), | ||
8 | --margin-bs: fn.global-dim(--paragraph --margin-bs), | ||
9 | |||
10 | --compact: ( | ||
11 | --indent: fn.global-dim(--list --compact-indent), | ||
12 | ), | ||
13 | ), | ||
14 | --colors: ( | ||
15 | --border: fn.global-color(--border-mute), | ||
16 | ) | ||
17 | )); | ||
18 | |||
19 | @include iro.bem-scope(iro.props-namespace()) { | ||
20 | ul, | ||
21 | ol { | ||
22 | margin-block-start: fn.dim(--margin-bs); | ||
23 | padding-inline-start: fn.dim(--indent); | ||
24 | |||
25 | ul, | ||
26 | ol { | ||
27 | margin-block-start: 0; | ||
28 | } | ||
29 | } | ||
30 | |||
31 | ul { | ||
32 | list-style: disc; | ||
33 | } | ||
34 | |||
35 | ol { | ||
36 | list-style: decimal; | ||
37 | } | ||
38 | |||
39 | dl { | ||
40 | margin-block: fn.dim(--margin-bs) 0; | ||
41 | margin-inline: 0; | ||
42 | padding: 0; | ||
43 | } | ||
44 | |||
45 | dt { | ||
46 | color: fn.global-color(--heading); | ||
47 | font-weight: bold; | ||
48 | } | ||
49 | |||
50 | dd { | ||
51 | margin-block: 0; | ||
52 | margin-inline: fn.dim(--indent) 0; | ||
53 | } | ||
54 | |||
55 | @include iro.bem-modifier('compact') { | ||
56 | ul, | ||
57 | ol { | ||
58 | padding-inline-start: calc(fn.dim(--compact --indent) - 3px); | ||
59 | } | ||
60 | |||
61 | dd { | ||
62 | margin-inline-start: calc(fn.dim(--compact --indent) - 3px); | ||
63 | } | ||
64 | } | ||
65 | } | ||
66 | } | ||