diff options
Diffstat (limited to 'src/scopes/_lists.scss')
-rw-r--r-- | src/scopes/_lists.scss | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/src/scopes/_lists.scss b/src/scopes/_lists.scss new file mode 100644 index 0000000..db555a9 --- /dev/null +++ b/src/scopes/_lists.scss | |||
@@ -0,0 +1,59 @@ | |||
1 | @use 'sass:meta'; | ||
2 | @use 'iro-sass/src/iro-sass' as iro; | ||
3 | @use '../props'; | ||
4 | @use '../vars' as global-vars; | ||
5 | |||
6 | @forward 'lists.vars'; | ||
7 | @use 'lists.vars' as vars; | ||
8 | |||
9 | @mixin styles { | ||
10 | @include props.materialize(meta.module-variables('vars')); | ||
11 | |||
12 | @include iro.bem-scope('lists') { | ||
13 | ul, | ||
14 | ol { | ||
15 | padding-inline-start: props.get(vars.$indent); | ||
16 | margin-block-start: props.get(vars.$margin-bs); | ||
17 | |||
18 | ul, | ||
19 | ol { | ||
20 | margin-block-start: 0; | ||
21 | } | ||
22 | } | ||
23 | |||
24 | ul { | ||
25 | list-style: disc; | ||
26 | } | ||
27 | |||
28 | ol { | ||
29 | list-style: decimal; | ||
30 | } | ||
31 | |||
32 | dl { | ||
33 | padding: 0; | ||
34 | margin-block: props.get(vars.$margin-bs) 0; | ||
35 | margin-inline: 0; | ||
36 | } | ||
37 | |||
38 | dt { | ||
39 | font-weight: bold; | ||
40 | color: props.get(global-vars.$theme, --heading); | ||
41 | } | ||
42 | |||
43 | dd { | ||
44 | margin-block: 0; | ||
45 | margin-inline: props.get(vars.$indent) 0; | ||
46 | } | ||
47 | |||
48 | @include iro.bem-modifier('compact') { | ||
49 | ul, | ||
50 | ol { | ||
51 | padding-inline-start: calc(props.get(vars.$compact--indent) - 3px); | ||
52 | } | ||
53 | |||
54 | dd { | ||
55 | margin-inline-start: calc(props.get(vars.$compact--indent) - 3px); | ||
56 | } | ||
57 | } | ||
58 | } | ||
59 | } | ||