blob: 1cfe085489046cb7dc35e366d81a5d6c714efe8c (
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 '../core.vars' as core;
@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(core.$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);
}
}
}
}
|