diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/_iro-design.scss | 2 | ||||
-rw-r--r-- | src/layouts/_button-group.scss | 9 | ||||
-rw-r--r-- | src/layouts/_card-list.scss | 3 | ||||
-rw-r--r-- | src/layouts/_list.scss | 14 | ||||
-rw-r--r-- | src/objects/_tabbar.scss | 3 | ||||
-rw-r--r-- | src/scopes/_implicit.scss | 28 | ||||
-rw-r--r-- | src/scopes/_implicit.vars.scss | 3 |
7 files changed, 54 insertions, 8 deletions
diff --git a/src/_iro-design.scss b/src/_iro-design.scss index 04857e3..31e1f71 100644 --- a/src/_iro-design.scss +++ b/src/_iro-design.scss | |||
@@ -25,6 +25,7 @@ $breakpoints: ( | |||
25 | @forward 'core' as core--*; | 25 | @forward 'core' as core--*; |
26 | @forward 'layers' as layers--*; | 26 | @forward 'layers' as layers--*; |
27 | 27 | ||
28 | @forward 'layouts/list' as l-list--*; | ||
28 | @forward 'layouts/button-group' as l-button-group--*; | 29 | @forward 'layouts/button-group' as l-button-group--*; |
29 | @forward 'layouts/card-list' as l-card-list--*; | 30 | @forward 'layouts/card-list' as l-card-list--*; |
30 | @forward 'layouts/container' as l-container--*; | 31 | @forward 'layouts/container' as l-container--*; |
@@ -41,7 +42,6 @@ $breakpoints: ( | |||
41 | @forward 'scopes/figures' as s-figures--*; | 42 | @forward 'scopes/figures' as s-figures--*; |
42 | @forward 'scopes/headings' as s-headings--*; | 43 | @forward 'scopes/headings' as s-headings--*; |
43 | @forward 'scopes/links' as s-links--*; | 44 | @forward 'scopes/links' as s-links--*; |
44 | @forward 'scopes/lists' as s-lists--*; | ||
45 | @forward 'scopes/tables' as s-tables--*; | 45 | @forward 'scopes/tables' as s-tables--*; |
46 | 46 | ||
47 | @forward 'objects/action-button' as o-action-button--*; | 47 | @forward 'objects/action-button' as o-action-button--*; |
diff --git a/src/layouts/_button-group.scss b/src/layouts/_button-group.scss index c51ae7e..cae7042 100644 --- a/src/layouts/_button-group.scss +++ b/src/layouts/_button-group.scss | |||
@@ -10,8 +10,11 @@ | |||
10 | @include materialize-at-root(meta.module-variables('vars')); | 10 | @include materialize-at-root(meta.module-variables('vars')); |
11 | 11 | ||
12 | @include bem.layout('button-group') { | 12 | @include bem.layout('button-group') { |
13 | display: flex; | 13 | display: flex; |
14 | flex-wrap: wrap; | 14 | flex-wrap: wrap; |
15 | gap: props.get(vars.$spacing); | 15 | gap: props.get(vars.$spacing); |
16 | padding: 0; | ||
17 | margin: 0; | ||
18 | list-style: none; | ||
16 | } | 19 | } |
17 | } | 20 | } |
diff --git a/src/layouts/_card-list.scss b/src/layouts/_card-list.scss index 8ef40c5..f76d18b 100644 --- a/src/layouts/_card-list.scss +++ b/src/layouts/_card-list.scss | |||
@@ -14,6 +14,9 @@ | |||
14 | display: flex; | 14 | display: flex; |
15 | flex-direction: column; | 15 | flex-direction: column; |
16 | gap: props.get(vars.$row-gap); | 16 | gap: props.get(vars.$row-gap); |
17 | padding: 0; | ||
18 | margin: 0; | ||
19 | list-style: none; | ||
17 | 20 | ||
18 | @include bem.modifier('quiet') { | 21 | @include bem.modifier('quiet') { |
19 | row-gap: props.get(vars.$quiet--row-gap); | 22 | row-gap: props.get(vars.$quiet--row-gap); |
diff --git a/src/layouts/_list.scss b/src/layouts/_list.scss new file mode 100644 index 0000000..997634c --- /dev/null +++ b/src/layouts/_list.scss | |||
@@ -0,0 +1,14 @@ | |||
1 | @use 'sass:meta'; | ||
2 | @use 'iro-sass/src/bem'; | ||
3 | @use 'iro-sass/src/props'; | ||
4 | @use '../props' as *; | ||
5 | |||
6 | @mixin styles { | ||
7 | @include bem.layout('list') { | ||
8 | @include bem.modifier('unstyled') { | ||
9 | padding: 0; | ||
10 | margin: 0; | ||
11 | list-style: none; | ||
12 | } | ||
13 | } | ||
14 | } | ||
diff --git a/src/objects/_tabbar.scss b/src/objects/_tabbar.scss index 131c832..860ab47 100644 --- a/src/objects/_tabbar.scss +++ b/src/objects/_tabbar.scss | |||
@@ -27,8 +27,11 @@ | |||
27 | @include bem.elem('tabs') { | 27 | @include bem.elem('tabs') { |
28 | display: flex; | 28 | display: flex; |
29 | block-size: 100%; | 29 | block-size: 100%; |
30 | padding: 0; | ||
31 | margin-block: 0; | ||
30 | margin-inline: calc(-.5 * props.get(vars.$spacing)); | 32 | margin-inline: calc(-.5 * props.get(vars.$spacing)); |
31 | overflow-inline: auto; | 33 | overflow-inline: auto; |
34 | list-style: none; | ||
32 | } | 35 | } |
33 | 36 | ||
34 | @include bem.modifier('quiet') { | 37 | @include bem.modifier('quiet') { |
diff --git a/src/scopes/_implicit.scss b/src/scopes/_implicit.scss index 78f06be..86c65ce 100644 --- a/src/scopes/_implicit.scss +++ b/src/scopes/_implicit.scss | |||
@@ -85,9 +85,15 @@ | |||
85 | 85 | ||
86 | ul, | 86 | ul, |
87 | ol { | 87 | ol { |
88 | padding: 0; | 88 | padding-block: 0; |
89 | margin: 0; | 89 | padding-inline: props.get(vars.$list--indent) 0; |
90 | list-style: none; | 90 | margin-block: props.get(vars.$list--margin-bs) 0; |
91 | margin-inline: 0; | ||
92 | |||
93 | ul, | ||
94 | ol { | ||
95 | margin-block-start: 0; | ||
96 | } | ||
91 | } | 97 | } |
92 | 98 | ||
93 | li { | 99 | li { |
@@ -95,6 +101,21 @@ | |||
95 | margin: 0; | 101 | margin: 0; |
96 | } | 102 | } |
97 | 103 | ||
104 | dl { | ||
105 | padding: 0; | ||
106 | margin-block: props.get(vars.$list--margin-bs) 0; | ||
107 | margin-inline: 0; | ||
108 | } | ||
109 | |||
110 | dt { | ||
111 | font-weight: bold; | ||
112 | } | ||
113 | |||
114 | dd { | ||
115 | margin-block: 0; | ||
116 | margin-inline: props.get(vars.$list--indent) 0; | ||
117 | } | ||
118 | |||
98 | :focus, | 119 | :focus, |
99 | :focus-visible { | 120 | :focus-visible { |
100 | outline: 0; | 121 | outline: 0; |
@@ -106,7 +127,6 @@ | |||
106 | text-decoration: none; | 127 | text-decoration: none; |
107 | } | 128 | } |
108 | 129 | ||
109 | |||
110 | button, | 130 | button, |
111 | input, | 131 | input, |
112 | textarea { | 132 | textarea { |
diff --git a/src/scopes/_implicit.vars.scss b/src/scopes/_implicit.vars.scss index 388f0af..d8d79cf 100644 --- a/src/scopes/_implicit.vars.scss +++ b/src/scopes/_implicit.vars.scss | |||
@@ -24,3 +24,6 @@ $heading--font-size: props.def(--s-implicit--heading--font-size, props.g | |||
24 | $heading--feature-settings: props.def(--s-implicit--heading--feature-settings, props.get(core.$font--standard--feature-settings)) !default; | 24 | $heading--feature-settings: props.def(--s-implicit--heading--feature-settings, props.get(core.$font--standard--feature-settings)) !default; |
25 | 25 | ||
26 | $heading--color: props.def(--s-implicit--heading--color, props.get(core.$theme, --heading), 'color') !default; | 26 | $heading--color: props.def(--s-implicit--heading--color, props.get(core.$theme, --heading), 'color') !default; |
27 | |||
28 | $list--indent: props.def(--s-implicit--list--indent, calc(props.get(core.$list--indent) + 1em)) !default; | ||
29 | $list--margin-bs: props.def(--s-implicit--list--margin-bs, props.get($paragraph--margin-bs)) !default; | ||