blob: db555a96e03e324f7ce5e011ba58bf979f07d31f (
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
@use 'sass:meta';
@use 'iro-sass/src/iro-sass' as iro;
@use '../props';
@use '../vars' as global-vars;
@forward 'lists.vars';
@use 'lists.vars' as vars;
@mixin styles {
@include props.materialize(meta.module-variables('vars'));
@include iro.bem-scope('lists') {
ul,
ol {
padding-inline-start: props.get(vars.$indent);
margin-block-start: props.get(vars.$margin-bs);
ul,
ol {
margin-block-start: 0;
}
}
ul {
list-style: disc;
}
ol {
list-style: decimal;
}
dl {
padding: 0;
margin-block: props.get(vars.$margin-bs) 0;
margin-inline: 0;
}
dt {
font-weight: bold;
color: props.get(global-vars.$theme, --heading);
}
dd {
margin-block: 0;
margin-inline: props.get(vars.$indent) 0;
}
@include iro.bem-modifier('compact') {
ul,
ol {
padding-inline-start: calc(props.get(vars.$compact--indent) - 3px);
}
dd {
margin-inline-start: calc(props.get(vars.$compact--indent) - 3px);
}
}
}
}
|