summaryrefslogtreecommitdiffstats
path: root/src/scopes/_lists.scss
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2024-10-18 18:08:24 +0200
committerVolpeon <git@volpeon.ink>2024-10-18 18:08:24 +0200
commit365c56edcc36b5b92902bac01ce44b43d01e8685 (patch)
tree644611792591a76e605068d0c9e230fad6a633e7 /src/scopes/_lists.scss
parentRevamped variable management (diff)
downloadiro-design-365c56edcc36b5b92902bac01ce44b43d01e8685.tar.gz
iro-design-365c56edcc36b5b92902bac01ce44b43d01e8685.tar.bz2
iro-design-365c56edcc36b5b92902bac01ce44b43d01e8685.zip
Refactoring
Diffstat (limited to 'src/scopes/_lists.scss')
-rw-r--r--src/scopes/_lists.scss59
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}