summaryrefslogtreecommitdiffstats
path: root/src/scopes/_lists.scss
diff options
context:
space:
mode:
Diffstat (limited to 'src/scopes/_lists.scss')
-rw-r--r--src/scopes/_lists.scss67
1 files changed, 0 insertions, 67 deletions
diff --git a/src/scopes/_lists.scss b/src/scopes/_lists.scss
deleted file mode 100644
index 1322f2d..0000000
--- a/src/scopes/_lists.scss
+++ /dev/null
@@ -1,67 +0,0 @@
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-top: fn.global-dim(--paragraph --margin-top),
9
10 --compact: (
11 --indent: fn.global-dim(--list --compact-indent),
12 ),
13 )
14 ), 'dims');
15
16 @include iro.props-store((
17 --colors: (
18 --border: fn.global-color(--obj-hi),
19 )
20 ), 'colors');
21
22 @include iro.bem-scope(iro.props-namespace()) {
23 ul,
24 ol {
25 margin-top: fn.dim(--margin-top);
26 padding-left: fn.dim(--indent);
27
28 ul,
29 ol {
30 margin-top: 0;
31 }
32 }
33
34 ul {
35 list-style: disc;
36 }
37
38 ol {
39 list-style: decimal;
40 }
41
42 dl {
43 margin: fn.dim(--margin-top) 0 0;
44 padding: 0;
45 }
46
47 dt {
48 color: fn.global-color(--fg-lo);
49 font-weight: bold;
50 }
51
52 dd {
53 margin: 0 0 0 fn.dim(--indent);
54 }
55
56 @include iro.bem-modifier('compact') {
57 ul,
58 ol {
59 padding-left: calc(fn.dim(--compact --indent) - 3px);
60 }
61
62 dd {
63 margin-left: calc(fn.dim(--compact --indent) - 3px);
64 }
65 }
66 }
67}