diff options
author | Volpeon <git@volpeon.ink> | 2024-10-22 08:23:33 +0200 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2024-10-22 08:23:33 +0200 |
commit | 5855a6821cf5585378a70f9bee13563bdbfe2d86 (patch) | |
tree | 0ee25906c9e73912137a56b7d6214c89bf43e8a6 /src | |
parent | Update (diff) | |
download | iro-design-5855a6821cf5585378a70f9bee13563bdbfe2d86.tar.gz iro-design-5855a6821cf5585378a70f9bee13563bdbfe2d86.tar.bz2 iro-design-5855a6821cf5585378a70f9bee13563bdbfe2d86.zip |
Less broad imports
Diffstat (limited to 'src')
42 files changed, 452 insertions, 451 deletions
diff --git a/src/_core.scss b/src/_core.scss index ea84f6c..3dccd54 100644 --- a/src/_core.scss +++ b/src/_core.scss | |||
@@ -19,7 +19,7 @@ | |||
19 | } | 19 | } |
20 | } | 20 | } |
21 | } @else { | 21 | } @else { |
22 | @include iro.bem-theme($theme-name) { | 22 | @include bem.theme($theme-name) { |
23 | @include props.materialize(map.get($theme, 'light')); | 23 | @include props.materialize(map.get($theme, 'light')); |
24 | 24 | ||
25 | @if map.has-key($theme, 'dark') { | 25 | @if map.has-key($theme, 'dark') { |
diff --git a/src/_props.scss b/src/_props.scss index 9a1ecec..748d785 100644 --- a/src/_props.scss +++ b/src/_props.scss | |||
@@ -26,7 +26,7 @@ | |||
26 | 26 | ||
27 | @each $theme-name in map.keys(config.$themes) { | 27 | @each $theme-name in map.keys(config.$themes) { |
28 | @if $theme-name != config.$theme-default { | 28 | @if $theme-name != config.$theme-default { |
29 | @include iro.bem-theme($theme-name) { | 29 | @include bem.theme($theme-name) { |
30 | @include props.materialize($ref, null); | 30 | @include props.materialize($ref, null); |
31 | 31 | ||
32 | @each $breakpoint in map.keys(media.$breakpoints) { | 32 | @each $breakpoint in map.keys(media.$breakpoints) { |
diff --git a/src/_themes.scss b/src/_themes.scss index f246465..ec54af4 100644 --- a/src/_themes.scss +++ b/src/_themes.scss | |||
@@ -1,5 +1,5 @@ | |||
1 | @use 'sass:map'; | 1 | @use 'sass:map'; |
2 | @use 'iro-sass/src/iro-sass' as iro; | 2 | @use 'iro-sass/src/bem' as bem; |
3 | @use 'iro-sass/src/props'; | 3 | @use 'iro-sass/src/props'; |
4 | @use 'include-media/dist/include-media' as media; | 4 | @use 'include-media/dist/include-media' as media; |
5 | 5 | ||
@@ -7,64 +7,64 @@ | |||
7 | @forward 'core.vars'; | 7 | @forward 'core.vars'; |
8 | 8 | ||
9 | @mixin styles { | 9 | @mixin styles { |
10 | @include iro.bem-theme('base') { | 10 | @include bem.theme('base') { |
11 | background-color: props.get(vars.$theme, --bg-base); | 11 | background-color: props.get(vars.$theme, --bg-base); |
12 | 12 | ||
13 | @include iro.bem-suffix('light') { | 13 | @include bem.suffix('light') { |
14 | @media (prefers-color-scheme: light) { | 14 | @media (prefers-color-scheme: light) { |
15 | background-color: props.get(vars.$theme, --bg-base); | 15 | background-color: props.get(vars.$theme, --bg-base); |
16 | } | 16 | } |
17 | } | 17 | } |
18 | 18 | ||
19 | @include iro.bem-suffix('dark') { | 19 | @include bem.suffix('dark') { |
20 | @media (prefers-color-scheme: dark) { | 20 | @media (prefers-color-scheme: dark) { |
21 | background-color: props.get(vars.$theme, --bg-base); | 21 | background-color: props.get(vars.$theme, --bg-base); |
22 | } | 22 | } |
23 | } | 23 | } |
24 | } | 24 | } |
25 | 25 | ||
26 | @include iro.bem-theme('l1') { | 26 | @include bem.theme('l1') { |
27 | background-color: props.get(vars.$theme, --bg-l1); | 27 | background-color: props.get(vars.$theme, --bg-l1); |
28 | 28 | ||
29 | @include iro.bem-suffix('light') { | 29 | @include bem.suffix('light') { |
30 | @media (prefers-color-scheme: light) { | 30 | @media (prefers-color-scheme: light) { |
31 | background-color: props.get(vars.$theme, --bg-l1); | 31 | background-color: props.get(vars.$theme, --bg-l1); |
32 | } | 32 | } |
33 | } | 33 | } |
34 | 34 | ||
35 | @include iro.bem-suffix('dark') { | 35 | @include bem.suffix('dark') { |
36 | @media (prefers-color-scheme: dark) { | 36 | @media (prefers-color-scheme: dark) { |
37 | background-color: props.get(vars.$theme, --bg-l1); | 37 | background-color: props.get(vars.$theme, --bg-l1); |
38 | } | 38 | } |
39 | } | 39 | } |
40 | } | 40 | } |
41 | 41 | ||
42 | @include iro.bem-theme('l2') { | 42 | @include bem.theme('l2') { |
43 | background-color: props.get(vars.$theme, --bg-l2); | 43 | background-color: props.get(vars.$theme, --bg-l2); |
44 | 44 | ||
45 | @include iro.bem-suffix('light') { | 45 | @include bem.suffix('light') { |
46 | @media (prefers-color-scheme: light) { | 46 | @media (prefers-color-scheme: light) { |
47 | background-color: props.get(vars.$theme, --bg-l2); | 47 | background-color: props.get(vars.$theme, --bg-l2); |
48 | } | 48 | } |
49 | } | 49 | } |
50 | 50 | ||
51 | @include iro.bem-suffix('dark') { | 51 | @include bem.suffix('dark') { |
52 | @media (prefers-color-scheme: dark) { | 52 | @media (prefers-color-scheme: dark) { |
53 | background-color: props.get(vars.$theme, --bg-l2); | 53 | background-color: props.get(vars.$theme, --bg-l2); |
54 | } | 54 | } |
55 | } | 55 | } |
56 | } | 56 | } |
57 | 57 | ||
58 | @include iro.bem-theme('50') { | 58 | @include bem.theme('50') { |
59 | background-color: props.get(vars.$theme, --base, --50); | 59 | background-color: props.get(vars.$theme, --base, --50); |
60 | 60 | ||
61 | @include iro.bem-suffix('light') { | 61 | @include bem.suffix('light') { |
62 | @media (prefers-color-scheme: light) { | 62 | @media (prefers-color-scheme: light) { |
63 | background-color: props.get(vars.$theme, --base, --50); | 63 | background-color: props.get(vars.$theme, --base, --50); |
64 | } | 64 | } |
65 | } | 65 | } |
66 | 66 | ||
67 | @include iro.bem-suffix('dark') { | 67 | @include bem.suffix('dark') { |
68 | @media (prefers-color-scheme: dark) { | 68 | @media (prefers-color-scheme: dark) { |
69 | background-color: props.get(vars.$theme, --base, --50); | 69 | background-color: props.get(vars.$theme, --base, --50); |
70 | } | 70 | } |
diff --git a/src/_utils.scss b/src/_utils.scss index a96666d..132e8bf 100644 --- a/src/_utils.scss +++ b/src/_utils.scss | |||
@@ -1,5 +1,5 @@ | |||
1 | @use 'sass:map'; | 1 | @use 'sass:map'; |
2 | @use 'iro-sass/src/iro-sass' as iro; | 2 | @use 'iro-sass/src/bem' as bem; |
3 | @use 'iro-sass/src/props'; | 3 | @use 'iro-sass/src/props'; |
4 | @use 'include-media/dist/include-media' as media; | 4 | @use 'include-media/dist/include-media' as media; |
5 | 5 | ||
@@ -32,216 +32,216 @@ $-sizes: ( | |||
32 | ) !default; | 32 | ) !default; |
33 | 33 | ||
34 | @mixin styles { | 34 | @mixin styles { |
35 | @include iro.bem-utility('d-block') { | 35 | @include bem.utility('d-block') { |
36 | display: block; | 36 | display: block; |
37 | } | 37 | } |
38 | 38 | ||
39 | @include iro.bem-utility('d-inline-block') { | 39 | @include bem.utility('d-inline-block') { |
40 | display: inline-block; | 40 | display: inline-block; |
41 | } | 41 | } |
42 | 42 | ||
43 | @include iro.bem-utility('d-contents') { | 43 | @include bem.utility('d-contents') { |
44 | display: contents; | 44 | display: contents; |
45 | } | 45 | } |
46 | 46 | ||
47 | @include iro.bem-utility('td-none') { | 47 | @include bem.utility('td-none') { |
48 | text-decoration: none; | 48 | text-decoration: none; |
49 | } | 49 | } |
50 | 50 | ||
51 | @include iro.bem-utility('d-none') { | 51 | @include bem.utility('d-none') { |
52 | display: none; | 52 | display: none; |
53 | 53 | ||
54 | @each $breakpoint in map.keys(media.$breakpoints) { | 54 | @each $breakpoint in map.keys(media.$breakpoints) { |
55 | @include media.media('<=#{$breakpoint}') { | 55 | @include media.media('<=#{$breakpoint}') { |
56 | @include iro.bem-suffix('#{$breakpoint}-lo') { | 56 | @include bem.suffix('#{$breakpoint}-lo') { |
57 | display: none; | 57 | display: none; |
58 | } | 58 | } |
59 | } | 59 | } |
60 | 60 | ||
61 | @include media.media('>#{$breakpoint}') { | 61 | @include media.media('>#{$breakpoint}') { |
62 | @include iro.bem-suffix('#{$breakpoint}-hi') { | 62 | @include bem.suffix('#{$breakpoint}-hi') { |
63 | display: none; | 63 | display: none; |
64 | } | 64 | } |
65 | } | 65 | } |
66 | } | 66 | } |
67 | 67 | ||
68 | @include iro.bem-at-theme('js') { | 68 | @include bem.at-theme('js') { |
69 | @include iro.bem-suffix('js') { | 69 | @include bem.suffix('js') { |
70 | display: none; | 70 | display: none; |
71 | } | 71 | } |
72 | } | 72 | } |
73 | 73 | ||
74 | @include iro.bem-at-theme('no-js') { | 74 | @include bem.at-theme('no-js') { |
75 | @include iro.bem-suffix('no-js') { | 75 | @include bem.suffix('no-js') { |
76 | display: none; | 76 | display: none; |
77 | } | 77 | } |
78 | } | 78 | } |
79 | 79 | ||
80 | @include iro.bem-suffix('empty') { | 80 | @include bem.suffix('empty') { |
81 | &:empty { | 81 | &:empty { |
82 | display: none; | 82 | display: none; |
83 | } | 83 | } |
84 | } | 84 | } |
85 | } | 85 | } |
86 | 86 | ||
87 | @include iro.bem-utility('ta-start') { | 87 | @include bem.utility('ta-start') { |
88 | text-align: start; | 88 | text-align: start; |
89 | } | 89 | } |
90 | 90 | ||
91 | @include iro.bem-utility('ta-end') { | 91 | @include bem.utility('ta-end') { |
92 | text-align: end; | 92 | text-align: end; |
93 | } | 93 | } |
94 | 94 | ||
95 | @include iro.bem-utility('ta-center') { | 95 | @include bem.utility('ta-center') { |
96 | text-align: center; | 96 | text-align: center; |
97 | } | 97 | } |
98 | 98 | ||
99 | @include iro.bem-utility('fw-normal') { | 99 | @include bem.utility('fw-normal') { |
100 | font-weight: normal; | 100 | font-weight: normal; |
101 | } | 101 | } |
102 | 102 | ||
103 | @include iro.bem-utility('ai-center') { | 103 | @include bem.utility('ai-center') { |
104 | align-items: center; | 104 | align-items: center; |
105 | } | 105 | } |
106 | 106 | ||
107 | @include iro.bem-utility('ai-start') { | 107 | @include bem.utility('ai-start') { |
108 | align-items: flex-start; | 108 | align-items: flex-start; |
109 | } | 109 | } |
110 | 110 | ||
111 | @include iro.bem-utility('ai-end') { | 111 | @include bem.utility('ai-end') { |
112 | align-items: flex-end; | 112 | align-items: flex-end; |
113 | } | 113 | } |
114 | 114 | ||
115 | @include iro.bem-utility('jc-center') { | 115 | @include bem.utility('jc-center') { |
116 | justify-content: center; | 116 | justify-content: center; |
117 | } | 117 | } |
118 | 118 | ||
119 | @include iro.bem-utility('jc-start') { | 119 | @include bem.utility('jc-start') { |
120 | justify-content: flex-start; | 120 | justify-content: flex-start; |
121 | } | 121 | } |
122 | 122 | ||
123 | @include iro.bem-utility('jc-end') { | 123 | @include bem.utility('jc-end') { |
124 | justify-content: flex-end; | 124 | justify-content: flex-end; |
125 | } | 125 | } |
126 | 126 | ||
127 | @include iro.bem-utility('tt-upper') { | 127 | @include bem.utility('tt-upper') { |
128 | text-transform: uppercase; | 128 | text-transform: uppercase; |
129 | } | 129 | } |
130 | 130 | ||
131 | @include iro.bem-utility('tt-lower') { | 131 | @include bem.utility('tt-lower') { |
132 | text-transform: lowercase; | 132 | text-transform: lowercase; |
133 | } | 133 | } |
134 | 134 | ||
135 | @include iro.bem-utility('c-heading') { | 135 | @include bem.utility('c-heading') { |
136 | color: props.get(vars.$theme, --heading); | 136 | color: props.get(vars.$theme, --heading); |
137 | } | 137 | } |
138 | 138 | ||
139 | @include iro.bem-utility('c-text') { | 139 | @include bem.utility('c-text') { |
140 | color: props.get(vars.$theme, --text); | 140 | color: props.get(vars.$theme, --text); |
141 | } | 141 | } |
142 | 142 | ||
143 | @include iro.bem-utility('c-mute') { | 143 | @include bem.utility('c-mute') { |
144 | color: props.get(vars.$theme, --text-mute); | 144 | color: props.get(vars.$theme, --text-mute); |
145 | } | 145 | } |
146 | 146 | ||
147 | @include iro.bem-utility('c-mute-more') { | 147 | @include bem.utility('c-mute-more') { |
148 | color: props.get(vars.$theme, --text-mute-more); | 148 | color: props.get(vars.$theme, --text-mute-more); |
149 | } | 149 | } |
150 | 150 | ||
151 | @each $dir, $prop in (is: inline-size, bs: block-size) { | 151 | @each $dir, $prop in (is: inline-size, bs: block-size) { |
152 | @include iro.bem-utility('#{$dir}-100') { | 152 | @include bem.utility('#{$dir}-100') { |
153 | #{$prop}: 100%; | 153 | #{$prop}: 100%; |
154 | } | 154 | } |
155 | 155 | ||
156 | @include iro.bem-utility('#{$dir}-75') { | 156 | @include bem.utility('#{$dir}-75') { |
157 | #{$prop}: 75%; | 157 | #{$prop}: 75%; |
158 | } | 158 | } |
159 | 159 | ||
160 | @include iro.bem-utility('#{$dir}-50') { | 160 | @include bem.utility('#{$dir}-50') { |
161 | #{$prop}: 50%; | 161 | #{$prop}: 50%; |
162 | } | 162 | } |
163 | 163 | ||
164 | @include iro.bem-utility('#{$dir}-25') { | 164 | @include bem.utility('#{$dir}-25') { |
165 | #{$prop}: 25%; | 165 | #{$prop}: 25%; |
166 | } | 166 | } |
167 | 167 | ||
168 | @include iro.bem-utility('#{$dir}-1px') { | 168 | @include bem.utility('#{$dir}-1px') { |
169 | #{$prop}: 1px; | 169 | #{$prop}: 1px; |
170 | } | 170 | } |
171 | 171 | ||
172 | @include iro.bem-utility('#{$dir}-0') { | 172 | @include bem.utility('#{$dir}-0') { |
173 | #{$prop}: 0; | 173 | #{$prop}: 0; |
174 | } | 174 | } |
175 | } | 175 | } |
176 | 176 | ||
177 | @include iro.bem-utility('elp') { | 177 | @include bem.utility('elp') { |
178 | overflow: hidden; | 178 | overflow: hidden; |
179 | text-overflow: ellipsis; | 179 | text-overflow: ellipsis; |
180 | white-space: nowrap; | 180 | white-space: nowrap; |
181 | } | 181 | } |
182 | 182 | ||
183 | @include iro.bem-utility('p-static') { | 183 | @include bem.utility('p-static') { |
184 | position: static; | 184 | position: static; |
185 | } | 185 | } |
186 | 186 | ||
187 | @include iro.bem-utility('p-relative') { | 187 | @include bem.utility('p-relative') { |
188 | position: relative; | 188 | position: relative; |
189 | } | 189 | } |
190 | 190 | ||
191 | @include iro.bem-utility('p-fixed') { | 191 | @include bem.utility('p-fixed') { |
192 | position: fixed; | 192 | position: fixed; |
193 | } | 193 | } |
194 | 194 | ||
195 | @include iro.bem-utility('p-sticky-bs') { | 195 | @include bem.utility('p-sticky-bs') { |
196 | position: sticky; | 196 | position: sticky; |
197 | inset-block-start: 0; | 197 | inset-block-start: 0; |
198 | } | 198 | } |
199 | 199 | ||
200 | @each $dir, $suffix in $-dirs { | 200 | @each $dir, $suffix in $-dirs { |
201 | @include iro.bem-utility('m#{$dir}-auto') { | 201 | @include bem.utility('m#{$dir}-auto') { |
202 | margin#{$suffix}: auto; | 202 | margin#{$suffix}: auto; |
203 | } | 203 | } |
204 | 204 | ||
205 | @include iro.bem-utility('p#{$dir}-auto') { | 205 | @include bem.utility('p#{$dir}-auto') { |
206 | padding#{$suffix}: auto; | 206 | padding#{$suffix}: auto; |
207 | } | 207 | } |
208 | 208 | ||
209 | @each $mod, $size in $-sizes { | 209 | @each $mod, $size in $-sizes { |
210 | @include iro.bem-utility('m#{$dir}-#{$mod}') { | 210 | @include bem.utility('m#{$dir}-#{$mod}') { |
211 | margin#{$suffix}: props.get($size); | 211 | margin#{$suffix}: props.get($size); |
212 | } | 212 | } |
213 | 213 | ||
214 | @include iro.bem-utility('p#{$dir}-#{$mod}') { | 214 | @include bem.utility('p#{$dir}-#{$mod}') { |
215 | padding#{$suffix}: props.get($size); | 215 | padding#{$suffix}: props.get($size); |
216 | } | 216 | } |
217 | } | 217 | } |
218 | 218 | ||
219 | @include iro.bem-utility('b#{$dir}-0') { | 219 | @include bem.utility('b#{$dir}-0') { |
220 | border#{$suffix}: 0; | 220 | border#{$suffix}: 0; |
221 | 221 | ||
222 | @include iro.bem-suffix('light') { | 222 | @include bem.suffix('light') { |
223 | @media (prefers-color-scheme: light) { | 223 | @media (prefers-color-scheme: light) { |
224 | border#{$suffix}: 0; | 224 | border#{$suffix}: 0; |
225 | } | 225 | } |
226 | } | 226 | } |
227 | 227 | ||
228 | @include iro.bem-suffix('dark') { | 228 | @include bem.suffix('dark') { |
229 | @media (prefers-color-scheme: dark) { | 229 | @media (prefers-color-scheme: dark) { |
230 | border#{$suffix}: 0; | 230 | border#{$suffix}: 0; |
231 | } | 231 | } |
232 | } | 232 | } |
233 | } | 233 | } |
234 | 234 | ||
235 | @include iro.bem-utility('b#{$dir}-1') { | 235 | @include bem.utility('b#{$dir}-1') { |
236 | border#{$suffix}: props.get(vars.$border-width--thin) solid props.get(vars.$theme, --border); | 236 | border#{$suffix}: props.get(vars.$border-width--thin) solid props.get(vars.$theme, --border); |
237 | 237 | ||
238 | @include iro.bem-suffix('light') { | 238 | @include bem.suffix('light') { |
239 | @media (prefers-color-scheme: light) { | 239 | @media (prefers-color-scheme: light) { |
240 | border#{$suffix}: props.get(vars.$border-width--thin) solid props.get(vars.$theme, --border); | 240 | border#{$suffix}: props.get(vars.$border-width--thin) solid props.get(vars.$theme, --border); |
241 | } | 241 | } |
242 | } | 242 | } |
243 | 243 | ||
244 | @include iro.bem-suffix('dark') { | 244 | @include bem.suffix('dark') { |
245 | @media (prefers-color-scheme: dark) { | 245 | @media (prefers-color-scheme: dark) { |
246 | border#{$suffix}: props.get(vars.$border-width--thin) solid props.get(vars.$theme, --border); | 246 | border#{$suffix}: props.get(vars.$border-width--thin) solid props.get(vars.$theme, --border); |
247 | } | 247 | } |
@@ -249,7 +249,7 @@ $-sizes: ( | |||
249 | } | 249 | } |
250 | } | 250 | } |
251 | 251 | ||
252 | @include iro.bem-utility('mbs-neutralize') { | 252 | @include bem.utility('mbs-neutralize') { |
253 | &::before { | 253 | &::before { |
254 | display: block; | 254 | display: block; |
255 | margin-block: -100em 100em; | 255 | margin-block: -100em 100em; |
diff --git a/src/layouts/_button-group.scss b/src/layouts/_button-group.scss index 58d0986..4895647 100644 --- a/src/layouts/_button-group.scss +++ b/src/layouts/_button-group.scss | |||
@@ -1,5 +1,5 @@ | |||
1 | @use 'sass:meta'; | 1 | @use 'sass:meta'; |
2 | @use 'iro-sass/src/iro-sass' as iro; | 2 | @use 'iro-sass/src/bem' as bem; |
3 | @use 'iro-sass/src/props'; | 3 | @use 'iro-sass/src/props'; |
4 | @use '../props' as *; | 4 | @use '../props' as *; |
5 | 5 | ||
@@ -9,7 +9,7 @@ | |||
9 | @mixin styles { | 9 | @mixin styles { |
10 | @include materialize-at-root(meta.module-variables('vars')); | 10 | @include materialize-at-root(meta.module-variables('vars')); |
11 | 11 | ||
12 | @include iro.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); |
diff --git a/src/layouts/_card-list.scss b/src/layouts/_card-list.scss index 0722a88..49f4b74 100644 --- a/src/layouts/_card-list.scss +++ b/src/layouts/_card-list.scss | |||
@@ -1,6 +1,6 @@ | |||
1 | @use 'sass:meta'; | 1 | @use 'sass:meta'; |
2 | @use 'include-media/dist/include-media' as media; | 2 | @use 'include-media/dist/include-media' as media; |
3 | @use 'iro-sass/src/iro-sass' as iro; | 3 | @use 'iro-sass/src/bem' as bem; |
4 | @use 'iro-sass/src/props'; | 4 | @use 'iro-sass/src/props'; |
5 | @use '../props' as *; | 5 | @use '../props' as *; |
6 | 6 | ||
@@ -10,47 +10,47 @@ | |||
10 | @mixin styles { | 10 | @mixin styles { |
11 | @include materialize-at-root(meta.module-variables('vars')); | 11 | @include materialize-at-root(meta.module-variables('vars')); |
12 | 12 | ||
13 | @include iro.bem-layout('card-list') { | 13 | @include bem.layout('card-list') { |
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 | 17 | ||
18 | @include iro.bem-modifier('quiet') { | 18 | @include bem.modifier('quiet') { |
19 | row-gap: props.get(vars.$quiet--row-gap); | 19 | row-gap: props.get(vars.$quiet--row-gap); |
20 | } | 20 | } |
21 | 21 | ||
22 | @include iro.bem-modifier('grid') { | 22 | @include bem.modifier('grid') { |
23 | display: grid; | 23 | display: grid; |
24 | grid-template-columns: repeat(auto-fill, minmax(props.get(vars.$grid--col-width), 1fr)); | 24 | grid-template-columns: repeat(auto-fill, minmax(props.get(vars.$grid--col-width), 1fr)); |
25 | gap: props.get(vars.$grid--row-gap) props.get(vars.$grid--col-gap); | 25 | gap: props.get(vars.$grid--row-gap) props.get(vars.$grid--col-gap); |
26 | 26 | ||
27 | @include iro.bem-modifier('quiet') { | 27 | @include bem.modifier('quiet') { |
28 | row-gap: props.get(vars.$grid--quiet--row-gap); | 28 | row-gap: props.get(vars.$grid--quiet--row-gap); |
29 | } | 29 | } |
30 | } | 30 | } |
31 | 31 | ||
32 | @include iro.bem-modifier('masonry') { | 32 | @include bem.modifier('masonry') { |
33 | display: block; | 33 | display: block; |
34 | columns: auto props.get(vars.$masonry--col-width); | 34 | columns: auto props.get(vars.$masonry--col-width); |
35 | column-gap: props.get(vars.$masonry--col-gap); | 35 | column-gap: props.get(vars.$masonry--col-gap); |
36 | 36 | ||
37 | @include iro.bem-elem('card') { | 37 | @include bem.elem('card') { |
38 | margin-block-end: props.get(vars.$masonry--row-gap); | 38 | margin-block-end: props.get(vars.$masonry--row-gap); |
39 | break-inside: avoid; | 39 | break-inside: avoid; |
40 | } | 40 | } |
41 | 41 | ||
42 | @include iro.bem-modifier('quiet') { | 42 | @include bem.modifier('quiet') { |
43 | @include iro.bem-elem('card') { | 43 | @include bem.elem('card') { |
44 | margin-block-end: props.get(vars.$masonry--quiet--row-gap); | 44 | margin-block-end: props.get(vars.$masonry--quiet--row-gap); |
45 | } | 45 | } |
46 | } | 46 | } |
47 | } | 47 | } |
48 | 48 | ||
49 | @include iro.bem-modifier('masonry-h') { | 49 | @include bem.modifier('masonry-h') { |
50 | flex-flow: row wrap; | 50 | flex-flow: row wrap; |
51 | gap: props.get(vars.$masonry-h--row-gap) props.get(vars.$masonry-h--col-gap); | 51 | gap: props.get(vars.$masonry-h--row-gap) props.get(vars.$masonry-h--col-gap); |
52 | 52 | ||
53 | @include iro.bem-modifier('no-flush') { | 53 | @include bem.modifier('no-flush') { |
54 | &::after { | 54 | &::after { |
55 | display: block; | 55 | display: block; |
56 | flex: 1 0 auto; | 56 | flex: 1 0 auto; |
@@ -59,22 +59,22 @@ | |||
59 | } | 59 | } |
60 | } | 60 | } |
61 | 61 | ||
62 | @include iro.bem-elem('card') { | 62 | @include bem.elem('card') { |
63 | flex: 1 0 auto; | 63 | flex: 1 0 auto; |
64 | max-inline-size: 100%; | 64 | max-inline-size: 100%; |
65 | } | 65 | } |
66 | 66 | ||
67 | @include iro.bem-elem('card-image') { | 67 | @include bem.elem('card-image') { |
68 | block-size: props.get(vars.$masonry-h--row-height); | 68 | block-size: props.get(vars.$masonry-h--row-height); |
69 | } | 69 | } |
70 | 70 | ||
71 | @include iro.bem-modifier('quiet') { | 71 | @include bem.modifier('quiet') { |
72 | row-gap: props.get(vars.$masonry-h--quiet--row-gap); | 72 | row-gap: props.get(vars.$masonry-h--quiet--row-gap); |
73 | } | 73 | } |
74 | } | 74 | } |
75 | 75 | ||
76 | @include iro.bem-modifier('aspect-5\\/4') { | 76 | @include bem.modifier('aspect-5\\/4') { |
77 | @include iro.bem-elem('card-image') { | 77 | @include bem.elem('card-image') { |
78 | aspect-ratio: 5 / 4; | 78 | aspect-ratio: 5 / 4; |
79 | } | 79 | } |
80 | } | 80 | } |
diff --git a/src/layouts/_container.scss b/src/layouts/_container.scss index 8b2ed20..3336140 100644 --- a/src/layouts/_container.scss +++ b/src/layouts/_container.scss | |||
@@ -1,5 +1,5 @@ | |||
1 | @use 'sass:meta'; | 1 | @use 'sass:meta'; |
2 | @use 'iro-sass/src/iro-sass' as iro; | 2 | @use 'iro-sass/src/bem' as bem; |
3 | @use 'iro-sass/src/props'; | 3 | @use 'iro-sass/src/props'; |
4 | @use '../props' as *; | 4 | @use '../props' as *; |
5 | 5 | ||
@@ -9,19 +9,19 @@ | |||
9 | @mixin styles { | 9 | @mixin styles { |
10 | @include materialize-at-root(meta.module-variables('vars')); | 10 | @include materialize-at-root(meta.module-variables('vars')); |
11 | 11 | ||
12 | @include iro.bem-layout('container') { | 12 | @include bem.layout('container') { |
13 | @each $mod, $size in vars.$fixed-sizes { | 13 | @each $mod, $size in vars.$fixed-sizes { |
14 | @include iro.bem-modifier($mod) { | 14 | @include bem.modifier($mod) { |
15 | max-inline-size: props.get($size); | 15 | max-inline-size: props.get($size); |
16 | margin-inline: auto; | 16 | margin-inline: auto; |
17 | } | 17 | } |
18 | } | 18 | } |
19 | 19 | ||
20 | @include iro.bem-modifier('pad-i') { | 20 | @include bem.modifier('pad-i') { |
21 | padding-inline: props.get(vars.$pad-i); | 21 | padding-inline: props.get(vars.$pad-i); |
22 | } | 22 | } |
23 | 23 | ||
24 | @include iro.bem-modifier('pad-b') { | 24 | @include bem.modifier('pad-b') { |
25 | padding-block: props.get(vars.$pad-b); | 25 | padding-block: props.get(vars.$pad-b); |
26 | } | 26 | } |
27 | } | 27 | } |
diff --git a/src/layouts/_container.vars.scss b/src/layouts/_container.vars.scss index f5343a6..cba7574 100644 --- a/src/layouts/_container.vars.scss +++ b/src/layouts/_container.vars.scss | |||
@@ -1,10 +1,10 @@ | |||
1 | @use 'iro-sass/src/iro-sass' as iro; | 1 | @use 'iro-sass/src/functions' as fn; |
2 | @use 'iro-sass/src/props'; | 2 | @use 'iro-sass/src/props'; |
3 | @use '../core.vars' as core; | 3 | @use '../core.vars' as core; |
4 | 4 | ||
5 | $fixed-125: props.def(--l-container--fixed-125, iro.fn-px-to-rem(720px)) !default; | 5 | $fixed-125: props.def(--l-container--fixed-125, fn.px-to-rem(720px)) !default; |
6 | $fixed: props.def(--l-container--fixed, iro.fn-px-to-rem(610px)) !default; | 6 | $fixed: props.def(--l-container--fixed, fn.px-to-rem(610px)) !default; |
7 | $fixed-75: props.def(--l-container--fixed-75, iro.fn-px-to-rem(500px)) !default; | 7 | $fixed-75: props.def(--l-container--fixed-75, fn.px-to-rem(500px)) !default; |
8 | 8 | ||
9 | $fixed-sizes: ( | 9 | $fixed-sizes: ( |
10 | 'fixed-125': $fixed-125, | 10 | 'fixed-125': $fixed-125, |
diff --git a/src/layouts/_flex.scss b/src/layouts/_flex.scss index 6cc9dc6..d7cae95 100644 --- a/src/layouts/_flex.scss +++ b/src/layouts/_flex.scss | |||
@@ -1,26 +1,26 @@ | |||
1 | @use 'iro-sass/src/iro-sass' as iro; | 1 | @use 'iro-sass/src/bem' as bem; |
2 | 2 | ||
3 | @mixin styles { | 3 | @mixin styles { |
4 | @include iro.bem-layout('flex') { | 4 | @include bem.layout('flex') { |
5 | display: flex; | 5 | display: flex; |
6 | 6 | ||
7 | @include iro.bem-modifier('align-stretch') { | 7 | @include bem.modifier('align-stretch') { |
8 | align-items: stretch; | 8 | align-items: stretch; |
9 | } | 9 | } |
10 | 10 | ||
11 | @include iro.bem-modifier('align-center') { | 11 | @include bem.modifier('align-center') { |
12 | align-items: center; | 12 | align-items: center; |
13 | } | 13 | } |
14 | 14 | ||
15 | @include iro.bem-modifier('align-start') { | 15 | @include bem.modifier('align-start') { |
16 | align-items: flex-start; | 16 | align-items: flex-start; |
17 | } | 17 | } |
18 | 18 | ||
19 | @include iro.bem-modifier('align-end') { | 19 | @include bem.modifier('align-end') { |
20 | align-items: flex-end; | 20 | align-items: flex-end; |
21 | } | 21 | } |
22 | 22 | ||
23 | @include iro.bem-modifier('column') { | 23 | @include bem.modifier('column') { |
24 | flex-direction: column; | 24 | flex-direction: column; |
25 | } | 25 | } |
26 | } | 26 | } |
diff --git a/src/layouts/_form.scss b/src/layouts/_form.scss index 0bb9d4a..4ccf334 100644 --- a/src/layouts/_form.scss +++ b/src/layouts/_form.scss | |||
@@ -1,5 +1,5 @@ | |||
1 | @use 'sass:meta'; | 1 | @use 'sass:meta'; |
2 | @use 'iro-sass/src/iro-sass' as iro; | 2 | @use 'iro-sass/src/bem' as bem; |
3 | @use 'iro-sass/src/props'; | 3 | @use 'iro-sass/src/props'; |
4 | @use '../props' as *; | 4 | @use '../props' as *; |
5 | 5 | ||
@@ -9,49 +9,49 @@ | |||
9 | @mixin styles { | 9 | @mixin styles { |
10 | @include materialize-at-root(meta.module-variables('vars')); | 10 | @include materialize-at-root(meta.module-variables('vars')); |
11 | 11 | ||
12 | @include iro.bem-layout('form') { | 12 | @include bem.layout('form') { |
13 | display: flex; | 13 | display: flex; |
14 | flex-direction: column; | 14 | flex-direction: column; |
15 | gap: props.get(vars.$item-spacing-b) props.get(vars.$label-spacing-i); | 15 | gap: props.get(vars.$item-spacing-b) props.get(vars.$label-spacing-i); |
16 | 16 | ||
17 | @include iro.bem-elem('item') { | 17 | @include bem.elem('item') { |
18 | display: block; | 18 | display: block; |
19 | } | 19 | } |
20 | 20 | ||
21 | @include iro.bem-elem('item-content') { | 21 | @include bem.elem('item-content') { |
22 | @include iro.bem-modifier('align-start') { | 22 | @include bem.modifier('align-start') { |
23 | align-self: start; | 23 | align-self: start; |
24 | } | 24 | } |
25 | } | 25 | } |
26 | 26 | ||
27 | @include iro.bem-modifier('row') { | 27 | @include bem.modifier('row') { |
28 | flex-direction: row; | 28 | flex-direction: row; |
29 | align-items: flex-end; | 29 | align-items: flex-end; |
30 | } | 30 | } |
31 | 31 | ||
32 | @include iro.bem-modifier('labels-start', 'labels-end') { | 32 | @include bem.modifier('labels-start', 'labels-end') { |
33 | display: grid; | 33 | display: grid; |
34 | grid-template-rows: auto; | 34 | grid-template-rows: auto; |
35 | grid-template-columns: auto 1fr; | 35 | grid-template-columns: auto 1fr; |
36 | align-items: baseline; | 36 | align-items: baseline; |
37 | 37 | ||
38 | @include iro.bem-elem('item') { | 38 | @include bem.elem('item') { |
39 | display: contents; | 39 | display: contents; |
40 | } | 40 | } |
41 | 41 | ||
42 | @include iro.bem-elem('item-label') { | 42 | @include bem.elem('item-label') { |
43 | grid-column: 1; | 43 | grid-column: 1; |
44 | padding-inline-end: 0; | 44 | padding-inline-end: 0; |
45 | } | 45 | } |
46 | 46 | ||
47 | @include iro.bem-elem('item-content') { | 47 | @include bem.elem('item-content') { |
48 | grid-column: 2; | 48 | grid-column: 2; |
49 | margin-block-start: 0; | 49 | margin-block-start: 0; |
50 | } | 50 | } |
51 | } | 51 | } |
52 | 52 | ||
53 | @include iro.bem-modifier('labels-end') { | 53 | @include bem.modifier('labels-end') { |
54 | @include iro.bem-elem('item-label') { | 54 | @include bem.elem('item-label') { |
55 | text-align: end; | 55 | text-align: end; |
56 | } | 56 | } |
57 | } | 57 | } |
diff --git a/src/layouts/_media.scss b/src/layouts/_media.scss index 5658222..63daaf8 100644 --- a/src/layouts/_media.scss +++ b/src/layouts/_media.scss | |||
@@ -1,5 +1,5 @@ | |||
1 | @use 'sass:meta'; | 1 | @use 'sass:meta'; |
2 | @use 'iro-sass/src/iro-sass' as iro; | 2 | @use 'iro-sass/src/bem' as bem; |
3 | @use 'iro-sass/src/props'; | 3 | @use 'iro-sass/src/props'; |
4 | @use '../props' as *; | 4 | @use '../props' as *; |
5 | 5 | ||
@@ -9,31 +9,31 @@ | |||
9 | @mixin styles { | 9 | @mixin styles { |
10 | @include materialize-at-root(meta.module-variables('vars')); | 10 | @include materialize-at-root(meta.module-variables('vars')); |
11 | 11 | ||
12 | @include iro.bem-layout('media') { | 12 | @include bem.layout('media') { |
13 | display: flex; | 13 | display: flex; |
14 | gap: props.get(vars.$gap); | 14 | gap: props.get(vars.$gap); |
15 | align-items: center; | 15 | align-items: center; |
16 | line-height: 1.4; | 16 | line-height: 1.4; |
17 | 17 | ||
18 | @each $mod, $size in vars.$sizes { | 18 | @each $mod, $size in vars.$sizes { |
19 | @include iro.bem-modifier($mod) { | 19 | @include bem.modifier($mod) { |
20 | gap: props.get($size); | 20 | gap: props.get($size); |
21 | } | 21 | } |
22 | } | 22 | } |
23 | 23 | ||
24 | @include iro.bem-modifier('wrap') { | 24 | @include bem.modifier('wrap') { |
25 | flex-wrap: wrap; | 25 | flex-wrap: wrap; |
26 | } | 26 | } |
27 | 27 | ||
28 | @include iro.bem-elem('block') { | 28 | @include bem.elem('block') { |
29 | flex: 0 0 auto; | 29 | flex: 0 0 auto; |
30 | 30 | ||
31 | @include iro.bem-modifier('shrink', 'main') { | 31 | @include bem.modifier('shrink', 'main') { |
32 | flex-shrink: 1; | 32 | flex-shrink: 1; |
33 | min-inline-size: 0; | 33 | min-inline-size: 0; |
34 | } | 34 | } |
35 | 35 | ||
36 | @include iro.bem-modifier('main') { | 36 | @include bem.modifier('main') { |
37 | inline-size: 100%; | 37 | inline-size: 100%; |
38 | } | 38 | } |
39 | } | 39 | } |
diff --git a/src/layouts/_overflow.scss b/src/layouts/_overflow.scss index 3489ed7..195132a 100644 --- a/src/layouts/_overflow.scss +++ b/src/layouts/_overflow.scss | |||
@@ -1,9 +1,9 @@ | |||
1 | @use 'iro-sass/src/iro-sass' as iro; | 1 | @use 'iro-sass/src/bem' as bem; |
2 | @use 'iro-sass/src/props'; | 2 | @use 'iro-sass/src/props'; |
3 | @use '../core.vars' as core; | 3 | @use '../core.vars' as core; |
4 | 4 | ||
5 | @mixin styles { | 5 | @mixin styles { |
6 | @include iro.bem-layout('overflow') { | 6 | @include bem.layout('overflow') { |
7 | overflow: auto; | 7 | overflow: auto; |
8 | scrollbar-color: props.get(core.$theme, --text-disabled) transparent; | 8 | scrollbar-color: props.get(core.$theme, --text-disabled) transparent; |
9 | } | 9 | } |
diff --git a/src/objects/_action-button.scss b/src/objects/_action-button.scss index 046cd16..caba917 100644 --- a/src/objects/_action-button.scss +++ b/src/objects/_action-button.scss | |||
@@ -2,7 +2,7 @@ | |||
2 | @use 'sass:map'; | 2 | @use 'sass:map'; |
3 | @use 'sass:meta'; | 3 | @use 'sass:meta'; |
4 | @use 'sass:string'; | 4 | @use 'sass:string'; |
5 | @use 'iro-sass/src/iro-sass' as iro; | 5 | @use 'iro-sass/src/bem' as bem; |
6 | @use 'iro-sass/src/props'; | 6 | @use 'iro-sass/src/props'; |
7 | @use '../props' as *; | 7 | @use '../props' as *; |
8 | 8 | ||
@@ -45,7 +45,7 @@ | |||
45 | } | 45 | } |
46 | } | 46 | } |
47 | 47 | ||
48 | @include iro.bem-modifier('quiet') { | 48 | @include bem.modifier('quiet') { |
49 | color: props.get($theme, list.join($key, --quiet --disabled --label-color)...); | 49 | color: props.get($theme, list.join($key, --quiet --disabled --label-color)...); |
50 | background-color: transparent; | 50 | background-color: transparent; |
51 | border-color: transparent; | 51 | border-color: transparent; |
@@ -72,7 +72,7 @@ | |||
72 | } | 72 | } |
73 | } | 73 | } |
74 | 74 | ||
75 | @include iro.bem-is('selected') { | 75 | @include bem.is('selected') { |
76 | color: props.get($theme, list.join($key, --selected --disabled --label-color)...); | 76 | color: props.get($theme, list.join($key, --selected --disabled --label-color)...); |
77 | background-color: props.get($theme, list.join($key, --selected --disabled --bg-color)...); | 77 | background-color: props.get($theme, list.join($key, --selected --disabled --bg-color)...); |
78 | border-color: props.get($theme, list.join($key, --selected --disabled --border-color)...); | 78 | border-color: props.get($theme, list.join($key, --selected --disabled --border-color)...); |
@@ -103,7 +103,7 @@ | |||
103 | @mixin styles { | 103 | @mixin styles { |
104 | @include materialize-at-root(meta.module-variables('vars')); | 104 | @include materialize-at-root(meta.module-variables('vars')); |
105 | 105 | ||
106 | @include iro.bem-object('action-button') { | 106 | @include bem.object('action-button') { |
107 | position: relative; | 107 | position: relative; |
108 | display: inline-block; | 108 | display: inline-block; |
109 | padding-block: props.get(vars.$pad-b); | 109 | padding-block: props.get(vars.$pad-b); |
@@ -140,12 +140,12 @@ | |||
140 | @include -apply-theme(vars.$default-theme); | 140 | @include -apply-theme(vars.$default-theme); |
141 | 141 | ||
142 | @each $theme in map.keys(props.get(vars.$themes)) { | 142 | @each $theme in map.keys(props.get(vars.$themes)) { |
143 | @include iro.bem-modifier(string.slice($theme, 3)) { | 143 | @include bem.modifier(string.slice($theme, 3)) { |
144 | @include -apply-theme(vars.$themes, $theme); | 144 | @include -apply-theme(vars.$themes, $theme); |
145 | } | 145 | } |
146 | } | 146 | } |
147 | 147 | ||
148 | @include iro.bem-modifier('pill') { | 148 | @include bem.modifier('pill') { |
149 | padding-inline: props.get(vars.$pad-i-pill); | 149 | padding-inline: props.get(vars.$pad-i-pill); |
150 | border-radius: 100em; | 150 | border-radius: 100em; |
151 | 151 | ||
@@ -155,23 +155,23 @@ | |||
155 | } | 155 | } |
156 | 156 | ||
157 | @each $mod, $pad-i, $pad-i-pill, $pad-b, $font-size in vars.$fixed-sizes { | 157 | @each $mod, $pad-i, $pad-i-pill, $pad-b, $font-size in vars.$fixed-sizes { |
158 | @include iro.bem-modifier($mod) { | 158 | @include bem.modifier($mod) { |
159 | padding-block: props.get($pad-b); | 159 | padding-block: props.get($pad-b); |
160 | padding-inline: props.get($pad-i); | 160 | padding-inline: props.get($pad-i); |
161 | font-size: props.get($font-size); | 161 | font-size: props.get($font-size); |
162 | 162 | ||
163 | @include iro.bem-modifier('pill') { | 163 | @include bem.modifier('pill') { |
164 | padding-inline: props.get($pad-i-pill); | 164 | padding-inline: props.get($pad-i-pill); |
165 | } | 165 | } |
166 | } | 166 | } |
167 | } | 167 | } |
168 | 168 | ||
169 | @include iro.bem-modifier('icon') { | 169 | @include bem.modifier('icon') { |
170 | inline-size: calc(1em * props.get(vars.$line-height) + 2 * props.get(vars.$pad-b)); | 170 | inline-size: calc(1em * props.get(vars.$line-height) + 2 * props.get(vars.$pad-b)); |
171 | padding-inline: 0; | 171 | padding-inline: 0; |
172 | 172 | ||
173 | @each $mod, $pad-i, $pad-i-pill, $pad-b, $font-size in vars.$fixed-sizes { | 173 | @each $mod, $pad-i, $pad-i-pill, $pad-b, $font-size in vars.$fixed-sizes { |
174 | @include iro.bem-modifier($mod) { | 174 | @include bem.modifier($mod) { |
175 | inline-size: calc(1em * props.get(vars.$line-height) + 2 * props.get($pad-b)); | 175 | inline-size: calc(1em * props.get(vars.$line-height) + 2 * props.get($pad-b)); |
176 | padding-inline: 0; | 176 | padding-inline: 0; |
177 | } | 177 | } |
diff --git a/src/objects/_alert.scss b/src/objects/_alert.scss index e4c2038..3c9209a 100644 --- a/src/objects/_alert.scss +++ b/src/objects/_alert.scss | |||
@@ -1,6 +1,6 @@ | |||
1 | @use 'sass:map'; | 1 | @use 'sass:map'; |
2 | @use 'sass:meta'; | 2 | @use 'sass:meta'; |
3 | @use 'iro-sass/src/iro-sass' as iro; | 3 | @use 'iro-sass/src/bem' as bem; |
4 | @use 'iro-sass/src/props'; | 4 | @use 'iro-sass/src/props'; |
5 | @use '../props' as *; | 5 | @use '../props' as *; |
6 | 6 | ||
@@ -10,7 +10,7 @@ | |||
10 | @mixin styles { | 10 | @mixin styles { |
11 | @include materialize-at-root(meta.module-variables('vars')); | 11 | @include materialize-at-root(meta.module-variables('vars')); |
12 | 12 | ||
13 | @include iro.bem-object('alert') { | 13 | @include bem.object('alert') { |
14 | padding-block: props.get(vars.$pad-b); | 14 | padding-block: props.get(vars.$pad-b); |
15 | padding-inline: props.get(vars.$pad-i); | 15 | padding-inline: props.get(vars.$pad-i); |
16 | background-color: props.get(vars.$bg-color); | 16 | background-color: props.get(vars.$bg-color); |
@@ -18,7 +18,7 @@ | |||
18 | border-radius: props.get(vars.$rounding); | 18 | border-radius: props.get(vars.$rounding); |
19 | 19 | ||
20 | @each $mod, $theme in vars.$themes-config { | 20 | @each $mod, $theme in vars.$themes-config { |
21 | @include iro.bem-modifier($mod) { | 21 | @include bem.modifier($mod) { |
22 | border-color: props.get(vars.$themes, $theme, --border-color); | 22 | border-color: props.get(vars.$themes, $theme, --border-color); |
23 | } | 23 | } |
24 | } | 24 | } |
diff --git a/src/objects/_avatar.scss b/src/objects/_avatar.scss index 0f8e70f..535537f 100644 --- a/src/objects/_avatar.scss +++ b/src/objects/_avatar.scss | |||
@@ -1,5 +1,5 @@ | |||
1 | @use 'sass:meta'; | 1 | @use 'sass:meta'; |
2 | @use 'iro-sass/src/iro-sass' as iro; | 2 | @use 'iro-sass/src/bem' as bem; |
3 | @use 'iro-sass/src/props'; | 3 | @use 'iro-sass/src/props'; |
4 | @use '../props' as *; | 4 | @use '../props' as *; |
5 | 5 | ||
@@ -7,11 +7,11 @@ | |||
7 | @use 'avatar.vars' as vars; | 7 | @use 'avatar.vars' as vars; |
8 | 8 | ||
9 | @mixin status($indicator-size) { | 9 | @mixin status($indicator-size) { |
10 | @include iro.bem-elem('status') { | 10 | @include bem.elem('status') { |
11 | inline-size: props.get($indicator-size); | 11 | inline-size: props.get($indicator-size); |
12 | block-size: props.get($indicator-size); | 12 | block-size: props.get($indicator-size); |
13 | 13 | ||
14 | @include iro.bem-next-elem('content') { | 14 | @include bem.next-elem('content') { |
15 | mask-image: radial-gradient(circle calc(.5 * props.get($indicator-size) + props.get(vars.$indicator-spacing)) at | 15 | mask-image: radial-gradient(circle calc(.5 * props.get($indicator-size) + props.get(vars.$indicator-spacing)) at |
16 | calc(100% - .5 * props.get($indicator-size)) | 16 | calc(100% - .5 * props.get($indicator-size)) |
17 | calc(100% - .5 * props.get($indicator-size)), | 17 | calc(100% - .5 * props.get($indicator-size)), |
@@ -24,7 +24,7 @@ | |||
24 | @mixin styles { | 24 | @mixin styles { |
25 | @include materialize-at-root(meta.module-variables('vars')); | 25 | @include materialize-at-root(meta.module-variables('vars')); |
26 | 26 | ||
27 | @include iro.bem-object('avatar') { | 27 | @include bem.object('avatar') { |
28 | position: relative; | 28 | position: relative; |
29 | display: inline-block; | 29 | display: inline-block; |
30 | font-size: props.get(vars.$font-size); | 30 | font-size: props.get(vars.$font-size); |
@@ -50,7 +50,7 @@ | |||
50 | props.get(vars.$key-focus--outline-color); | 50 | props.get(vars.$key-focus--outline-color); |
51 | } | 51 | } |
52 | 52 | ||
53 | @include iro.bem-elem('status') { | 53 | @include bem.elem('status') { |
54 | position: absolute; | 54 | position: absolute; |
55 | inset-block-end: 0; | 55 | inset-block-end: 0; |
56 | inset-inline-end: 0; | 56 | inset-inline-end: 0; |
@@ -58,7 +58,7 @@ | |||
58 | 58 | ||
59 | @include status(vars.$indicator-size); | 59 | @include status(vars.$indicator-size); |
60 | 60 | ||
61 | @include iro.bem-elem('content') { | 61 | @include bem.elem('content') { |
62 | display: block; | 62 | display: block; |
63 | inline-size: props.get(vars.$size); | 63 | inline-size: props.get(vars.$size); |
64 | block-size: props.get(vars.$size); | 64 | block-size: props.get(vars.$size); |
@@ -69,38 +69,38 @@ | |||
69 | border-radius: props.get(vars.$rounding); | 69 | border-radius: props.get(vars.$rounding); |
70 | } | 70 | } |
71 | 71 | ||
72 | @include iro.bem-modifier('circle') { | 72 | @include bem.modifier('circle') { |
73 | border-radius: 100%; | 73 | border-radius: 100%; |
74 | 74 | ||
75 | &::after { | 75 | &::after { |
76 | border-radius: 100%; | 76 | border-radius: 100%; |
77 | } | 77 | } |
78 | 78 | ||
79 | @include iro.bem-elem('content') { | 79 | @include bem.elem('content') { |
80 | border-radius: 100%; | 80 | border-radius: 100%; |
81 | } | 81 | } |
82 | } | 82 | } |
83 | 83 | ||
84 | @include iro.bem-modifier('placeholder') { | 84 | @include bem.modifier('placeholder') { |
85 | @include iro.bem-elem('content') { | 85 | @include bem.elem('content') { |
86 | background-color: hsl(0, 0%, props.get(vars.$bg-color--l)); | 86 | background-color: hsl(0, 0%, props.get(vars.$bg-color--l)); |
87 | } | 87 | } |
88 | } | 88 | } |
89 | 89 | ||
90 | @include iro.bem-modifier('colored') { | 90 | @include bem.modifier('colored') { |
91 | @include iro.bem-elem('content') { | 91 | @include bem.elem('content') { |
92 | color: #fff; | 92 | color: #fff; |
93 | background-color: hsl(props.get(vars.$bg-color--h), props.get(vars.$bg-color--s), props.get(vars.$bg-color--l)); | 93 | background-color: hsl(props.get(vars.$bg-color--h), props.get(vars.$bg-color--s), props.get(vars.$bg-color--l)); |
94 | } | 94 | } |
95 | } | 95 | } |
96 | 96 | ||
97 | @each $mod, $size, $font-size, $indicator-size in vars.$sizes { | 97 | @each $mod, $size, $font-size, $indicator-size in vars.$sizes { |
98 | @include iro.bem-modifier($mod) { | 98 | @include bem.modifier($mod) { |
99 | font-size: props.get($font-size); | 99 | font-size: props.get($font-size); |
100 | 100 | ||
101 | @include status($indicator-size); | 101 | @include status($indicator-size); |
102 | 102 | ||
103 | @include iro.bem-elem('content') { | 103 | @include bem.elem('content') { |
104 | inline-size: props.get($size); | 104 | inline-size: props.get($size); |
105 | block-size: props.get($size); | 105 | block-size: props.get($size); |
106 | line-height: props.get($size); | 106 | line-height: props.get($size); |
diff --git a/src/objects/_backdrop.scss b/src/objects/_backdrop.scss index bf38079..0e8a7f0 100644 --- a/src/objects/_backdrop.scss +++ b/src/objects/_backdrop.scss | |||
@@ -1,5 +1,5 @@ | |||
1 | @use 'sass:meta'; | 1 | @use 'sass:meta'; |
2 | @use 'iro-sass/src/iro-sass' as iro; | 2 | @use 'iro-sass/src/bem' as bem; |
3 | @use 'iro-sass/src/props'; | 3 | @use 'iro-sass/src/props'; |
4 | @use '../props' as *; | 4 | @use '../props' as *; |
5 | 5 | ||
@@ -9,7 +9,7 @@ | |||
9 | @mixin styles { | 9 | @mixin styles { |
10 | @include materialize-at-root(meta.module-variables('vars')); | 10 | @include materialize-at-root(meta.module-variables('vars')); |
11 | 11 | ||
12 | @include iro.bem-object('backdrop') { | 12 | @include bem.object('backdrop') { |
13 | position: fixed; | 13 | position: fixed; |
14 | inset: 0; | 14 | inset: 0; |
15 | z-index: props.get(vars.$z-index); | 15 | z-index: props.get(vars.$z-index); |
diff --git a/src/objects/_badge.scss b/src/objects/_badge.scss index 1c28095..d50752a 100644 --- a/src/objects/_badge.scss +++ b/src/objects/_badge.scss | |||
@@ -2,7 +2,7 @@ | |||
2 | @use 'sass:map'; | 2 | @use 'sass:map'; |
3 | @use 'sass:meta'; | 3 | @use 'sass:meta'; |
4 | @use 'sass:string'; | 4 | @use 'sass:string'; |
5 | @use 'iro-sass/src/iro-sass' as iro; | 5 | @use 'iro-sass/src/bem' as bem; |
6 | @use 'iro-sass/src/props'; | 6 | @use 'iro-sass/src/props'; |
7 | @use '../props' as *; | 7 | @use '../props' as *; |
8 | @use '../core.vars' as core; | 8 | @use '../core.vars' as core; |
@@ -29,7 +29,7 @@ | |||
29 | } | 29 | } |
30 | } | 30 | } |
31 | 31 | ||
32 | @include iro.bem-modifier('quiet') { | 32 | @include bem.modifier('quiet') { |
33 | color: props.get($theme, list.join($key, --quiet --label)...); | 33 | color: props.get($theme, list.join($key, --quiet --label)...); |
34 | background-color: props.get($theme, list.join($key, --quiet --bg)...); | 34 | background-color: props.get($theme, list.join($key, --quiet --bg)...); |
35 | 35 | ||
@@ -65,7 +65,7 @@ | |||
65 | @mixin styles { | 65 | @mixin styles { |
66 | @include materialize-at-root(meta.module-variables('vars')); | 66 | @include materialize-at-root(meta.module-variables('vars')); |
67 | 67 | ||
68 | @include iro.bem-object('badge') { | 68 | @include bem.object('badge') { |
69 | position: relative; | 69 | position: relative; |
70 | display: inline-block; | 70 | display: inline-block; |
71 | padding-block: props.get(vars.$pad-b); | 71 | padding-block: props.get(vars.$pad-b); |
@@ -98,25 +98,25 @@ | |||
98 | } | 98 | } |
99 | } | 99 | } |
100 | 100 | ||
101 | @include iro.bem-elem('label') { | 101 | @include bem.elem('label') { |
102 | margin-inline: props.get(vars.$pad-i-label); | 102 | margin-inline: props.get(vars.$pad-i-label); |
103 | } | 103 | } |
104 | 104 | ||
105 | @include -apply-theme(vars.$default-theme, $static: true); | 105 | @include -apply-theme(vars.$default-theme, $static: true); |
106 | 106 | ||
107 | @each $theme in map.keys(props.get(vars.$themes)) { | 107 | @each $theme in map.keys(props.get(vars.$themes)) { |
108 | @include iro.bem-modifier(string.slice($theme, 3)) { | 108 | @include bem.modifier(string.slice($theme, 3)) { |
109 | @include -apply-theme(vars.$themes, $theme); | 109 | @include -apply-theme(vars.$themes, $theme); |
110 | } | 110 | } |
111 | } | 111 | } |
112 | 112 | ||
113 | @each $theme in map.keys(props.get(vars.$static-themes)) { | 113 | @each $theme in map.keys(props.get(vars.$static-themes)) { |
114 | @include iro.bem-modifier(string.slice($theme, 3)) { | 114 | @include bem.modifier(string.slice($theme, 3)) { |
115 | @include -apply-theme(vars.$static-themes, $theme, true); | 115 | @include -apply-theme(vars.$static-themes, $theme, true); |
116 | } | 116 | } |
117 | } | 117 | } |
118 | 118 | ||
119 | @include iro.bem-modifier('pill') { | 119 | @include bem.modifier('pill') { |
120 | padding-inline: props.get(vars.$pad-i-pill); | 120 | padding-inline: props.get(vars.$pad-i-pill); |
121 | border-radius: 10em; | 121 | border-radius: 10em; |
122 | 122 | ||
@@ -126,16 +126,16 @@ | |||
126 | } | 126 | } |
127 | 127 | ||
128 | @each $mod, $pad-b, $pad-i, $pad-i-pill, $pad-i-label, $font-size in vars.$sizes { | 128 | @each $mod, $pad-b, $pad-i, $pad-i-pill, $pad-i-label, $font-size in vars.$sizes { |
129 | @include iro.bem-modifier($mod) { | 129 | @include bem.modifier($mod) { |
130 | padding-block: props.get($pad-b); | 130 | padding-block: props.get($pad-b); |
131 | padding-inline: props.get($pad-i); | 131 | padding-inline: props.get($pad-i); |
132 | font-size: props.get($font-size); | 132 | font-size: props.get($font-size); |
133 | 133 | ||
134 | @include iro.bem-elem('label') { | 134 | @include bem.elem('label') { |
135 | margin-inline: props.get($pad-i-label); | 135 | margin-inline: props.get($pad-i-label); |
136 | } | 136 | } |
137 | 137 | ||
138 | @include iro.bem-modifier('pill') { | 138 | @include bem.modifier('pill') { |
139 | padding-inline: props.get($pad-i-pill); | 139 | padding-inline: props.get($pad-i-pill); |
140 | } | 140 | } |
141 | } | 141 | } |
diff --git a/src/objects/_button.scss b/src/objects/_button.scss index 9d5a8a1..1809ba6 100644 --- a/src/objects/_button.scss +++ b/src/objects/_button.scss | |||
@@ -2,7 +2,7 @@ | |||
2 | @use 'sass:map'; | 2 | @use 'sass:map'; |
3 | @use 'sass:meta'; | 3 | @use 'sass:meta'; |
4 | @use 'sass:string'; | 4 | @use 'sass:string'; |
5 | @use 'iro-sass/src/iro-sass' as iro; | 5 | @use 'iro-sass/src/bem' as bem; |
6 | @use 'iro-sass/src/props'; | 6 | @use 'iro-sass/src/props'; |
7 | @use '../props' as *; | 7 | @use '../props' as *; |
8 | @use '../core.vars' as core; | 8 | @use '../core.vars' as core; |
@@ -19,7 +19,7 @@ | |||
19 | border-color: transparent; | 19 | border-color: transparent; |
20 | } | 20 | } |
21 | 21 | ||
22 | @include iro.bem-modifier('outline') { | 22 | @include bem.modifier('outline') { |
23 | &:link, | 23 | &:link, |
24 | &:visited, | 24 | &:visited, |
25 | &:enabled { | 25 | &:enabled { |
@@ -62,14 +62,14 @@ | |||
62 | props.get($theme, list.join($key, --key-focus --outline)...); | 62 | props.get($theme, list.join($key, --key-focus --outline)...); |
63 | } | 63 | } |
64 | 64 | ||
65 | @include iro.bem-modifier('outline') { | 65 | @include bem.modifier('outline') { |
66 | background-color: transparent; | 66 | background-color: transparent; |
67 | border-color: props.get($theme, list.join($key, --disabled --outline-border)...); | 67 | border-color: props.get($theme, list.join($key, --disabled --outline-border)...); |
68 | } | 68 | } |
69 | 69 | ||
70 | @include -apply-theme($theme, $key); | 70 | @include -apply-theme($theme, $key); |
71 | 71 | ||
72 | @include iro.bem-modifier('primary') { | 72 | @include bem.modifier('primary') { |
73 | @include -apply-theme($theme, list.join($key, --primary)); | 73 | @include -apply-theme($theme, list.join($key, --primary)); |
74 | } | 74 | } |
75 | } | 75 | } |
@@ -77,7 +77,7 @@ | |||
77 | @mixin styles { | 77 | @mixin styles { |
78 | @include materialize-at-root(meta.module-variables('vars')); | 78 | @include materialize-at-root(meta.module-variables('vars')); |
79 | 79 | ||
80 | @include iro.bem-object('button') { | 80 | @include bem.object('button') { |
81 | position: relative; | 81 | position: relative; |
82 | display: inline-block; | 82 | display: inline-block; |
83 | padding-block: props.get(vars.$pad-b); | 83 | padding-block: props.get(vars.$pad-b); |
@@ -111,25 +111,25 @@ | |||
111 | } | 111 | } |
112 | } | 112 | } |
113 | 113 | ||
114 | @include iro.bem-elem('label') { | 114 | @include bem.elem('label') { |
115 | margin-inline: props.get(vars.$pad-i-label); | 115 | margin-inline: props.get(vars.$pad-i-label); |
116 | } | 116 | } |
117 | 117 | ||
118 | @include iro.bem-modifier('block') { | 118 | @include bem.modifier('block') { |
119 | display: block; | 119 | display: block; |
120 | } | 120 | } |
121 | 121 | ||
122 | @include iro.bem-modifier('outline') { | 122 | @include bem.modifier('outline') { |
123 | background-color: transparent; | 123 | background-color: transparent; |
124 | } | 124 | } |
125 | 125 | ||
126 | @each $mod, $pad-i, $pad-i-label, $pad-b, $font-size in vars.$sizes { | 126 | @each $mod, $pad-i, $pad-i-label, $pad-b, $font-size in vars.$sizes { |
127 | @include iro.bem-modifier($mod) { | 127 | @include bem.modifier($mod) { |
128 | padding-block: props.get($pad-b); | 128 | padding-block: props.get($pad-b); |
129 | padding-inline: props.get($pad-i); | 129 | padding-inline: props.get($pad-i); |
130 | font-size: props.get($font-size); | 130 | font-size: props.get($font-size); |
131 | 131 | ||
132 | @include iro.bem-elem('label') { | 132 | @include bem.elem('label') { |
133 | margin-inline: props.get($pad-i-label); | 133 | margin-inline: props.get($pad-i-label); |
134 | } | 134 | } |
135 | } | 135 | } |
@@ -138,18 +138,18 @@ | |||
138 | @include -apply-static-theme(vars.$default-theme); | 138 | @include -apply-static-theme(vars.$default-theme); |
139 | 139 | ||
140 | @each $theme in map.keys(props.get(vars.$themes)) { | 140 | @each $theme in map.keys(props.get(vars.$themes)) { |
141 | @include iro.bem-modifier(string.slice($theme, 3)) { | 141 | @include bem.modifier(string.slice($theme, 3)) { |
142 | @include -apply-theme(vars.$themes, $theme); | 142 | @include -apply-theme(vars.$themes, $theme); |
143 | } | 143 | } |
144 | } | 144 | } |
145 | 145 | ||
146 | @each $theme in map.keys(props.get(vars.$static-themes)) { | 146 | @each $theme in map.keys(props.get(vars.$static-themes)) { |
147 | @include iro.bem-modifier(string.slice($theme, 3)) { | 147 | @include bem.modifier(string.slice($theme, 3)) { |
148 | @include -apply-static-theme(vars.$static-themes, $theme); | 148 | @include -apply-static-theme(vars.$static-themes, $theme); |
149 | } | 149 | } |
150 | } | 150 | } |
151 | 151 | ||
152 | @include iro.bem-modifier('round') { | 152 | @include bem.modifier('round') { |
153 | inline-size: calc(1em * props.get(vars.$line-height) + 2 * props.get(vars.$pad-b)); | 153 | inline-size: calc(1em * props.get(vars.$line-height) + 2 * props.get(vars.$pad-b)); |
154 | padding-inline: 0; | 154 | padding-inline: 0; |
155 | border-radius: 100em; | 155 | border-radius: 100em; |
diff --git a/src/objects/_card.scss b/src/objects/_card.scss index d92237b..a085491 100644 --- a/src/objects/_card.scss +++ b/src/objects/_card.scss | |||
@@ -1,5 +1,5 @@ | |||
1 | @use 'sass:meta'; | 1 | @use 'sass:meta'; |
2 | @use 'iro-sass/src/iro-sass' as iro; | 2 | @use 'iro-sass/src/bem' as bem; |
3 | @use 'iro-sass/src/props'; | 3 | @use 'iro-sass/src/props'; |
4 | @use '../props' as *; | 4 | @use '../props' as *; |
5 | @use 'avatar.vars' as avatar; | 5 | @use 'avatar.vars' as avatar; |
@@ -10,7 +10,7 @@ | |||
10 | @mixin styles { | 10 | @mixin styles { |
11 | @include materialize-at-root(meta.module-variables('vars')); | 11 | @include materialize-at-root(meta.module-variables('vars')); |
12 | 12 | ||
13 | @include iro.bem-object('card') { | 13 | @include bem.object('card') { |
14 | position: relative; | 14 | position: relative; |
15 | display: flex; | 15 | display: flex; |
16 | flex-direction: column; | 16 | flex-direction: column; |
@@ -21,14 +21,14 @@ | |||
21 | border-radius: calc(props.get(vars.$rounding) + props.get(vars.$key-focus--border-offset)); | 21 | border-radius: calc(props.get(vars.$rounding) + props.get(vars.$key-focus--border-offset)); |
22 | transition: transform .2s; | 22 | transition: transform .2s; |
23 | 23 | ||
24 | @include iro.bem-multi('&:link, &:visited, &:enabled', 'modifier' 'interactive') { | 24 | @include bem.multi('&:link, &:visited, &:enabled', 'modifier' 'interactive') { |
25 | &:hover, | 25 | &:hover, |
26 | &:active, | 26 | &:active, |
27 | &:focus-visible { | 27 | &:focus-visible { |
28 | transform: translateY(props.get(vars.$hover--offset-b)); | 28 | transform: translateY(props.get(vars.$hover--offset-b)); |
29 | 29 | ||
30 | @include iro.bem-elem('body') { | 30 | @include bem.elem('body') { |
31 | @include iro.bem-modifier('hidden') { | 31 | @include bem.modifier('hidden') { |
32 | visibility: visible; | 32 | visibility: visible; |
33 | opacity: 1; | 33 | opacity: 1; |
34 | transition: | 34 | transition: |
@@ -49,12 +49,12 @@ | |||
49 | } | 49 | } |
50 | } | 50 | } |
51 | 51 | ||
52 | @include iro.bem-elem('avatar') { | 52 | @include bem.elem('avatar') { |
53 | margin-block-start: props.get(vars.$pad-b); | 53 | margin-block-start: props.get(vars.$pad-b); |
54 | margin-inline-start: props.get(vars.$pad-i); | 54 | margin-inline-start: props.get(vars.$pad-i); |
55 | } | 55 | } |
56 | 56 | ||
57 | @include iro.bem-elem('image') { | 57 | @include bem.elem('image') { |
58 | display: block; | 58 | display: block; |
59 | flex: 0 0 auto; | 59 | flex: 0 0 auto; |
60 | inline-size: 100%; | 60 | inline-size: 100%; |
@@ -71,12 +71,12 @@ | |||
71 | border-end-end-radius: props.get(vars.$rounding); | 71 | border-end-end-radius: props.get(vars.$rounding); |
72 | } | 72 | } |
73 | 73 | ||
74 | @include iro.bem-next-elem('avatar') { | 74 | @include bem.next-elem('avatar') { |
75 | margin-block-start: calc(-.7 * props.get(avatar.$size--xl)); | 75 | margin-block-start: calc(-.7 * props.get(avatar.$size--xl)); |
76 | } | 76 | } |
77 | } | 77 | } |
78 | 78 | ||
79 | @include iro.bem-elem('body') { | 79 | @include bem.elem('body') { |
80 | flex: 1 0 auto; | 80 | flex: 1 0 auto; |
81 | padding-block: props.get(vars.$pad-b); | 81 | padding-block: props.get(vars.$pad-b); |
82 | padding-inline: props.get(vars.$pad-i); | 82 | padding-inline: props.get(vars.$pad-i); |
@@ -87,7 +87,7 @@ | |||
87 | content: ''; | 87 | content: ''; |
88 | } | 88 | } |
89 | 89 | ||
90 | @include iro.bem-modifier('hidden') { | 90 | @include bem.modifier('hidden') { |
91 | position: absolute; | 91 | position: absolute; |
92 | inset-block-end: 0; | 92 | inset-block-end: 0; |
93 | inset-inline: 0; | 93 | inset-inline: 0; |
@@ -101,18 +101,18 @@ | |||
101 | opacity .2s ease, | 101 | opacity .2s ease, |
102 | visibility 0s .2s linear; | 102 | visibility 0s .2s linear; |
103 | 103 | ||
104 | @include iro.bem-next-elem('image') { | 104 | @include bem.next-elem('image') { |
105 | border-start-start-radius: props.get(vars.$rounding); | 105 | border-start-start-radius: props.get(vars.$rounding); |
106 | border-start-end-radius: props.get(vars.$rounding); | 106 | border-start-end-radius: props.get(vars.$rounding); |
107 | } | 107 | } |
108 | } | 108 | } |
109 | } | 109 | } |
110 | 110 | ||
111 | @include iro.bem-elem('content') { | 111 | @include bem.elem('content') { |
112 | margin-block-start: props.get(vars.$spacing); | 112 | margin-block-start: props.get(vars.$spacing); |
113 | } | 113 | } |
114 | 114 | ||
115 | @include iro.bem-elem('footer') { | 115 | @include bem.elem('footer') { |
116 | flex: 0 0 auto; | 116 | flex: 0 0 auto; |
117 | padding-block: 0 props.get(vars.$pad-b); | 117 | padding-block: 0 props.get(vars.$pad-b); |
118 | padding-inline: props.get(vars.$pad-i); | 118 | padding-inline: props.get(vars.$pad-i); |
@@ -127,18 +127,18 @@ | |||
127 | } | 127 | } |
128 | } | 128 | } |
129 | 129 | ||
130 | @include iro.bem-modifier('quiet') { | 130 | @include bem.modifier('quiet') { |
131 | position: relative; | 131 | position: relative; |
132 | background-color: transparent; | 132 | background-color: transparent; |
133 | border: 0; | 133 | border: 0; |
134 | 134 | ||
135 | @include iro.bem-multi('&:link, &:visited, &:enabled', 'modifier' 'interactive') { | 135 | @include bem.multi('&:link, &:visited, &:enabled', 'modifier' 'interactive') { |
136 | &:hover, | 136 | &:hover, |
137 | &:active, | 137 | &:active, |
138 | &:focus-visible { | 138 | &:focus-visible { |
139 | transform: none; | 139 | transform: none; |
140 | 140 | ||
141 | @include iro.bem-elem('image') { | 141 | @include bem.elem('image') { |
142 | background-color: props.get(vars.$quiet--hover--image-color); | 142 | background-color: props.get(vars.$quiet--hover--image-color); |
143 | opacity: .75; | 143 | opacity: .75; |
144 | transform: translateY(props.get(vars.$hover--offset-b)); | 144 | transform: translateY(props.get(vars.$hover--offset-b)); |
@@ -149,7 +149,7 @@ | |||
149 | outline: none; | 149 | outline: none; |
150 | box-shadow: none; | 150 | box-shadow: none; |
151 | 151 | ||
152 | @include iro.bem-elem('image') { | 152 | @include bem.elem('image') { |
153 | background-color: props.get(vars.$quiet--hover--image-color); | 153 | background-color: props.get(vars.$quiet--hover--image-color); |
154 | outline: props.get(vars.$key-focus--border-color) solid props.get(vars.$key-focus--border-width); | 154 | outline: props.get(vars.$key-focus--border-color) solid props.get(vars.$key-focus--border-width); |
155 | box-shadow: | 155 | box-shadow: |
@@ -163,7 +163,7 @@ | |||
163 | } | 163 | } |
164 | } | 164 | } |
165 | 165 | ||
166 | @include iro.bem-elem('image') { | 166 | @include bem.elem('image') { |
167 | position: relative; | 167 | position: relative; |
168 | margin: calc(-1 * props.get(vars.$key-focus--border-width)); | 168 | margin: calc(-1 * props.get(vars.$key-focus--border-width)); |
169 | background-color: props.get(vars.$quiet--image-color); | 169 | background-color: props.get(vars.$quiet--image-color); |
@@ -172,24 +172,24 @@ | |||
172 | border-radius: calc(props.get(vars.$rounding) + props.get(vars.$key-focus--border-offset)); | 172 | border-radius: calc(props.get(vars.$rounding) + props.get(vars.$key-focus--border-offset)); |
173 | } | 173 | } |
174 | 174 | ||
175 | @include iro.bem-elem('body') { | 175 | @include bem.elem('body') { |
176 | padding: 0; | 176 | padding: 0; |
177 | padding-block-start: props.get(vars.$spacing); | 177 | padding-block-start: props.get(vars.$spacing); |
178 | } | 178 | } |
179 | 179 | ||
180 | @include iro.bem-elem('footer') { | 180 | @include bem.elem('footer') { |
181 | padding-inline: 0; | 181 | padding-inline: 0; |
182 | } | 182 | } |
183 | } | 183 | } |
184 | 184 | ||
185 | @include iro.bem-modifier('horizontal') { | 185 | @include bem.modifier('horizontal') { |
186 | flex-direction: row; | 186 | flex-direction: row; |
187 | align-items: center; | 187 | align-items: center; |
188 | 188 | ||
189 | @include iro.bem-elem('body') { | 189 | @include bem.elem('body') { |
190 | flex: 0 0 auto; | 190 | flex: 0 0 auto; |
191 | 191 | ||
192 | @include iro.bem-modifier('main') { | 192 | @include bem.modifier('main') { |
193 | flex-shrink: 1; | 193 | flex-shrink: 1; |
194 | inline-size: 100%; | 194 | inline-size: 100%; |
195 | min-inline-size: 0; | 195 | min-inline-size: 0; |
diff --git a/src/objects/_checkbox.scss b/src/objects/_checkbox.scss index f0c6b85..f902da7 100644 --- a/src/objects/_checkbox.scss +++ b/src/objects/_checkbox.scss | |||
@@ -1,5 +1,6 @@ | |||
1 | @use 'sass:meta'; | 1 | @use 'sass:meta'; |
2 | @use 'iro-sass/src/iro-sass' as iro; | 2 | @use 'iro-sass/src/bem' as bem; |
3 | @use 'iro-sass/src/functions' as fn; | ||
3 | @use 'iro-sass/src/props'; | 4 | @use 'iro-sass/src/props'; |
4 | @use '../props' as *; | 5 | @use '../props' as *; |
5 | @use '../core.vars' as core; | 6 | @use '../core.vars' as core; |
@@ -10,7 +11,7 @@ | |||
10 | @mixin styles { | 11 | @mixin styles { |
11 | @include materialize-at-root(meta.module-variables('vars')); | 12 | @include materialize-at-root(meta.module-variables('vars')); |
12 | 13 | ||
13 | @include iro.bem-object('checkbox') { | 14 | @include bem.object('checkbox') { |
14 | position: relative; | 15 | position: relative; |
15 | display: inline-block; | 16 | display: inline-block; |
16 | padding-block: props.get(vars.$pad-b); | 17 | padding-block: props.get(vars.$pad-b); |
@@ -19,7 +20,7 @@ | |||
19 | calc(-1 * props.get(vars.$pad-i) - props.get(vars.$key-focus--border-offset)) | 20 | calc(-1 * props.get(vars.$pad-i) - props.get(vars.$key-focus--border-offset)) |
20 | calc(props.get(vars.$spacing-sibling) - props.get(vars.$pad-b) - props.get(vars.$key-focus--border-offset)); | 21 | calc(props.get(vars.$spacing-sibling) - props.get(vars.$pad-b) - props.get(vars.$key-focus--border-offset)); |
21 | 22 | ||
22 | @include iro.bem-elem('box') { | 23 | @include bem.elem('box') { |
23 | position: relative; | 24 | position: relative; |
24 | display: inline-block; | 25 | display: inline-block; |
25 | flex: 0 0 auto; | 26 | flex: 0 0 auto; |
@@ -66,7 +67,7 @@ | |||
66 | } | 67 | } |
67 | } | 68 | } |
68 | 69 | ||
69 | @include iro.bem-elem('check-icon') { | 70 | @include bem.elem('check-icon') { |
70 | position: absolute; | 71 | position: absolute; |
71 | inset-block-start: calc(1 * props.get(vars.$border-width)); | 72 | inset-block-start: calc(1 * props.get(vars.$border-width)); |
72 | inset-inline-start: calc(1 * props.get(vars.$border-width)); | 73 | inset-inline-start: calc(1 * props.get(vars.$border-width)); |
@@ -76,17 +77,17 @@ | |||
76 | block-size: calc(100% - 2 * props.get(vars.$border-width)); | 77 | block-size: calc(100% - 2 * props.get(vars.$border-width)); |
77 | margin: 0; | 78 | margin: 0; |
78 | color: props.get(vars.$box-bg-color); | 79 | color: props.get(vars.$box-bg-color); |
79 | stroke-width: iro.fn-px-to-rem(3px); | 80 | stroke-width: fn.px-to-rem(3px); |
80 | transition: transform .2s ease; | 81 | transition: transform .2s ease; |
81 | transform: scale(0); | 82 | transform: scale(0); |
82 | transform-origin: 40% 90%; | 83 | transform-origin: 40% 90%; |
83 | } | 84 | } |
84 | 85 | ||
85 | @include iro.bem-elem('label') { | 86 | @include bem.elem('label') { |
86 | margin-inline-start: calc(props.get(vars.$label-gap) - props.get(vars.$key-focus--border-offset)); | 87 | margin-inline-start: calc(props.get(vars.$label-gap) - props.get(vars.$key-focus--border-offset)); |
87 | } | 88 | } |
88 | 89 | ||
89 | @include iro.bem-elem('native') { | 90 | @include bem.elem('native') { |
90 | position: absolute; | 91 | position: absolute; |
91 | inset-block-start: 0; | 92 | inset-block-start: 0; |
92 | inset-inline-start: 0; | 93 | inset-inline-start: 0; |
@@ -101,29 +102,29 @@ | |||
101 | 102 | ||
102 | &:hover, | 103 | &:hover, |
103 | &:focus-visible { | 104 | &:focus-visible { |
104 | @include iro.bem-sibling-elem('label') { | 105 | @include bem.sibling-elem('label') { |
105 | color: props.get(vars.$hover--label-color); | 106 | color: props.get(vars.$hover--label-color); |
106 | } | 107 | } |
107 | 108 | ||
108 | @include iro.bem-sibling-elem('box') { | 109 | @include bem.sibling-elem('box') { |
109 | background-color: props.get(vars.$hover--box-border-color); | 110 | background-color: props.get(vars.$hover--box-border-color); |
110 | } | 111 | } |
111 | } | 112 | } |
112 | 113 | ||
113 | &:checked { | 114 | &:checked { |
114 | @include iro.bem-sibling-elem('box') { | 115 | @include bem.sibling-elem('box') { |
115 | &::before { | 116 | &::before { |
116 | transform: scale(0); | 117 | transform: scale(0); |
117 | } | 118 | } |
118 | 119 | ||
119 | @include iro.bem-elem('check-icon') { | 120 | @include bem.elem('check-icon') { |
120 | transform: scale(1); | 121 | transform: scale(1); |
121 | } | 122 | } |
122 | } | 123 | } |
123 | } | 124 | } |
124 | 125 | ||
125 | &:indeterminate { | 126 | &:indeterminate { |
126 | @include iro.bem-sibling-elem('box') { | 127 | @include bem.sibling-elem('box') { |
127 | &::before { | 128 | &::before { |
128 | transform: scale(0); | 129 | transform: scale(0); |
129 | } | 130 | } |
@@ -132,18 +133,18 @@ | |||
132 | transform: scale(1); | 133 | transform: scale(1); |
133 | } | 134 | } |
134 | 135 | ||
135 | @include iro.bem-elem('check-icon') { | 136 | @include bem.elem('check-icon') { |
136 | transform: scale(0); | 137 | transform: scale(0); |
137 | } | 138 | } |
138 | } | 139 | } |
139 | } | 140 | } |
140 | 141 | ||
141 | &:disabled { | 142 | &:disabled { |
142 | @include iro.bem-sibling-elem('label') { | 143 | @include bem.sibling-elem('label') { |
143 | color: props.get(vars.$disabled--label-color); | 144 | color: props.get(vars.$disabled--label-color); |
144 | } | 145 | } |
145 | 146 | ||
146 | @include iro.bem-sibling-elem('box') { | 147 | @include bem.sibling-elem('box') { |
147 | background-color: props.get(vars.$disabled--box-border-color); | 148 | background-color: props.get(vars.$disabled--box-border-color); |
148 | 149 | ||
149 | &::before { | 150 | &::before { |
@@ -153,11 +154,11 @@ | |||
153 | } | 154 | } |
154 | 155 | ||
155 | &:focus-visible { | 156 | &:focus-visible { |
156 | @include iro.bem-sibling-elem('label') { | 157 | @include bem.sibling-elem('label') { |
157 | color: props.get(vars.$key-focus--label-color); | 158 | color: props.get(vars.$key-focus--label-color); |
158 | } | 159 | } |
159 | 160 | ||
160 | @include iro.bem-sibling-elem('box') { | 161 | @include bem.sibling-elem('box') { |
161 | outline: props.get(vars.$key-focus--border-color) solid props.get(vars.$key-focus--border-width); | 162 | outline: props.get(vars.$key-focus--border-color) solid props.get(vars.$key-focus--border-width); |
162 | box-shadow: | 163 | box-shadow: |
163 | 0 | 164 | 0 |
@@ -169,42 +170,42 @@ | |||
169 | } | 170 | } |
170 | } | 171 | } |
171 | 172 | ||
172 | @include iro.bem-modifier('standalone') { | 173 | @include bem.modifier('standalone') { |
173 | @include iro.bem-elem('box') { | 174 | @include bem.elem('box') { |
174 | margin-block-start: 0; | 175 | margin-block-start: 0; |
175 | } | 176 | } |
176 | } | 177 | } |
177 | 178 | ||
178 | @include iro.bem-modifier('accent') { | 179 | @include bem.modifier('accent') { |
179 | @include iro.bem-elem('native') { | 180 | @include bem.elem('native') { |
180 | &:checked { | 181 | &:checked { |
181 | @include iro.bem-sibling-elem('box') { | 182 | @include bem.sibling-elem('box') { |
182 | background-color: props.get(vars.$accent--box-border-color); | 183 | background-color: props.get(vars.$accent--box-border-color); |
183 | } | 184 | } |
184 | 185 | ||
185 | &:hover, | 186 | &:hover, |
186 | &:focus-visible { | 187 | &:focus-visible { |
187 | @include iro.bem-sibling-elem('box') { | 188 | @include bem.sibling-elem('box') { |
188 | background-color: props.get(vars.$accent--hover--box-border-color); | 189 | background-color: props.get(vars.$accent--hover--box-border-color); |
189 | } | 190 | } |
190 | } | 191 | } |
191 | } | 192 | } |
192 | 193 | ||
193 | &:indeterminate { | 194 | &:indeterminate { |
194 | @include iro.bem-sibling-elem('box') { | 195 | @include bem.sibling-elem('box') { |
195 | background-color: props.get(vars.$accent--box-border-color); | 196 | background-color: props.get(vars.$accent--box-border-color); |
196 | } | 197 | } |
197 | 198 | ||
198 | &:hover, | 199 | &:hover, |
199 | &:focus-visible { | 200 | &:focus-visible { |
200 | @include iro.bem-sibling-elem('box') { | 201 | @include bem.sibling-elem('box') { |
201 | background-color: props.get(vars.$accent--hover--box-border-color); | 202 | background-color: props.get(vars.$accent--hover--box-border-color); |
202 | } | 203 | } |
203 | } | 204 | } |
204 | } | 205 | } |
205 | 206 | ||
206 | &:disabled { | 207 | &:disabled { |
207 | @include iro.bem-sibling-elem('box') { | 208 | @include bem.sibling-elem('box') { |
208 | background-color: props.get(vars.$disabled--box-border-color); | 209 | background-color: props.get(vars.$disabled--box-border-color); |
209 | 210 | ||
210 | &::before { | 211 | &::before { |
@@ -213,13 +214,13 @@ | |||
213 | } | 214 | } |
214 | 215 | ||
215 | &:checked { | 216 | &:checked { |
216 | @include iro.bem-sibling-elem('box') { | 217 | @include bem.sibling-elem('box') { |
217 | background-color: props.get(vars.$disabled--box-border-color); | 218 | background-color: props.get(vars.$disabled--box-border-color); |
218 | } | 219 | } |
219 | } | 220 | } |
220 | 221 | ||
221 | &:indeterminate { | 222 | &:indeterminate { |
222 | @include iro.bem-sibling-elem('box') { | 223 | @include bem.sibling-elem('box') { |
223 | background-color: props.get(vars.$disabled--box-border-color); | 224 | background-color: props.get(vars.$disabled--box-border-color); |
224 | } | 225 | } |
225 | } | 226 | } |
diff --git a/src/objects/_divider.scss b/src/objects/_divider.scss index 49bc028..6932c7e 100644 --- a/src/objects/_divider.scss +++ b/src/objects/_divider.scss | |||
@@ -1,7 +1,7 @@ | |||
1 | @use 'sass:map'; | 1 | @use 'sass:map'; |
2 | @use 'sass:meta'; | 2 | @use 'sass:meta'; |
3 | @use 'sass:string'; | 3 | @use 'sass:string'; |
4 | @use 'iro-sass/src/iro-sass' as iro; | 4 | @use 'iro-sass/src/bem' as bem; |
5 | @use 'iro-sass/src/props'; | 5 | @use 'iro-sass/src/props'; |
6 | @use '../props' as *; | 6 | @use '../props' as *; |
7 | @use '../core.vars' as core; | 7 | @use '../core.vars' as core; |
@@ -12,7 +12,7 @@ | |||
12 | @mixin styles { | 12 | @mixin styles { |
13 | @include materialize-at-root(meta.module-variables('vars')); | 13 | @include materialize-at-root(meta.module-variables('vars')); |
14 | 14 | ||
15 | @include iro.bem-object('divider') { | 15 | @include bem.object('divider') { |
16 | display: flex; | 16 | display: flex; |
17 | flex: 0 0 auto; | 17 | flex: 0 0 auto; |
18 | flex-direction: row; | 18 | flex-direction: row; |
@@ -39,11 +39,11 @@ | |||
39 | display: block; | 39 | display: block; |
40 | } | 40 | } |
41 | 41 | ||
42 | @include iro.bem-elem('label') { | 42 | @include bem.elem('label') { |
43 | flex: 0 0 auto; | 43 | flex: 0 0 auto; |
44 | } | 44 | } |
45 | 45 | ||
46 | @include iro.bem-modifier('vertical') { | 46 | @include bem.modifier('vertical') { |
47 | align-self: stretch; | 47 | align-self: stretch; |
48 | inline-size: 1px; | 48 | inline-size: 1px; |
49 | block-size: auto; | 49 | block-size: auto; |
@@ -56,7 +56,7 @@ | |||
56 | } | 56 | } |
57 | } | 57 | } |
58 | 58 | ||
59 | @include iro.bem-modifier('medium') { | 59 | @include bem.modifier('medium') { |
60 | font-size: props.get(vars.$medium--label-font-size); | 60 | font-size: props.get(vars.$medium--label-font-size); |
61 | font-weight: 500; | 61 | font-weight: 500; |
62 | color: props.get(vars.$medium--label-color); | 62 | color: props.get(vars.$medium--label-color); |
@@ -68,7 +68,7 @@ | |||
68 | } | 68 | } |
69 | } | 69 | } |
70 | 70 | ||
71 | @include iro.bem-modifier('faint') { | 71 | @include bem.modifier('faint') { |
72 | font-size: props.get(vars.$faint--label-font-size); | 72 | font-size: props.get(vars.$faint--label-font-size); |
73 | font-weight: 500; | 73 | font-weight: 500; |
74 | color: props.get(vars.$faint--label-color); | 74 | color: props.get(vars.$faint--label-color); |
@@ -80,7 +80,7 @@ | |||
80 | } | 80 | } |
81 | } | 81 | } |
82 | 82 | ||
83 | @include iro.bem-modifier('labelled') { | 83 | @include bem.modifier('labelled') { |
84 | &::before { | 84 | &::before { |
85 | margin-inline-end: 1em; | 85 | margin-inline-end: 1em; |
86 | } | 86 | } |
@@ -92,47 +92,47 @@ | |||
92 | } | 92 | } |
93 | 93 | ||
94 | @each $theme in map.keys(props.get(vars.$themes)) { | 94 | @each $theme in map.keys(props.get(vars.$themes)) { |
95 | @include iro.bem-modifier(string.slice($theme, 3)) { | 95 | @include bem.modifier(string.slice($theme, 3)) { |
96 | &::before, | 96 | &::before, |
97 | &::after { | 97 | &::after { |
98 | background-color: props.get(vars.$themes, $theme, --bg); | 98 | background-color: props.get(vars.$themes, $theme, --bg); |
99 | } | 99 | } |
100 | 100 | ||
101 | @include iro.bem-elem('label') { | 101 | @include bem.elem('label') { |
102 | color: props.get(vars.$themes, $theme, --label); | 102 | color: props.get(vars.$themes, $theme, --label); |
103 | } | 103 | } |
104 | } | 104 | } |
105 | } | 105 | } |
106 | 106 | ||
107 | @each $theme in map.keys(props.get(vars.$static-themes)) { | 107 | @each $theme in map.keys(props.get(vars.$static-themes)) { |
108 | @include iro.bem-modifier(string.slice($theme, 3)) { | 108 | @include bem.modifier(string.slice($theme, 3)) { |
109 | &::before, | 109 | &::before, |
110 | &::after { | 110 | &::after { |
111 | background-color: props.get(vars.$static-themes, $theme, --strong, --bg); | 111 | background-color: props.get(vars.$static-themes, $theme, --strong, --bg); |
112 | } | 112 | } |
113 | 113 | ||
114 | @include iro.bem-elem('label') { | 114 | @include bem.elem('label') { |
115 | color: props.get(vars.$static-themes, $theme, --strong, --label); | 115 | color: props.get(vars.$static-themes, $theme, --strong, --label); |
116 | } | 116 | } |
117 | 117 | ||
118 | @include iro.bem-modifier('medium') { | 118 | @include bem.modifier('medium') { |
119 | &::before, | 119 | &::before, |
120 | &::after { | 120 | &::after { |
121 | background-color: props.get(vars.$static-themes, $theme, --medium, --bg); | 121 | background-color: props.get(vars.$static-themes, $theme, --medium, --bg); |
122 | } | 122 | } |
123 | 123 | ||
124 | @include iro.bem-elem('label') { | 124 | @include bem.elem('label') { |
125 | color: props.get(vars.$static-themes, $theme, --medium, --label); | 125 | color: props.get(vars.$static-themes, $theme, --medium, --label); |
126 | } | 126 | } |
127 | } | 127 | } |
128 | 128 | ||
129 | @include iro.bem-modifier('faint') { | 129 | @include bem.modifier('faint') { |
130 | &::before, | 130 | &::before, |
131 | &::after { | 131 | &::after { |
132 | background-color: props.get(vars.$static-themes, $theme, --faint, --bg); | 132 | background-color: props.get(vars.$static-themes, $theme, --faint, --bg); |
133 | } | 133 | } |
134 | 134 | ||
135 | @include iro.bem-elem('label') { | 135 | @include bem.elem('label') { |
136 | color: props.get(vars.$static-themes, $theme, --faint, --label); | 136 | color: props.get(vars.$static-themes, $theme, --faint, --label); |
137 | } | 137 | } |
138 | } | 138 | } |
diff --git a/src/objects/_emoji.scss b/src/objects/_emoji.scss index 114c867..56d4e66 100644 --- a/src/objects/_emoji.scss +++ b/src/objects/_emoji.scss | |||
@@ -1,5 +1,5 @@ | |||
1 | @use 'sass:meta'; | 1 | @use 'sass:meta'; |
2 | @use 'iro-sass/src/iro-sass' as iro; | 2 | @use 'iro-sass/src/bem' as bem; |
3 | @use 'iro-sass/src/props'; | 3 | @use 'iro-sass/src/props'; |
4 | @use '../props' as *; | 4 | @use '../props' as *; |
5 | @use 'icon.vars' as icon; | 5 | @use 'icon.vars' as icon; |
@@ -10,7 +10,7 @@ | |||
10 | @mixin styles { | 10 | @mixin styles { |
11 | @include materialize-at-root(meta.module-variables('vars')); | 11 | @include materialize-at-root(meta.module-variables('vars')); |
12 | 12 | ||
13 | @include iro.bem-object('emoji') { | 13 | @include bem.object('emoji') { |
14 | position: relative; | 14 | position: relative; |
15 | display: inline-block; | 15 | display: inline-block; |
16 | inline-size: calc(props.get(vars.$size)); | 16 | inline-size: calc(props.get(vars.$size)); |
@@ -20,24 +20,24 @@ | |||
20 | vertical-align: props.get(vars.$valign); | 20 | vertical-align: props.get(vars.$valign); |
21 | object-fit: contain; | 21 | object-fit: contain; |
22 | 22 | ||
23 | @include iro.bem-modifier('icon') { | 23 | @include bem.modifier('icon') { |
24 | margin: calc(-1 * props.get(vars.$pad) - .5 * (props.get(vars.$size) - props.get(icon.$size))); | 24 | margin: calc(-1 * props.get(vars.$pad) - .5 * (props.get(vars.$size) - props.get(icon.$size))); |
25 | vertical-align: props.get(icon.$valign); | 25 | vertical-align: props.get(icon.$valign); |
26 | } | 26 | } |
27 | 27 | ||
28 | @each $mod, $size, $valign in vars.$sizes { | 28 | @each $mod, $size, $valign in vars.$sizes { |
29 | @include iro.bem-modifier($mod) { | 29 | @include bem.modifier($mod) { |
30 | inline-size: props.get($size); | 30 | inline-size: props.get($size); |
31 | block-size: props.get($size); | 31 | block-size: props.get($size); |
32 | vertical-align: props.get($valign); | 32 | vertical-align: props.get($valign); |
33 | 33 | ||
34 | @include iro.bem-modifier('icon') { | 34 | @include bem.modifier('icon') { |
35 | margin: calc(-1 * props.get(vars.$pad) - .5 * (props.get($size) - props.get(icon.$size))); | 35 | margin: calc(-1 * props.get(vars.$pad) - .5 * (props.get($size) - props.get(icon.$size))); |
36 | } | 36 | } |
37 | } | 37 | } |
38 | } | 38 | } |
39 | 39 | ||
40 | @include iro.bem-modifier('zoomable') { | 40 | @include bem.modifier('zoomable') { |
41 | border-radius: calc(props.get(vars.$rounding) / props.get(vars.$zoom)); | 41 | border-radius: calc(props.get(vars.$rounding) / props.get(vars.$zoom)); |
42 | transition: transform .2s ease, background-color .2s ease; | 42 | transition: transform .2s ease, background-color .2s ease; |
43 | 43 | ||
diff --git a/src/objects/_field-label.scss b/src/objects/_field-label.scss index 8c275ee..9f87a20 100644 --- a/src/objects/_field-label.scss +++ b/src/objects/_field-label.scss | |||
@@ -1,5 +1,5 @@ | |||
1 | @use 'sass:meta'; | 1 | @use 'sass:meta'; |
2 | @use 'iro-sass/src/iro-sass' as iro; | 2 | @use 'iro-sass/src/bem' as bem; |
3 | @use 'iro-sass/src/props'; | 3 | @use 'iro-sass/src/props'; |
4 | @use '../props' as *; | 4 | @use '../props' as *; |
5 | 5 | ||
@@ -9,10 +9,10 @@ | |||
9 | @mixin styles { | 9 | @mixin styles { |
10 | @include materialize-at-root(meta.module-variables('vars')); | 10 | @include materialize-at-root(meta.module-variables('vars')); |
11 | 11 | ||
12 | @include iro.bem-object('field-label') { | 12 | @include bem.object('field-label') { |
13 | display: block; | 13 | display: block; |
14 | 14 | ||
15 | @include iro.bem-elem('label') { | 15 | @include bem.elem('label') { |
16 | display: block; | 16 | display: block; |
17 | flex: 0 0 auto; | 17 | flex: 0 0 auto; |
18 | padding-inline-end: props.get(vars.$spacing-i); | 18 | padding-inline-end: props.get(vars.$spacing-i); |
@@ -21,56 +21,56 @@ | |||
21 | line-height: 1.3; | 21 | line-height: 1.3; |
22 | color: props.get(vars.$label-color); | 22 | color: props.get(vars.$label-color); |
23 | 23 | ||
24 | @include iro.bem-next-elem('content') { | 24 | @include bem.next-elem('content') { |
25 | margin-block-start: props.get(vars.$spacing-b); | 25 | margin-block-start: props.get(vars.$spacing-b); |
26 | } | 26 | } |
27 | } | 27 | } |
28 | 28 | ||
29 | @include iro.bem-elem('content') { | 29 | @include bem.elem('content') { |
30 | display: block; | 30 | display: block; |
31 | flex: 1 1 auto; | 31 | flex: 1 1 auto; |
32 | } | 32 | } |
33 | 33 | ||
34 | @include iro.bem-elem('hint') { | 34 | @include bem.elem('hint') { |
35 | display: block; | 35 | display: block; |
36 | margin-block-start: props.get(vars.$spacing-b); | 36 | margin-block-start: props.get(vars.$spacing-b); |
37 | font-size: props.get(vars.$hint-font-size); | 37 | font-size: props.get(vars.$hint-font-size); |
38 | color: props.get(vars.$hint-color); | 38 | color: props.get(vars.$hint-color); |
39 | } | 39 | } |
40 | 40 | ||
41 | @include iro.bem-is('invalid') { | 41 | @include bem.is('invalid') { |
42 | @include iro.bem-elem('hint') { | 42 | @include bem.elem('hint') { |
43 | color: props.get(vars.$error-hint-color); | 43 | color: props.get(vars.$error-hint-color); |
44 | } | 44 | } |
45 | } | 45 | } |
46 | 46 | ||
47 | @include iro.bem-is('disabled') { | 47 | @include bem.is('disabled') { |
48 | @include iro.bem-elem('label', 'hint') { | 48 | @include bem.elem('label', 'hint') { |
49 | color: props.get(vars.$disabled-color); | 49 | color: props.get(vars.$disabled-color); |
50 | } | 50 | } |
51 | } | 51 | } |
52 | 52 | ||
53 | @include iro.bem-modifier('align-start', 'align-end') { | 53 | @include bem.modifier('align-start', 'align-end') { |
54 | display: flex; | 54 | display: flex; |
55 | align-items: baseline; | 55 | align-items: baseline; |
56 | 56 | ||
57 | @include iro.bem-elem('label') { | 57 | @include bem.elem('label') { |
58 | display: inline-block; | 58 | display: inline-block; |
59 | 59 | ||
60 | @include iro.bem-next-elem('content') { | 60 | @include bem.next-elem('content') { |
61 | margin-block-start: 0; | 61 | margin-block-start: 0; |
62 | } | 62 | } |
63 | } | 63 | } |
64 | } | 64 | } |
65 | 65 | ||
66 | @include iro.bem-modifier('align-start') { | 66 | @include bem.modifier('align-start') { |
67 | @include iro.bem-elem('label') { | 67 | @include bem.elem('label') { |
68 | text-align: start; | 68 | text-align: start; |
69 | } | 69 | } |
70 | } | 70 | } |
71 | 71 | ||
72 | @include iro.bem-modifier('align-end') { | 72 | @include bem.modifier('align-end') { |
73 | @include iro.bem-elem('label') { | 73 | @include bem.elem('label') { |
74 | text-align: end; | 74 | text-align: end; |
75 | } | 75 | } |
76 | } | 76 | } |
diff --git a/src/objects/_heading.scss b/src/objects/_heading.scss index 7efb23b..f3ee5b5 100644 --- a/src/objects/_heading.scss +++ b/src/objects/_heading.scss | |||
@@ -1,5 +1,5 @@ | |||
1 | @use 'sass:meta'; | 1 | @use 'sass:meta'; |
2 | @use 'iro-sass/src/iro-sass' as iro; | 2 | @use 'iro-sass/src/bem' as bem; |
3 | @use 'iro-sass/src/props'; | 3 | @use 'iro-sass/src/props'; |
4 | @use '../props' as *; | 4 | @use '../props' as *; |
5 | 5 | ||
@@ -9,7 +9,7 @@ | |||
9 | @mixin styles { | 9 | @mixin styles { |
10 | @include materialize-at-root(meta.module-variables('vars')); | 10 | @include materialize-at-root(meta.module-variables('vars')); |
11 | 11 | ||
12 | @include iro.bem-object('heading') { | 12 | @include bem.object('heading') { |
13 | display: block; | 13 | display: block; |
14 | margin-block-start: props.get(vars.$margin-bs); | 14 | margin-block-start: props.get(vars.$margin-bs); |
15 | font-family: props.get(vars.$font-family); | 15 | font-family: props.get(vars.$font-family); |
@@ -24,7 +24,7 @@ | |||
24 | margin-block-start: props.get(vars.$margin-bs-sibling); | 24 | margin-block-start: props.get(vars.$margin-bs-sibling); |
25 | } | 25 | } |
26 | 26 | ||
27 | @include iro.bem-elem('highlight') { | 27 | @include bem.elem('highlight') { |
28 | background-image: linear-gradient(to top, | 28 | background-image: linear-gradient(to top, |
29 | transparent .05em, | 29 | transparent .05em, |
30 | props.get(vars.$bg-color) .05em, | 30 | props.get(vars.$bg-color) .05em, |
@@ -33,7 +33,7 @@ | |||
33 | } | 33 | } |
34 | 34 | ||
35 | @each $mod, $font-family, $line-height, $font-size, $font-weight, $letter-spacing, $feature-settings in vars.$sizes { | 35 | @each $mod, $font-family, $line-height, $font-size, $font-weight, $letter-spacing, $feature-settings in vars.$sizes { |
36 | @include iro.bem-modifier($mod) { | 36 | @include bem.modifier($mod) { |
37 | font-family: props.get($font-family); | 37 | font-family: props.get($font-family); |
38 | font-size: props.get($font-size); | 38 | font-size: props.get($font-size); |
39 | font-weight: props.get($font-weight); | 39 | font-weight: props.get($font-weight); |
@@ -43,9 +43,9 @@ | |||
43 | } | 43 | } |
44 | } | 44 | } |
45 | 45 | ||
46 | @include iro.bem-modifier('display') { | 46 | @include bem.modifier('display') { |
47 | @each $mod, $font-family, $line-height, $font-size, $font-weight, $letter-spacing, $feature-settings in vars.$display--sizes { | 47 | @each $mod, $font-family, $line-height, $font-size, $font-weight, $letter-spacing, $feature-settings in vars.$display--sizes { |
48 | @include iro.bem-modifier($mod) { | 48 | @include bem.modifier($mod) { |
49 | font-family: props.get($font-family); | 49 | font-family: props.get($font-family); |
50 | font-size: props.get($font-size); | 50 | font-size: props.get($font-size); |
51 | font-weight: props.get($font-weight); | 51 | font-weight: props.get($font-weight); |
diff --git a/src/objects/_icon.scss b/src/objects/_icon.scss index f80915e..1e35830 100644 --- a/src/objects/_icon.scss +++ b/src/objects/_icon.scss | |||
@@ -1,5 +1,5 @@ | |||
1 | @use 'sass:meta'; | 1 | @use 'sass:meta'; |
2 | @use 'iro-sass/src/iro-sass' as iro; | 2 | @use 'iro-sass/src/bem' as bem; |
3 | @use 'iro-sass/src/props'; | 3 | @use 'iro-sass/src/props'; |
4 | @use '../props' as *; | 4 | @use '../props' as *; |
5 | 5 | ||
@@ -9,7 +9,7 @@ | |||
9 | @mixin styles { | 9 | @mixin styles { |
10 | @include materialize-at-root(meta.module-variables('vars')); | 10 | @include materialize-at-root(meta.module-variables('vars')); |
11 | 11 | ||
12 | @include iro.bem-object('icon') { | 12 | @include bem.object('icon') { |
13 | display: inline; | 13 | display: inline; |
14 | inline-size: props.get(vars.$size); | 14 | inline-size: props.get(vars.$size); |
15 | block-size: props.get(vars.$size); | 15 | block-size: props.get(vars.$size); |
@@ -18,7 +18,7 @@ | |||
18 | stroke-linejoin: round; | 18 | stroke-linejoin: round; |
19 | stroke-width: props.get(vars.$stroke-width); | 19 | stroke-width: props.get(vars.$stroke-width); |
20 | 20 | ||
21 | @include iro.bem-modifier('block') { | 21 | @include bem.modifier('block') { |
22 | display: block; | 22 | display: block; |
23 | } | 23 | } |
24 | } | 24 | } |
diff --git a/src/objects/_lightbox.scss b/src/objects/_lightbox.scss index 0ced4c6..341ed3d 100644 --- a/src/objects/_lightbox.scss +++ b/src/objects/_lightbox.scss | |||
@@ -1,7 +1,7 @@ | |||
1 | @use 'sass:map'; | 1 | @use 'sass:map'; |
2 | @use 'sass:meta'; | 2 | @use 'sass:meta'; |
3 | @use 'sass:string'; | 3 | @use 'sass:string'; |
4 | @use 'iro-sass/src/iro-sass' as iro; | 4 | @use 'iro-sass/src/bem' as bem; |
5 | @use 'iro-sass/src/props'; | 5 | @use 'iro-sass/src/props'; |
6 | @use '../props' as *; | 6 | @use '../props' as *; |
7 | 7 | ||
@@ -11,7 +11,7 @@ | |||
11 | @mixin styles { | 11 | @mixin styles { |
12 | @include materialize-at-root(meta.module-variables('vars')); | 12 | @include materialize-at-root(meta.module-variables('vars')); |
13 | 13 | ||
14 | @include iro.bem-object('lightbox') { | 14 | @include bem.object('lightbox') { |
15 | box-sizing: border-box; | 15 | box-sizing: border-box; |
16 | display: grid; | 16 | display: grid; |
17 | flex: 1 1 auto; | 17 | flex: 1 1 auto; |
@@ -24,7 +24,7 @@ | |||
24 | grid-template-columns: auto minmax(0, 1fr) auto; | 24 | grid-template-columns: auto minmax(0, 1fr) auto; |
25 | min-block-size: 0; | 25 | min-block-size: 0; |
26 | 26 | ||
27 | @include iro.bem-elem('header') { | 27 | @include bem.elem('header') { |
28 | display: flex; | 28 | display: flex; |
29 | grid-area: header; | 29 | grid-area: header; |
30 | align-items: flex-start; | 30 | align-items: flex-start; |
@@ -32,7 +32,7 @@ | |||
32 | padding-inline: props.get(vars.$pad); | 32 | padding-inline: props.get(vars.$pad); |
33 | } | 33 | } |
34 | 34 | ||
35 | @include iro.bem-elem('img') { | 35 | @include bem.elem('img') { |
36 | box-sizing: border-box; | 36 | box-sizing: border-box; |
37 | display: none; | 37 | display: none; |
38 | grid-area: content; | 38 | grid-area: content; |
@@ -41,39 +41,39 @@ | |||
41 | max-block-size: 100%; | 41 | max-block-size: 100%; |
42 | padding: props.get(vars.$pad); | 42 | padding: props.get(vars.$pad); |
43 | 43 | ||
44 | @include iro.bem-sibling-elem('img') { | 44 | @include bem.sibling-elem('img') { |
45 | @include iro.bem-modifier('default') { | 45 | @include bem.modifier('default') { |
46 | display: block; | 46 | display: block; |
47 | 47 | ||
48 | @include iro.bem-next-elem('nav-btn') { | 48 | @include bem.next-elem('nav-btn') { |
49 | display: block; | 49 | display: block; |
50 | 50 | ||
51 | @include iro.bem-next-elem('nav-btn') { | 51 | @include bem.next-elem('nav-btn') { |
52 | display: block; | 52 | display: block; |
53 | } | 53 | } |
54 | } | 54 | } |
55 | } | 55 | } |
56 | } | 56 | } |
57 | 57 | ||
58 | @include iro.bem-multi('&:target', 'is' 'visible') { | 58 | @include bem.multi('&:target', 'is' 'visible') { |
59 | display: block; | 59 | display: block; |
60 | 60 | ||
61 | @include iro.bem-next-elem('nav-btn') { | 61 | @include bem.next-elem('nav-btn') { |
62 | display: block; | 62 | display: block; |
63 | 63 | ||
64 | @include iro.bem-next-elem('nav-btn') { | 64 | @include bem.next-elem('nav-btn') { |
65 | display: block; | 65 | display: block; |
66 | } | 66 | } |
67 | } | 67 | } |
68 | 68 | ||
69 | @include iro.bem-sibling-elem('img') { | 69 | @include bem.sibling-elem('img') { |
70 | @include iro.bem-modifier('default') { | 70 | @include bem.modifier('default') { |
71 | display: none; | 71 | display: none; |
72 | 72 | ||
73 | @include iro.bem-next-elem('nav-btn') { | 73 | @include bem.next-elem('nav-btn') { |
74 | display: none; | 74 | display: none; |
75 | 75 | ||
76 | @include iro.bem-next-elem('nav-btn') { | 76 | @include bem.next-elem('nav-btn') { |
77 | display: none; | 77 | display: none; |
78 | } | 78 | } |
79 | } | 79 | } |
@@ -82,7 +82,7 @@ | |||
82 | } | 82 | } |
83 | } | 83 | } |
84 | 84 | ||
85 | @include iro.bem-elem('thumbnails') { | 85 | @include bem.elem('thumbnails') { |
86 | display: flex; | 86 | display: flex; |
87 | grid-area: thumbnails; | 87 | grid-area: thumbnails; |
88 | gap: props.get(vars.$thumbnail--spacing); | 88 | gap: props.get(vars.$thumbnail--spacing); |
@@ -91,7 +91,7 @@ | |||
91 | overflow: auto; | 91 | overflow: auto; |
92 | } | 92 | } |
93 | 93 | ||
94 | @include iro.bem-elem('footer') { | 94 | @include bem.elem('footer') { |
95 | display: flex; | 95 | display: flex; |
96 | grid-area: footer; | 96 | grid-area: footer; |
97 | align-items: flex-start; | 97 | align-items: flex-start; |
@@ -99,7 +99,7 @@ | |||
99 | padding-inline: props.get(vars.$pad); | 99 | padding-inline: props.get(vars.$pad); |
100 | } | 100 | } |
101 | 101 | ||
102 | @include iro.bem-elem('thumbnail') { | 102 | @include bem.elem('thumbnail') { |
103 | position: relative; | 103 | position: relative; |
104 | flex: 0 0 auto; | 104 | flex: 0 0 auto; |
105 | inline-size: props.get(vars.$thumbnail--size); | 105 | inline-size: props.get(vars.$thumbnail--size); |
@@ -117,7 +117,7 @@ | |||
117 | opacity: 1; | 117 | opacity: 1; |
118 | } | 118 | } |
119 | 119 | ||
120 | @include iro.bem-is('selected') { | 120 | @include bem.is('selected') { |
121 | $focus-border-offset: calc(-1 * props.get(vars.$thumbnail--selected--border-width)); | 121 | $focus-border-offset: calc(-1 * props.get(vars.$thumbnail--selected--border-width)); |
122 | 122 | ||
123 | margin: $focus-border-offset; | 123 | margin: $focus-border-offset; |
@@ -144,7 +144,7 @@ | |||
144 | } | 144 | } |
145 | } | 145 | } |
146 | 146 | ||
147 | @include iro.bem-elem('thumbnail-img') { | 147 | @include bem.elem('thumbnail-img') { |
148 | position: absolute; | 148 | position: absolute; |
149 | inset-block-start: 0; | 149 | inset-block-start: 0; |
150 | inset-inline-start: 0; | 150 | inset-inline-start: 0; |
@@ -155,21 +155,21 @@ | |||
155 | object-position: center center; | 155 | object-position: center center; |
156 | } | 156 | } |
157 | 157 | ||
158 | @include iro.bem-elem('thumbnail-icon') { | 158 | @include bem.elem('thumbnail-icon') { |
159 | position: absolute; | 159 | position: absolute; |
160 | inset-block-start: 50%; | 160 | inset-block-start: 50%; |
161 | inset-inline-start: 50%; | 161 | inset-inline-start: 50%; |
162 | transform: translate(-50%, -50%); | 162 | transform: translate(-50%, -50%); |
163 | } | 163 | } |
164 | 164 | ||
165 | @include iro.bem-elem('close-btn') { | 165 | @include bem.elem('close-btn') { |
166 | flex: 0 0 auto; | 166 | flex: 0 0 auto; |
167 | margin-block-start: calc(-.5 * props.get(vars.$pad)); | 167 | margin-block-start: calc(-.5 * props.get(vars.$pad)); |
168 | margin-inline: auto calc(-.5 * props.get(vars.$pad)); | 168 | margin-inline: auto calc(-.5 * props.get(vars.$pad)); |
169 | font-size: props.get(vars.$close-button--font-size); | 169 | font-size: props.get(vars.$close-button--font-size); |
170 | } | 170 | } |
171 | 171 | ||
172 | @include iro.bem-elem('nav-btn') { | 172 | @include bem.elem('nav-btn') { |
173 | position: relative; | 173 | position: relative; |
174 | display: none; | 174 | display: none; |
175 | align-self: center; | 175 | align-self: center; |
@@ -186,7 +186,7 @@ | |||
186 | transform: translateY(-50%); | 186 | transform: translateY(-50%); |
187 | } | 187 | } |
188 | 188 | ||
189 | @include iro.bem-modifier('prev') { | 189 | @include bem.modifier('prev') { |
190 | grid-area: prev; | 190 | grid-area: prev; |
191 | margin-inline: calc(.5 * props.get(vars.$pad)) calc(-1 * props.get(vars.$pad)); | 191 | margin-inline: calc(.5 * props.get(vars.$pad)) calc(-1 * props.get(vars.$pad)); |
192 | 192 | ||
@@ -195,7 +195,7 @@ | |||
195 | } | 195 | } |
196 | } | 196 | } |
197 | 197 | ||
198 | @include iro.bem-modifier('next') { | 198 | @include bem.modifier('next') { |
199 | grid-area: next; | 199 | grid-area: next; |
200 | margin-inline: calc(-1 * props.get(vars.$pad)) calc(.5 * props.get(vars.$pad)); | 200 | margin-inline: calc(-1 * props.get(vars.$pad)) calc(.5 * props.get(vars.$pad)); |
201 | 201 | ||
@@ -206,10 +206,10 @@ | |||
206 | } | 206 | } |
207 | 207 | ||
208 | @each $theme in map.keys(props.get(vars.$static-themes)) { | 208 | @each $theme in map.keys(props.get(vars.$static-themes)) { |
209 | @include iro.bem-modifier(string.slice($theme, 3)) { | 209 | @include bem.modifier(string.slice($theme, 3)) { |
210 | color: props.get(vars.$static-themes, $theme, --text); | 210 | color: props.get(vars.$static-themes, $theme, --text); |
211 | 211 | ||
212 | @include iro.bem-elem('thumbnail') { | 212 | @include bem.elem('thumbnail') { |
213 | outline-color: props.get(vars.$static-themes, $theme, --thumbnail, --border); | 213 | outline-color: props.get(vars.$static-themes, $theme, --thumbnail, --border); |
214 | 214 | ||
215 | &:hover, | 215 | &:hover, |
@@ -218,7 +218,7 @@ | |||
218 | outline-color: props.get(vars.$static-themes, $theme, --thumbnail, --hover, --border); | 218 | outline-color: props.get(vars.$static-themes, $theme, --thumbnail, --hover, --border); |
219 | } | 219 | } |
220 | 220 | ||
221 | @include iro.bem-is('selected') { | 221 | @include bem.is('selected') { |
222 | border-color: props.get(vars.$static-themes, $theme, --thumbnail, --selected, --border); | 222 | border-color: props.get(vars.$static-themes, $theme, --thumbnail, --selected, --border); |
223 | } | 223 | } |
224 | 224 | ||
diff --git a/src/objects/_menu.scss b/src/objects/_menu.scss index 0741929..46ca109 100644 --- a/src/objects/_menu.scss +++ b/src/objects/_menu.scss | |||
@@ -1,5 +1,5 @@ | |||
1 | @use 'sass:meta'; | 1 | @use 'sass:meta'; |
2 | @use 'iro-sass/src/iro-sass' as iro; | 2 | @use 'iro-sass/src/bem' as bem; |
3 | @use 'iro-sass/src/props'; | 3 | @use 'iro-sass/src/props'; |
4 | @use '../props' as *; | 4 | @use '../props' as *; |
5 | @use 'icon.vars' as icon; | 5 | @use 'icon.vars' as icon; |
@@ -10,12 +10,12 @@ | |||
10 | @mixin styles { | 10 | @mixin styles { |
11 | @include materialize-at-root(meta.module-variables('vars')); | 11 | @include materialize-at-root(meta.module-variables('vars')); |
12 | 12 | ||
13 | @include iro.bem-object('menu') { | 13 | @include bem.object('menu') { |
14 | display: flex; | 14 | display: flex; |
15 | flex-direction: column; | 15 | flex-direction: column; |
16 | gap: props.get(vars.$spacing); | 16 | gap: props.get(vars.$spacing); |
17 | 17 | ||
18 | @include iro.bem-elem('header') { | 18 | @include bem.elem('header') { |
19 | padding-block: props.get(vars.$item--pad-b); | 19 | padding-block: props.get(vars.$item--pad-b); |
20 | padding-inline: props.get(vars.$item--pad-i); | 20 | padding-inline: props.get(vars.$item--pad-i); |
21 | font-size: props.get(vars.$header--font-size); | 21 | font-size: props.get(vars.$header--font-size); |
@@ -24,12 +24,12 @@ | |||
24 | text-transform: uppercase; | 24 | text-transform: uppercase; |
25 | letter-spacing: .5px; | 25 | letter-spacing: .5px; |
26 | 26 | ||
27 | @include iro.bem-next-twin-elem { | 27 | @include bem.next-twin-elem { |
28 | margin-block-start: calc(props.get(vars.$separator-width) + props.get(vars.$spacing)); | 28 | margin-block-start: calc(props.get(vars.$separator-width) + props.get(vars.$spacing)); |
29 | } | 29 | } |
30 | } | 30 | } |
31 | 31 | ||
32 | @include iro.bem-elem('item') { | 32 | @include bem.elem('item') { |
33 | padding-block: props.get(vars.$item--pad-b); | 33 | padding-block: props.get(vars.$item--pad-b); |
34 | padding-inline: props.get(vars.$item--pad-i); | 34 | padding-inline: props.get(vars.$item--pad-i); |
35 | margin: calc(-1 * props.get(vars.$item--key-focus--outline-width)); | 35 | margin: calc(-1 * props.get(vars.$item--key-focus--outline-width)); |
@@ -43,7 +43,7 @@ | |||
43 | &:enabled { | 43 | &:enabled { |
44 | color: currentColor; | 44 | color: currentColor; |
45 | 45 | ||
46 | @include iro.bem-multi('&:hover, &:focus-visible', 'is' 'selected') { | 46 | @include bem.multi('&:hover, &:focus-visible', 'is' 'selected') { |
47 | color: props.get(vars.$item--hover--label-color); | 47 | color: props.get(vars.$item--hover--label-color); |
48 | background-color: props.get(vars.$item--hover--bg-color); | 48 | background-color: props.get(vars.$item--hover--bg-color); |
49 | } | 49 | } |
@@ -64,12 +64,12 @@ | |||
64 | } | 64 | } |
65 | } | 65 | } |
66 | 66 | ||
67 | @include iro.bem-next-elem('header') { | 67 | @include bem.next-elem('header') { |
68 | margin-block-start: calc(props.get(vars.$separator-width) + props.get(vars.$spacing)); | 68 | margin-block-start: calc(props.get(vars.$separator-width) + props.get(vars.$spacing)); |
69 | } | 69 | } |
70 | } | 70 | } |
71 | 71 | ||
72 | @include iro.bem-elem('header') { | 72 | @include bem.elem('header') { |
73 | &:link, | 73 | &:link, |
74 | &:visited, | 74 | &:visited, |
75 | &:enabled { | 75 | &:enabled { |
@@ -77,25 +77,25 @@ | |||
77 | } | 77 | } |
78 | } | 78 | } |
79 | 79 | ||
80 | @include iro.bem-elem('separator') { | 80 | @include bem.elem('separator') { |
81 | block-size: 1px; | 81 | block-size: 1px; |
82 | margin-block: props.get(vars.$separator-width); | 82 | margin-block: props.get(vars.$separator-width); |
83 | margin-inline: props.get(vars.$item--pad-i); | 83 | margin-inline: props.get(vars.$item--pad-i); |
84 | background-color: props.get(vars.$separator-color); | 84 | background-color: props.get(vars.$separator-color); |
85 | } | 85 | } |
86 | 86 | ||
87 | @include iro.bem-elem('slot') { | 87 | @include bem.elem('slot') { |
88 | padding-block: props.get(vars.$item--pad-b); | 88 | padding-block: props.get(vars.$item--pad-b); |
89 | padding-inline: props.get(vars.$item--pad-i); | 89 | padding-inline: props.get(vars.$item--pad-i); |
90 | } | 90 | } |
91 | 91 | ||
92 | @include iro.bem-elem('icon-slot') { | 92 | @include bem.elem('icon-slot') { |
93 | display: flex; | 93 | display: flex; |
94 | justify-content: center; | 94 | justify-content: center; |
95 | inline-size: props.get(icon.$size); | 95 | inline-size: props.get(icon.$size); |
96 | } | 96 | } |
97 | 97 | ||
98 | @include iro.bem-modifier('pull') { | 98 | @include bem.modifier('pull') { |
99 | margin: calc(-1 * props.get(vars.$item--pad-i)); | 99 | margin: calc(-1 * props.get(vars.$item--pad-i)); |
100 | } | 100 | } |
101 | } | 101 | } |
diff --git a/src/objects/_palette.scss b/src/objects/_palette.scss index 88ce9b5..243810f 100644 --- a/src/objects/_palette.scss +++ b/src/objects/_palette.scss | |||
@@ -1,17 +1,17 @@ | |||
1 | @use 'sass:list'; | 1 | @use 'sass:list'; |
2 | @use 'sass:map'; | 2 | @use 'sass:map'; |
3 | @use 'sass:string'; | 3 | @use 'sass:string'; |
4 | @use 'iro-sass/src/iro-sass' as iro; | 4 | @use 'iro-sass/src/bem' as bem; |
5 | @use '../config'; | 5 | @use '../config'; |
6 | @use 'iro-sass/src/props'; | 6 | @use 'iro-sass/src/props'; |
7 | @use '../core.vars' as core; | 7 | @use '../core.vars' as core; |
8 | 8 | ||
9 | @mixin styles { | 9 | @mixin styles { |
10 | @include iro.bem-object('palette') { | 10 | @include bem.object('palette') { |
11 | display: flex; | 11 | display: flex; |
12 | block-size: 3em; | 12 | block-size: 3em; |
13 | 13 | ||
14 | @include iro.bem-elem('item') { | 14 | @include bem.elem('item') { |
15 | flex: 1 1 auto; | 15 | flex: 1 1 auto; |
16 | 16 | ||
17 | $palette: map.get(config.$themes, config.$theme-default, light, --palettes, --base); | 17 | $palette: map.get(config.$themes, config.$theme-default, light, --palettes, --base); |
@@ -29,8 +29,8 @@ | |||
29 | @each $palette-name, $palette in map.get(config.$themes, config.$theme-default, light, --palettes) { | 29 | @each $palette-name, $palette in map.get(config.$themes, config.$theme-default, light, --palettes) { |
30 | $contrasts: map.get(config.$themes, config.$theme-default, light, --contrasts, list.nth($palette, 2)); | 30 | $contrasts: map.get(config.$themes, config.$theme-default, light, --contrasts, list.nth($palette, 2)); |
31 | 31 | ||
32 | @include iro.bem-modifier(string.slice($palette-name, 3)) { | 32 | @include bem.modifier(string.slice($palette-name, 3)) { |
33 | @include iro.bem-elem('item') { | 33 | @include bem.elem('item') { |
34 | @for $i from 1 through list.length($contrasts) { | 34 | @for $i from 1 through list.length($contrasts) { |
35 | $key: list.nth(map.keys($contrasts), $i); | 35 | $key: list.nth(map.keys($contrasts), $i); |
36 | 36 | ||
@@ -42,12 +42,12 @@ | |||
42 | } | 42 | } |
43 | } | 43 | } |
44 | 44 | ||
45 | @include iro.bem-modifier('static') { | 45 | @include bem.modifier('static') { |
46 | @each $palette-name, $palette in map.get(config.$static-colors, --palettes) { | 46 | @each $palette-name, $palette in map.get(config.$static-colors, --palettes) { |
47 | $contrasts: map.get(config.$static-colors, --contrasts); | 47 | $contrasts: map.get(config.$static-colors, --contrasts); |
48 | 48 | ||
49 | @include iro.bem-modifier(string.slice($palette-name, 3)) { | 49 | @include bem.modifier(string.slice($palette-name, 3)) { |
50 | @include iro.bem-elem('item') { | 50 | @include bem.elem('item') { |
51 | @for $i from 1 through list.length($contrasts) { | 51 | @for $i from 1 through list.length($contrasts) { |
52 | $key: list.nth(map.keys($contrasts), $i); | 52 | $key: list.nth(map.keys($contrasts), $i); |
53 | 53 | ||
diff --git a/src/objects/_popover.scss b/src/objects/_popover.scss index 406c143..ae874ba 100644 --- a/src/objects/_popover.scss +++ b/src/objects/_popover.scss | |||
@@ -1,5 +1,5 @@ | |||
1 | @use 'sass:meta'; | 1 | @use 'sass:meta'; |
2 | @use 'iro-sass/src/iro-sass' as iro; | 2 | @use 'iro-sass/src/bem' as bem; |
3 | @use 'iro-sass/src/props'; | 3 | @use 'iro-sass/src/props'; |
4 | @use '../props' as *; | 4 | @use '../props' as *; |
5 | 5 | ||
@@ -9,7 +9,7 @@ | |||
9 | @mixin styles { | 9 | @mixin styles { |
10 | @include materialize-at-root(meta.module-variables('vars')); | 10 | @include materialize-at-root(meta.module-variables('vars')); |
11 | 11 | ||
12 | @include iro.bem-object('popover') { | 12 | @include bem.object('popover') { |
13 | position: absolute; | 13 | position: absolute; |
14 | inset-block-start: 0; | 14 | inset-block-start: 0; |
15 | inset-inline-start: 0; | 15 | inset-inline-start: 0; |
@@ -22,15 +22,15 @@ | |||
22 | border-radius: props.get(vars.$rounding); | 22 | border-radius: props.get(vars.$rounding); |
23 | transform: translate(var(--x), var(--y)); | 23 | transform: translate(var(--x), var(--y)); |
24 | 24 | ||
25 | @include iro.bem-modifier('up-left') { | 25 | @include bem.modifier('up-left') { |
26 | transform: translate(var(--x), calc(var(--y) - 100%)); | 26 | transform: translate(var(--x), calc(var(--y) - 100%)); |
27 | } | 27 | } |
28 | 28 | ||
29 | @include iro.bem-modifier('up-right') { | 29 | @include bem.modifier('up-right') { |
30 | transform: translate(calc(var(--x) - 100%), calc(var(--y) - 100%)); | 30 | transform: translate(calc(var(--x) - 100%), calc(var(--y) - 100%)); |
31 | } | 31 | } |
32 | 32 | ||
33 | @include iro.bem-modifier('down-right') { | 33 | @include bem.modifier('down-right') { |
34 | transform: translate(calc(var(--x) - 100%), var(--y)); | 34 | transform: translate(calc(var(--x) - 100%), var(--y)); |
35 | } | 35 | } |
36 | } | 36 | } |
diff --git a/src/objects/_radio.scss b/src/objects/_radio.scss index c6e5a60..b603a0d 100644 --- a/src/objects/_radio.scss +++ b/src/objects/_radio.scss | |||
@@ -1,5 +1,5 @@ | |||
1 | @use 'sass:meta'; | 1 | @use 'sass:meta'; |
2 | @use 'iro-sass/src/iro-sass' as iro; | 2 | @use 'iro-sass/src/bem' as bem; |
3 | @use 'iro-sass/src/props'; | 3 | @use 'iro-sass/src/props'; |
4 | @use '../props' as *; | 4 | @use '../props' as *; |
5 | @use '../core.vars' as core; | 5 | @use '../core.vars' as core; |
@@ -10,7 +10,7 @@ | |||
10 | @mixin styles { | 10 | @mixin styles { |
11 | @include materialize-at-root(meta.module-variables('vars')); | 11 | @include materialize-at-root(meta.module-variables('vars')); |
12 | 12 | ||
13 | @include iro.bem-object('radio') { | 13 | @include bem.object('radio') { |
14 | position: relative; | 14 | position: relative; |
15 | display: inline-block; | 15 | display: inline-block; |
16 | padding-block: props.get(vars.$pad-b); | 16 | padding-block: props.get(vars.$pad-b); |
@@ -19,7 +19,7 @@ | |||
19 | calc(-1 * props.get(vars.$pad-i) - props.get(vars.$key-focus--border-offset)) | 19 | calc(-1 * props.get(vars.$pad-i) - props.get(vars.$key-focus--border-offset)) |
20 | calc(props.get(vars.$spacing-sibling) - props.get(vars.$pad-i) - props.get(vars.$key-focus--border-offset)); | 20 | calc(props.get(vars.$spacing-sibling) - props.get(vars.$pad-i) - props.get(vars.$key-focus--border-offset)); |
21 | 21 | ||
22 | @include iro.bem-elem('circle') { | 22 | @include bem.elem('circle') { |
23 | display: inline-block; | 23 | display: inline-block; |
24 | flex: 0 0 auto; | 24 | flex: 0 0 auto; |
25 | inline-size: props.get(vars.$diameter); | 25 | inline-size: props.get(vars.$diameter); |
@@ -45,11 +45,11 @@ | |||
45 | } | 45 | } |
46 | } | 46 | } |
47 | 47 | ||
48 | @include iro.bem-elem('label') { | 48 | @include bem.elem('label') { |
49 | margin-inline-start: calc(props.get(vars.$label-gap) - props.get(vars.$key-focus--border-offset)); | 49 | margin-inline-start: calc(props.get(vars.$label-gap) - props.get(vars.$key-focus--border-offset)); |
50 | } | 50 | } |
51 | 51 | ||
52 | @include iro.bem-elem('native') { | 52 | @include bem.elem('native') { |
53 | position: absolute; | 53 | position: absolute; |
54 | inset-block-start: 0; | 54 | inset-block-start: 0; |
55 | inset-inline-start: 0; | 55 | inset-inline-start: 0; |
@@ -64,17 +64,17 @@ | |||
64 | 64 | ||
65 | &:hover, | 65 | &:hover, |
66 | &:focus-visible { | 66 | &:focus-visible { |
67 | @include iro.bem-sibling-elem('label') { | 67 | @include bem.sibling-elem('label') { |
68 | color: props.get(vars.$hover--label-color); | 68 | color: props.get(vars.$hover--label-color); |
69 | } | 69 | } |
70 | 70 | ||
71 | @include iro.bem-sibling-elem('circle') { | 71 | @include bem.sibling-elem('circle') { |
72 | background-color: props.get(vars.$hover--circle-border-color); | 72 | background-color: props.get(vars.$hover--circle-border-color); |
73 | } | 73 | } |
74 | } | 74 | } |
75 | 75 | ||
76 | &:checked { | 76 | &:checked { |
77 | @include iro.bem-sibling-elem('circle') { | 77 | @include bem.sibling-elem('circle') { |
78 | &::after { | 78 | &::after { |
79 | transform: scale(.44); | 79 | transform: scale(.44); |
80 | } | 80 | } |
@@ -82,11 +82,11 @@ | |||
82 | } | 82 | } |
83 | 83 | ||
84 | &:disabled { | 84 | &:disabled { |
85 | @include iro.bem-sibling-elem('label') { | 85 | @include bem.sibling-elem('label') { |
86 | color: props.get(vars.$disabled--label-color); | 86 | color: props.get(vars.$disabled--label-color); |
87 | } | 87 | } |
88 | 88 | ||
89 | @include iro.bem-sibling-elem('circle') { | 89 | @include bem.sibling-elem('circle') { |
90 | background-color: props.get(vars.$disabled--circle-border-color); | 90 | background-color: props.get(vars.$disabled--circle-border-color); |
91 | 91 | ||
92 | &::after { | 92 | &::after { |
@@ -96,11 +96,11 @@ | |||
96 | } | 96 | } |
97 | 97 | ||
98 | &:focus-visible { | 98 | &:focus-visible { |
99 | @include iro.bem-sibling-elem('label') { | 99 | @include bem.sibling-elem('label') { |
100 | color: props.get(vars.$key-focus--label-color); | 100 | color: props.get(vars.$key-focus--label-color); |
101 | } | 101 | } |
102 | 102 | ||
103 | @include iro.bem-sibling-elem('circle') { | 103 | @include bem.sibling-elem('circle') { |
104 | outline: props.get(vars.$key-focus--border-color) solid props.get(vars.$key-focus--border-width); | 104 | outline: props.get(vars.$key-focus--border-color) solid props.get(vars.$key-focus--border-width); |
105 | box-shadow: | 105 | box-shadow: |
106 | 0 | 106 | 0 |
@@ -112,29 +112,29 @@ | |||
112 | } | 112 | } |
113 | } | 113 | } |
114 | 114 | ||
115 | @include iro.bem-modifier('standalone') { | 115 | @include bem.modifier('standalone') { |
116 | @include iro.bem-elem('circle') { | 116 | @include bem.elem('circle') { |
117 | margin-block-start: 0; | 117 | margin-block-start: 0; |
118 | } | 118 | } |
119 | } | 119 | } |
120 | 120 | ||
121 | @include iro.bem-modifier('accent') { | 121 | @include bem.modifier('accent') { |
122 | @include iro.bem-elem('native') { | 122 | @include bem.elem('native') { |
123 | &:checked { | 123 | &:checked { |
124 | @include iro.bem-sibling-elem('circle') { | 124 | @include bem.sibling-elem('circle') { |
125 | background-color: props.get(vars.$accent--circle-border-color); | 125 | background-color: props.get(vars.$accent--circle-border-color); |
126 | } | 126 | } |
127 | 127 | ||
128 | &:hover, | 128 | &:hover, |
129 | &:focus-visible { | 129 | &:focus-visible { |
130 | @include iro.bem-sibling-elem('circle') { | 130 | @include bem.sibling-elem('circle') { |
131 | background-color: props.get(vars.$accent--hover--circle-border-color); | 131 | background-color: props.get(vars.$accent--hover--circle-border-color); |
132 | } | 132 | } |
133 | } | 133 | } |
134 | } | 134 | } |
135 | 135 | ||
136 | &:disabled { | 136 | &:disabled { |
137 | @include iro.bem-sibling-elem('circle') { | 137 | @include bem.sibling-elem('circle') { |
138 | background-color: props.get(vars.$disabled--circle-border-color); | 138 | background-color: props.get(vars.$disabled--circle-border-color); |
139 | 139 | ||
140 | &::after { | 140 | &::after { |
@@ -143,7 +143,7 @@ | |||
143 | } | 143 | } |
144 | 144 | ||
145 | &:checked { | 145 | &:checked { |
146 | @include iro.bem-sibling-elem('circle') { | 146 | @include bem.sibling-elem('circle') { |
147 | background-color: props.get(vars.$disabled--circle-border-color); | 147 | background-color: props.get(vars.$disabled--circle-border-color); |
148 | } | 148 | } |
149 | } | 149 | } |
diff --git a/src/objects/_side-nav.scss b/src/objects/_side-nav.scss index c1e984f..9488bec 100644 --- a/src/objects/_side-nav.scss +++ b/src/objects/_side-nav.scss | |||
@@ -1,5 +1,5 @@ | |||
1 | @use 'sass:meta'; | 1 | @use 'sass:meta'; |
2 | @use 'iro-sass/src/iro-sass' as iro; | 2 | @use 'iro-sass/src/bem' as bem; |
3 | @use 'iro-sass/src/props'; | 3 | @use 'iro-sass/src/props'; |
4 | @use '../props' as *; | 4 | @use '../props' as *; |
5 | @use 'icon.vars' as icon; | 5 | @use 'icon.vars' as icon; |
@@ -10,12 +10,12 @@ | |||
10 | @mixin styles { | 10 | @mixin styles { |
11 | @include materialize-at-root(meta.module-variables('vars')); | 11 | @include materialize-at-root(meta.module-variables('vars')); |
12 | 12 | ||
13 | @include iro.bem-object('side-nav') { | 13 | @include bem.object('side-nav') { |
14 | display: flex; | 14 | display: flex; |
15 | flex-direction: column; | 15 | flex-direction: column; |
16 | gap: props.get(vars.$spacing); | 16 | gap: props.get(vars.$spacing); |
17 | 17 | ||
18 | @include iro.bem-elem('header') { | 18 | @include bem.elem('header') { |
19 | padding-block: props.get(vars.$item--pad-b); | 19 | padding-block: props.get(vars.$item--pad-b); |
20 | padding-inline: props.get(vars.$item--pad-i); | 20 | padding-inline: props.get(vars.$item--pad-i); |
21 | font-size: props.get(vars.$header--font-size); | 21 | font-size: props.get(vars.$header--font-size); |
@@ -24,12 +24,12 @@ | |||
24 | text-transform: uppercase; | 24 | text-transform: uppercase; |
25 | letter-spacing: .5px; | 25 | letter-spacing: .5px; |
26 | 26 | ||
27 | @include iro.bem-next-twin-elem { | 27 | @include bem.next-twin-elem { |
28 | margin-block-start: calc(props.get(vars.$separator) + props.get(vars.$spacing)); | 28 | margin-block-start: calc(props.get(vars.$separator) + props.get(vars.$spacing)); |
29 | } | 29 | } |
30 | } | 30 | } |
31 | 31 | ||
32 | @include iro.bem-elem('item') { | 32 | @include bem.elem('item') { |
33 | padding-block: props.get(vars.$item--pad-b); | 33 | padding-block: props.get(vars.$item--pad-b); |
34 | padding-inline: props.get(vars.$item--pad-i); | 34 | padding-inline: props.get(vars.$item--pad-i); |
35 | margin: calc(-1 * props.get(vars.$item--key-focus--border-offset)); | 35 | margin: calc(-1 * props.get(vars.$item--key-focus--border-offset)); |
@@ -43,7 +43,7 @@ | |||
43 | &:enabled { | 43 | &:enabled { |
44 | color: currentColor; | 44 | color: currentColor; |
45 | 45 | ||
46 | @include iro.bem-multi('&:hover, &:focus-visible', 'is' 'selected') { | 46 | @include bem.multi('&:hover, &:focus-visible', 'is' 'selected') { |
47 | color: props.get(vars.$item--hover--label-color); | 47 | color: props.get(vars.$item--hover--label-color); |
48 | background-color: props.get(vars.$item--hover--bg-color); | 48 | background-color: props.get(vars.$item--hover--bg-color); |
49 | } | 49 | } |
@@ -64,12 +64,12 @@ | |||
64 | } | 64 | } |
65 | } | 65 | } |
66 | 66 | ||
67 | @include iro.bem-next-elem('header') { | 67 | @include bem.next-elem('header') { |
68 | margin-block-start: calc(props.get(vars.$separator) + props.get(vars.$spacing)); | 68 | margin-block-start: calc(props.get(vars.$separator) + props.get(vars.$spacing)); |
69 | } | 69 | } |
70 | } | 70 | } |
71 | 71 | ||
72 | @include iro.bem-elem('header') { | 72 | @include bem.elem('header') { |
73 | &:link, | 73 | &:link, |
74 | &:visited, | 74 | &:visited, |
75 | &:enabled { | 75 | &:enabled { |
@@ -77,11 +77,11 @@ | |||
77 | } | 77 | } |
78 | } | 78 | } |
79 | 79 | ||
80 | @include iro.bem-elem('separator') { | 80 | @include bem.elem('separator') { |
81 | block-size: props.get(vars.$separator); | 81 | block-size: props.get(vars.$separator); |
82 | } | 82 | } |
83 | 83 | ||
84 | @include iro.bem-elem('icon-slot') { | 84 | @include bem.elem('icon-slot') { |
85 | display: flex; | 85 | display: flex; |
86 | justify-content: center; | 86 | justify-content: center; |
87 | inline-size: props.get(icon.$size); | 87 | inline-size: props.get(icon.$size); |
diff --git a/src/objects/_status-indicator.scss b/src/objects/_status-indicator.scss index bf113a4..126f724 100644 --- a/src/objects/_status-indicator.scss +++ b/src/objects/_status-indicator.scss | |||
@@ -1,7 +1,7 @@ | |||
1 | @use 'sass:map'; | 1 | @use 'sass:map'; |
2 | @use 'sass:meta'; | 2 | @use 'sass:meta'; |
3 | @use 'sass:string'; | 3 | @use 'sass:string'; |
4 | @use 'iro-sass/src/iro-sass' as iro; | 4 | @use 'iro-sass/src/bem' as bem; |
5 | @use 'iro-sass/src/props'; | 5 | @use 'iro-sass/src/props'; |
6 | @use '../props' as *; | 6 | @use '../props' as *; |
7 | 7 | ||
@@ -11,7 +11,7 @@ | |||
11 | @mixin styles { | 11 | @mixin styles { |
12 | @include materialize-at-root(meta.module-variables('vars')); | 12 | @include materialize-at-root(meta.module-variables('vars')); |
13 | 13 | ||
14 | @include iro.bem-object('status-indicator') { | 14 | @include bem.object('status-indicator') { |
15 | display: inline-block; | 15 | display: inline-block; |
16 | inline-size: props.get(vars.$size); | 16 | inline-size: props.get(vars.$size); |
17 | block-size: props.get(vars.$size); | 17 | block-size: props.get(vars.$size); |
@@ -20,7 +20,7 @@ | |||
20 | border-radius: 10em; | 20 | border-radius: 10em; |
21 | 21 | ||
22 | @each $theme in map.keys(props.get(vars.$themes)) { | 22 | @each $theme in map.keys(props.get(vars.$themes)) { |
23 | @include iro.bem-is(string.slice($theme, 3)) { | 23 | @include bem.is(string.slice($theme, 3)) { |
24 | background-color: props.get(vars.$themes, $theme); | 24 | background-color: props.get(vars.$themes, $theme); |
25 | } | 25 | } |
26 | } | 26 | } |
diff --git a/src/objects/_switch.scss b/src/objects/_switch.scss index f368229..15d75b9 100644 --- a/src/objects/_switch.scss +++ b/src/objects/_switch.scss | |||
@@ -1,5 +1,5 @@ | |||
1 | @use 'sass:meta'; | 1 | @use 'sass:meta'; |
2 | @use 'iro-sass/src/iro-sass' as iro; | 2 | @use 'iro-sass/src/bem' as bem; |
3 | @use 'iro-sass/src/props'; | 3 | @use 'iro-sass/src/props'; |
4 | @use '../props' as *; | 4 | @use '../props' as *; |
5 | @use '../core.vars' as core; | 5 | @use '../core.vars' as core; |
@@ -10,7 +10,7 @@ | |||
10 | @mixin styles { | 10 | @mixin styles { |
11 | @include materialize-at-root(meta.module-variables('vars')); | 11 | @include materialize-at-root(meta.module-variables('vars')); |
12 | 12 | ||
13 | @include iro.bem-object('switch') { | 13 | @include bem.object('switch') { |
14 | position: relative; | 14 | position: relative; |
15 | display: inline-block; | 15 | display: inline-block; |
16 | padding-block: props.get(vars.$pad-b); | 16 | padding-block: props.get(vars.$pad-b); |
@@ -19,7 +19,7 @@ | |||
19 | calc(-1 * props.get(vars.$pad-i) - props.get(vars.$key-focus--border-offset)) | 19 | calc(-1 * props.get(vars.$pad-i) - props.get(vars.$key-focus--border-offset)) |
20 | calc(props.get(vars.$spacing-sibling) - props.get(vars.$pad-i) - props.get(vars.$key-focus--border-offset)); | 20 | calc(props.get(vars.$spacing-sibling) - props.get(vars.$pad-i) - props.get(vars.$key-focus--border-offset)); |
21 | 21 | ||
22 | @include iro.bem-elem('indicator') { | 22 | @include bem.elem('indicator') { |
23 | display: inline-block; | 23 | display: inline-block; |
24 | flex: 0 0 auto; | 24 | flex: 0 0 auto; |
25 | inline-size: props.get(vars.$inline-size); | 25 | inline-size: props.get(vars.$inline-size); |
@@ -44,11 +44,11 @@ | |||
44 | } | 44 | } |
45 | } | 45 | } |
46 | 46 | ||
47 | @include iro.bem-elem('label') { | 47 | @include bem.elem('label') { |
48 | margin-inline-start: props.get(vars.$label-gap); | 48 | margin-inline-start: props.get(vars.$label-gap); |
49 | } | 49 | } |
50 | 50 | ||
51 | @include iro.bem-elem('native') { | 51 | @include bem.elem('native') { |
52 | position: absolute; | 52 | position: absolute; |
53 | inset-block-start: 0; | 53 | inset-block-start: 0; |
54 | inset-inline-start: 0; | 54 | inset-inline-start: 0; |
@@ -63,11 +63,11 @@ | |||
63 | 63 | ||
64 | &:hover, | 64 | &:hover, |
65 | &:focus-visible { | 65 | &:focus-visible { |
66 | @include iro.bem-sibling-elem('label') { | 66 | @include bem.sibling-elem('label') { |
67 | color: props.get(vars.$hover--label-color); | 67 | color: props.get(vars.$hover--label-color); |
68 | } | 68 | } |
69 | 69 | ||
70 | @include iro.bem-sibling-elem('indicator') { | 70 | @include bem.sibling-elem('indicator') { |
71 | &::after { | 71 | &::after { |
72 | border-color: props.get(vars.$hover--handle-border-color); | 72 | border-color: props.get(vars.$hover--handle-border-color); |
73 | } | 73 | } |
@@ -75,7 +75,7 @@ | |||
75 | } | 75 | } |
76 | 76 | ||
77 | &:checked { | 77 | &:checked { |
78 | @include iro.bem-sibling-elem('indicator') { | 78 | @include bem.sibling-elem('indicator') { |
79 | background-color: props.get(vars.$handle-border-color); | 79 | background-color: props.get(vars.$handle-border-color); |
80 | 80 | ||
81 | &::after { | 81 | &::after { |
@@ -86,7 +86,7 @@ | |||
86 | 86 | ||
87 | &:hover, | 87 | &:hover, |
88 | &:focus-visible { | 88 | &:focus-visible { |
89 | @include iro.bem-sibling-elem('indicator') { | 89 | @include bem.sibling-elem('indicator') { |
90 | background-color: props.get(vars.$hover--handle-border-color); | 90 | background-color: props.get(vars.$hover--handle-border-color); |
91 | 91 | ||
92 | &::after { | 92 | &::after { |
@@ -97,11 +97,11 @@ | |||
97 | } | 97 | } |
98 | 98 | ||
99 | &:disabled { | 99 | &:disabled { |
100 | @include iro.bem-sibling-elem('label') { | 100 | @include bem.sibling-elem('label') { |
101 | color: props.get(vars.$disabled--label-color); | 101 | color: props.get(vars.$disabled--label-color); |
102 | } | 102 | } |
103 | 103 | ||
104 | @include iro.bem-sibling-elem('indicator') { | 104 | @include bem.sibling-elem('indicator') { |
105 | background-color: props.get(vars.$disabled--track-bg-color); | 105 | background-color: props.get(vars.$disabled--track-bg-color); |
106 | 106 | ||
107 | &::after { | 107 | &::after { |
@@ -111,7 +111,7 @@ | |||
111 | } | 111 | } |
112 | 112 | ||
113 | &:checked { | 113 | &:checked { |
114 | @include iro.bem-sibling-elem('indicator') { | 114 | @include bem.sibling-elem('indicator') { |
115 | background-color: props.get(vars.$disabled--handle-border-color); | 115 | background-color: props.get(vars.$disabled--handle-border-color); |
116 | 116 | ||
117 | &::after { | 117 | &::after { |
@@ -122,11 +122,11 @@ | |||
122 | } | 122 | } |
123 | 123 | ||
124 | &:focus-visible { | 124 | &:focus-visible { |
125 | @include iro.bem-sibling-elem('label') { | 125 | @include bem.sibling-elem('label') { |
126 | color: props.get(vars.$key-focus--label-color); | 126 | color: props.get(vars.$key-focus--label-color); |
127 | } | 127 | } |
128 | 128 | ||
129 | @include iro.bem-sibling-elem('indicator') { | 129 | @include bem.sibling-elem('indicator') { |
130 | outline: props.get(vars.$key-focus--border-color) solid props.get(vars.$key-focus--border-width); | 130 | outline: props.get(vars.$key-focus--border-color) solid props.get(vars.$key-focus--border-width); |
131 | box-shadow: | 131 | box-shadow: |
132 | 0 | 132 | 0 |
@@ -138,16 +138,16 @@ | |||
138 | } | 138 | } |
139 | } | 139 | } |
140 | 140 | ||
141 | @include iro.bem-modifier('standalone') { | 141 | @include bem.modifier('standalone') { |
142 | @include iro.bem-elem('indicator') { | 142 | @include bem.elem('indicator') { |
143 | margin-block-start: 0; | 143 | margin-block-start: 0; |
144 | } | 144 | } |
145 | } | 145 | } |
146 | 146 | ||
147 | @include iro.bem-modifier('accent') { | 147 | @include bem.modifier('accent') { |
148 | @include iro.bem-elem('native') { | 148 | @include bem.elem('native') { |
149 | &:checked { | 149 | &:checked { |
150 | @include iro.bem-sibling-elem('indicator') { | 150 | @include bem.sibling-elem('indicator') { |
151 | background-color: props.get(vars.$accent--handle-border-color); | 151 | background-color: props.get(vars.$accent--handle-border-color); |
152 | 152 | ||
153 | &::after { | 153 | &::after { |
@@ -157,7 +157,7 @@ | |||
157 | 157 | ||
158 | &:hover, | 158 | &:hover, |
159 | &:focus-visible { | 159 | &:focus-visible { |
160 | @include iro.bem-sibling-elem('indicator') { | 160 | @include bem.sibling-elem('indicator') { |
161 | background-color: props.get(vars.$accent--hover--handle-border-color); | 161 | background-color: props.get(vars.$accent--hover--handle-border-color); |
162 | 162 | ||
163 | &::after { | 163 | &::after { |
@@ -168,12 +168,12 @@ | |||
168 | } | 168 | } |
169 | 169 | ||
170 | &:disabled { | 170 | &:disabled { |
171 | @include iro.bem-sibling-elem('label') { | 171 | @include bem.sibling-elem('label') { |
172 | color: props.get(vars.$disabled--label-color); | 172 | color: props.get(vars.$disabled--label-color); |
173 | } | 173 | } |
174 | 174 | ||
175 | &:checked { | 175 | &:checked { |
176 | @include iro.bem-sibling-elem('indicator') { | 176 | @include bem.sibling-elem('indicator') { |
177 | background-color: props.get(vars.$disabled--handle-border-color); | 177 | background-color: props.get(vars.$disabled--handle-border-color); |
178 | 178 | ||
179 | &::after { | 179 | &::after { |
diff --git a/src/objects/_table.scss b/src/objects/_table.scss index 491db20..c0a7360 100644 --- a/src/objects/_table.scss +++ b/src/objects/_table.scss | |||
@@ -1,5 +1,5 @@ | |||
1 | @use 'sass:meta'; | 1 | @use 'sass:meta'; |
2 | @use 'iro-sass/src/iro-sass' as iro; | 2 | @use 'iro-sass/src/bem' as bem; |
3 | @use 'iro-sass/src/props'; | 3 | @use 'iro-sass/src/props'; |
4 | @use '../props' as *; | 4 | @use '../props' as *; |
5 | 5 | ||
@@ -9,15 +9,15 @@ | |||
9 | @mixin styles { | 9 | @mixin styles { |
10 | @include materialize-at-root(meta.module-variables('vars')); | 10 | @include materialize-at-root(meta.module-variables('vars')); |
11 | 11 | ||
12 | @include iro.bem-object('table') { | 12 | @include bem.object('table') { |
13 | border-spacing: 0; | 13 | border-spacing: 0; |
14 | border-collapse: separate; | 14 | border-collapse: separate; |
15 | 15 | ||
16 | @include iro.bem-modifier('fixed') { | 16 | @include bem.modifier('fixed') { |
17 | table-layout: fixed; | 17 | table-layout: fixed; |
18 | } | 18 | } |
19 | 19 | ||
20 | @include iro.bem-elem('head-cell') { | 20 | @include bem.elem('head-cell') { |
21 | padding-block: props.get(vars.$pad-b); | 21 | padding-block: props.get(vars.$pad-b); |
22 | padding-inline: props.get(vars.$pad-i); | 22 | padding-inline: props.get(vars.$pad-i); |
23 | font-family: props.get(vars.$heading--font-family); | 23 | font-family: props.get(vars.$heading--font-family); |
@@ -29,7 +29,7 @@ | |||
29 | letter-spacing: props.get(vars.$heading--letter-spacing); | 29 | letter-spacing: props.get(vars.$heading--letter-spacing); |
30 | } | 30 | } |
31 | 31 | ||
32 | @include iro.bem-elem('cell') { | 32 | @include bem.elem('cell') { |
33 | padding-block: props.get(vars.$pad-b); | 33 | padding-block: props.get(vars.$pad-b); |
34 | padding-inline: props.get(vars.$pad-i); | 34 | padding-inline: props.get(vars.$pad-i); |
35 | border-color: props.get(vars.$border-color); | 35 | border-color: props.get(vars.$border-color); |
@@ -37,21 +37,21 @@ | |||
37 | border-width: 0; | 37 | border-width: 0; |
38 | border-block-start-width: props.get(vars.$border-width); | 38 | border-block-start-width: props.get(vars.$border-width); |
39 | 39 | ||
40 | @include iro.bem-modifier('divider') { | 40 | @include bem.modifier('divider') { |
41 | border-inline-end-width: props.get(vars.$border-width); | 41 | border-inline-end-width: props.get(vars.$border-width); |
42 | } | 42 | } |
43 | } | 43 | } |
44 | 44 | ||
45 | @include iro.bem-elem('row') { | 45 | @include bem.elem('row') { |
46 | &:last-child { | 46 | &:last-child { |
47 | @include iro.bem-elem('cell') { | 47 | @include bem.elem('cell') { |
48 | border-block-end-width: props.get(vars.$border-width); | 48 | border-block-end-width: props.get(vars.$border-width); |
49 | } | 49 | } |
50 | } | 50 | } |
51 | } | 51 | } |
52 | 52 | ||
53 | @include iro.bem-modifier('flush') { | 53 | @include bem.modifier('flush') { |
54 | @include iro.bem-elem('head-cell', 'cell') { | 54 | @include bem.elem('head-cell', 'cell') { |
55 | &:first-child { | 55 | &:first-child { |
56 | padding-inline-start: 0; | 56 | padding-inline-start: 0; |
57 | } | 57 | } |
@@ -62,8 +62,8 @@ | |||
62 | } | 62 | } |
63 | } | 63 | } |
64 | 64 | ||
65 | @include iro.bem-modifier('box') { | 65 | @include bem.modifier('box') { |
66 | @include iro.bem-elem('cell') { | 66 | @include bem.elem('cell') { |
67 | background-color: props.get(vars.$box--bg-color); | 67 | background-color: props.get(vars.$box--bg-color); |
68 | 68 | ||
69 | &:first-child { | 69 | &:first-child { |
@@ -75,9 +75,9 @@ | |||
75 | } | 75 | } |
76 | } | 76 | } |
77 | 77 | ||
78 | @include iro.bem-elem('row') { | 78 | @include bem.elem('row') { |
79 | &:first-child { | 79 | &:first-child { |
80 | @include iro.bem-elem('cell') { | 80 | @include bem.elem('cell') { |
81 | &:first-child { | 81 | &:first-child { |
82 | border-start-start-radius: props.get(vars.$rounding); | 82 | border-start-start-radius: props.get(vars.$rounding); |
83 | } | 83 | } |
@@ -89,7 +89,7 @@ | |||
89 | } | 89 | } |
90 | 90 | ||
91 | &:last-child { | 91 | &:last-child { |
92 | @include iro.bem-elem('cell') { | 92 | @include bem.elem('cell') { |
93 | &:first-child { | 93 | &:first-child { |
94 | border-end-start-radius: props.get(vars.$rounding); | 94 | border-end-start-radius: props.get(vars.$rounding); |
95 | } | 95 | } |
@@ -102,35 +102,35 @@ | |||
102 | } | 102 | } |
103 | } | 103 | } |
104 | 104 | ||
105 | @include iro.bem-modifier('interactive') { | 105 | @include bem.modifier('interactive') { |
106 | @include iro.bem-elem('row') { | 106 | @include bem.elem('row') { |
107 | @include iro.bem-elem('cell') { | 107 | @include bem.elem('cell') { |
108 | cursor: pointer; | 108 | cursor: pointer; |
109 | } | 109 | } |
110 | 110 | ||
111 | &:hover { | 111 | &:hover { |
112 | @include iro.bem-elem('cell') { | 112 | @include bem.elem('cell') { |
113 | background-color: props.get(vars.$hover--bg-color); | 113 | background-color: props.get(vars.$hover--bg-color); |
114 | } | 114 | } |
115 | } | 115 | } |
116 | 116 | ||
117 | &:active { | 117 | &:active { |
118 | @include iro.bem-elem('cell') { | 118 | @include bem.elem('cell') { |
119 | background-color: props.get(vars.$active--bg-color); | 119 | background-color: props.get(vars.$active--bg-color); |
120 | } | 120 | } |
121 | } | 121 | } |
122 | } | 122 | } |
123 | 123 | ||
124 | @include iro.bem-modifier('box') { | 124 | @include bem.modifier('box') { |
125 | @include iro.bem-elem('row') { | 125 | @include bem.elem('row') { |
126 | &:hover { | 126 | &:hover { |
127 | @include iro.bem-elem('cell') { | 127 | @include bem.elem('cell') { |
128 | background-color: props.get(vars.$box--hover--bg-color); | 128 | background-color: props.get(vars.$box--hover--bg-color); |
129 | } | 129 | } |
130 | } | 130 | } |
131 | 131 | ||
132 | &:active { | 132 | &:active { |
133 | @include iro.bem-elem('cell') { | 133 | @include bem.elem('cell') { |
134 | background-color: props.get(vars.$box--active--bg-color); | 134 | background-color: props.get(vars.$box--active--bg-color); |
135 | } | 135 | } |
136 | } | 136 | } |
@@ -138,8 +138,8 @@ | |||
138 | } | 138 | } |
139 | } | 139 | } |
140 | 140 | ||
141 | @include iro.bem-modifier('sm') { | 141 | @include bem.modifier('sm') { |
142 | @include iro.bem-elem('head-cell', 'cell') { | 142 | @include bem.elem('head-cell', 'cell') { |
143 | padding-block: props.get(vars.$pad-b--sm); | 143 | padding-block: props.get(vars.$pad-b--sm); |
144 | } | 144 | } |
145 | } | 145 | } |
diff --git a/src/objects/_text-field.scss b/src/objects/_text-field.scss index b945866..0f96634 100644 --- a/src/objects/_text-field.scss +++ b/src/objects/_text-field.scss | |||
@@ -1,5 +1,5 @@ | |||
1 | @use 'sass:meta'; | 1 | @use 'sass:meta'; |
2 | @use 'iro-sass/src/iro-sass' as iro; | 2 | @use 'iro-sass/src/bem' as bem; |
3 | @use 'iro-sass/src/props'; | 3 | @use 'iro-sass/src/props'; |
4 | @use '../props' as *; | 4 | @use '../props' as *; |
5 | 5 | ||
@@ -9,7 +9,7 @@ | |||
9 | @mixin -invalid { | 9 | @mixin -invalid { |
10 | $focus-border-offset: calc(props.get(vars.$border-width) - props.get(vars.$focus--border-width)); | 10 | $focus-border-offset: calc(props.get(vars.$border-width) - props.get(vars.$focus--border-width)); |
11 | 11 | ||
12 | @include iro.bem-sibling-elem('bg') { | 12 | @include bem.sibling-elem('bg') { |
13 | inset-block: $focus-border-offset; | 13 | inset-block: $focus-border-offset; |
14 | inset-inline: $focus-border-offset; | 14 | inset-inline: $focus-border-offset; |
15 | border: props.get(vars.$focus--border-width) solid props.get(vars.$error--border-color); | 15 | border: props.get(vars.$focus--border-width) solid props.get(vars.$error--border-color); |
@@ -17,20 +17,20 @@ | |||
17 | } | 17 | } |
18 | 18 | ||
19 | &:hover { | 19 | &:hover { |
20 | @include iro.bem-sibling-elem('bg') { | 20 | @include bem.sibling-elem('bg') { |
21 | border-color: props.get(vars.$error--hover--border-color); | 21 | border-color: props.get(vars.$error--hover--border-color); |
22 | } | 22 | } |
23 | } | 23 | } |
24 | 24 | ||
25 | &:focus { | 25 | &:focus { |
26 | @include iro.bem-sibling-elem('bg') { | 26 | @include bem.sibling-elem('bg') { |
27 | border-color: props.get(vars.$error--focus--border-color); | 27 | border-color: props.get(vars.$error--focus--border-color); |
28 | } | 28 | } |
29 | } | 29 | } |
30 | } | 30 | } |
31 | 31 | ||
32 | @mixin -keyboard-focus { | 32 | @mixin -keyboard-focus { |
33 | @include iro.bem-sibling-elem('bg') { | 33 | @include bem.sibling-elem('bg') { |
34 | border-color: props.get(vars.$key-focus--border-color); | 34 | border-color: props.get(vars.$key-focus--border-color); |
35 | outline: props.get(vars.$key-focus--outline-color) solid props.get(vars.$key-focus--border-width); | 35 | outline: props.get(vars.$key-focus--outline-color) solid props.get(vars.$key-focus--border-width); |
36 | //outline-offset: props.get(vars.$focus --border); | 36 | //outline-offset: props.get(vars.$focus --border); |
@@ -40,7 +40,7 @@ | |||
40 | @mixin styles { | 40 | @mixin styles { |
41 | @include materialize-at-root(meta.module-variables('vars')); | 41 | @include materialize-at-root(meta.module-variables('vars')); |
42 | 42 | ||
43 | @include iro.bem-object('text-field') { | 43 | @include bem.object('text-field') { |
44 | $focus-border-offset: calc(props.get(vars.$border-width) - props.get(vars.$focus--border-width)); | 44 | $focus-border-offset: calc(props.get(vars.$border-width) - props.get(vars.$focus--border-width)); |
45 | 45 | ||
46 | position: relative; | 46 | position: relative; |
@@ -48,7 +48,7 @@ | |||
48 | background-color: props.get(vars.$bg-color); | 48 | background-color: props.get(vars.$bg-color); |
49 | border-radius: props.get(vars.$rounding); | 49 | border-radius: props.get(vars.$rounding); |
50 | 50 | ||
51 | @include iro.bem-elem('bg') { | 51 | @include bem.elem('bg') { |
52 | position: absolute; | 52 | position: absolute; |
53 | inset-block: 0; | 53 | inset-block: 0; |
54 | inset-inline: 0; | 54 | inset-inline: 0; |
@@ -58,7 +58,7 @@ | |||
58 | border-radius: props.get(vars.$rounding); | 58 | border-radius: props.get(vars.$rounding); |
59 | } | 59 | } |
60 | 60 | ||
61 | @include iro.bem-elem('native') { | 61 | @include bem.elem('native') { |
62 | box-sizing: border-box; | 62 | box-sizing: border-box; |
63 | inline-size: 100%; | 63 | inline-size: 100%; |
64 | padding-block: calc(props.get(vars.$pad-b) - .5em * (props.get(vars.$line-height) - 1)); | 64 | padding-block: calc(props.get(vars.$pad-b) - .5em * (props.get(vars.$line-height) - 1)); |
@@ -78,7 +78,7 @@ | |||
78 | } | 78 | } |
79 | 79 | ||
80 | &:hover { | 80 | &:hover { |
81 | @include iro.bem-sibling-elem('bg') { | 81 | @include bem.sibling-elem('bg') { |
82 | border-color: props.get(vars.$hover--border-color); | 82 | border-color: props.get(vars.$hover--border-color); |
83 | } | 83 | } |
84 | } | 84 | } |
@@ -86,7 +86,7 @@ | |||
86 | &:focus { | 86 | &:focus { |
87 | outline: 0; | 87 | outline: 0; |
88 | 88 | ||
89 | @include iro.bem-sibling-elem('bg') { | 89 | @include bem.sibling-elem('bg') { |
90 | inset-block: $focus-border-offset; | 90 | inset-block: $focus-border-offset; |
91 | inset-inline: $focus-border-offset; | 91 | inset-inline: $focus-border-offset; |
92 | border: props.get(vars.$focus--border-width) solid props.get(vars.$focus--border-color); | 92 | border: props.get(vars.$focus--border-width) solid props.get(vars.$focus--border-color); |
@@ -104,24 +104,24 @@ | |||
104 | } | 104 | } |
105 | } | 105 | } |
106 | 106 | ||
107 | @include iro.bem-modifier('extended') { | 107 | @include bem.modifier('extended') { |
108 | padding: props.get(vars.$extended--pad); | 108 | padding: props.get(vars.$extended--pad); |
109 | 109 | ||
110 | @include iro.bem-multi('&', 'elem' 'bg') { | 110 | @include bem.multi('&', 'elem' 'bg') { |
111 | border-radius: calc(props.get(vars.$rounding) + props.get(vars.$extended--pad)); | 111 | border-radius: calc(props.get(vars.$rounding) + props.get(vars.$extended--pad)); |
112 | } | 112 | } |
113 | 113 | ||
114 | @include iro.bem-elem('native') { | 114 | @include bem.elem('native') { |
115 | &:focus { | 115 | &:focus { |
116 | @include iro.bem-sibling-elem('bg') { | 116 | @include bem.sibling-elem('bg') { |
117 | border-radius: calc(props.get(vars.$rounding) + props.get(vars.$extended--pad) - $focus-border-offset); | 117 | border-radius: calc(props.get(vars.$rounding) + props.get(vars.$extended--pad) - $focus-border-offset); |
118 | } | 118 | } |
119 | } | 119 | } |
120 | } | 120 | } |
121 | } | 121 | } |
122 | 122 | ||
123 | @include iro.bem-is('invalid') { | 123 | @include bem.is('invalid') { |
124 | @include iro.bem-elem('native') { | 124 | @include bem.elem('native') { |
125 | @include -invalid; | 125 | @include -invalid; |
126 | 126 | ||
127 | &:focus-visible { | 127 | &:focus-visible { |
@@ -130,10 +130,10 @@ | |||
130 | } | 130 | } |
131 | } | 131 | } |
132 | 132 | ||
133 | @include iro.bem-is('disabled') { | 133 | @include bem.is('disabled') { |
134 | background-color: props.get(vars.$disabled--bg-color); | 134 | background-color: props.get(vars.$disabled--bg-color); |
135 | 135 | ||
136 | @include iro.bem-elem('native') { | 136 | @include bem.elem('native') { |
137 | color: props.get(vars.$disabled--text-color); | 137 | color: props.get(vars.$disabled--text-color); |
138 | 138 | ||
139 | &::placeholder { | 139 | &::placeholder { |
@@ -141,21 +141,21 @@ | |||
141 | } | 141 | } |
142 | } | 142 | } |
143 | 143 | ||
144 | @include iro.bem-elem('bg') { | 144 | @include bem.elem('bg') { |
145 | border-color: props.get(vars.$disabled--border-color); | 145 | border-color: props.get(vars.$disabled--border-color); |
146 | } | 146 | } |
147 | 147 | ||
148 | @include iro.bem-is('invalid') { | 148 | @include bem.is('invalid') { |
149 | @include iro.bem-elem('native') { | 149 | @include bem.elem('native') { |
150 | @include iro.bem-sibling-elem('bg') { | 150 | @include bem.sibling-elem('bg') { |
151 | border-color: props.get(vars.$disabled--border-color); | 151 | border-color: props.get(vars.$disabled--border-color); |
152 | } | 152 | } |
153 | } | 153 | } |
154 | } | 154 | } |
155 | 155 | ||
156 | @include iro.bem-elem('native') { | 156 | @include bem.elem('native') { |
157 | &:invalid { | 157 | &:invalid { |
158 | @include iro.bem-sibling-elem('bg') { | 158 | @include bem.sibling-elem('bg') { |
159 | border-color: props.get(vars.$disabled--border-color); | 159 | border-color: props.get(vars.$disabled--border-color); |
160 | } | 160 | } |
161 | } | 161 | } |
diff --git a/src/scopes/_blockquotes.scss b/src/scopes/_blockquotes.scss index 7406c89..7989cb7 100644 --- a/src/scopes/_blockquotes.scss +++ b/src/scopes/_blockquotes.scss | |||
@@ -1,5 +1,5 @@ | |||
1 | @use 'sass:meta'; | 1 | @use 'sass:meta'; |
2 | @use 'iro-sass/src/iro-sass' as iro; | 2 | @use 'iro-sass/src/bem' as bem; |
3 | @use 'iro-sass/src/props'; | 3 | @use 'iro-sass/src/props'; |
4 | @use '../props' as *; | 4 | @use '../props' as *; |
5 | 5 | ||
@@ -9,7 +9,7 @@ | |||
9 | @mixin styles { | 9 | @mixin styles { |
10 | @include materialize-at-root(meta.module-variables('vars')); | 10 | @include materialize-at-root(meta.module-variables('vars')); |
11 | 11 | ||
12 | @include iro.bem-scope('blockquotes') { | 12 | @include bem.scope('blockquotes') { |
13 | blockquote { | 13 | blockquote { |
14 | padding-inline-start: calc(props.get(vars.$indent) - props.get(vars.$border-width)); | 14 | padding-inline-start: calc(props.get(vars.$indent) - props.get(vars.$border-width)); |
15 | margin-block: props.get(vars.$margin-bs); | 15 | margin-block: props.get(vars.$margin-bs); |
@@ -17,7 +17,7 @@ | |||
17 | border-inline-start: props.get(vars.$border-width) solid props.get(vars.$border-color); | 17 | border-inline-start: props.get(vars.$border-width) solid props.get(vars.$border-color); |
18 | } | 18 | } |
19 | 19 | ||
20 | @include iro.bem-modifier('compact') { | 20 | @include bem.modifier('compact') { |
21 | blockquote { | 21 | blockquote { |
22 | padding-inline-start: calc(props.get(vars.$compact--indent) - props.get(vars.$border-width)); | 22 | padding-inline-start: calc(props.get(vars.$compact--indent) - props.get(vars.$border-width)); |
23 | } | 23 | } |
diff --git a/src/scopes/_code.scss b/src/scopes/_code.scss index 5035879..367a110 100644 --- a/src/scopes/_code.scss +++ b/src/scopes/_code.scss | |||
@@ -1,5 +1,5 @@ | |||
1 | @use 'sass:meta'; | 1 | @use 'sass:meta'; |
2 | @use 'iro-sass/src/iro-sass' as iro; | 2 | @use 'iro-sass/src/bem' as bem; |
3 | @use 'iro-sass/src/props'; | 3 | @use 'iro-sass/src/props'; |
4 | @use '../props' as *; | 4 | @use '../props' as *; |
5 | 5 | ||
@@ -9,7 +9,7 @@ | |||
9 | @mixin styles { | 9 | @mixin styles { |
10 | @include materialize-at-root(meta.module-variables('vars')); | 10 | @include materialize-at-root(meta.module-variables('vars')); |
11 | 11 | ||
12 | @include iro.bem-scope('code') { | 12 | @include bem.scope('code') { |
13 | code { | 13 | code { |
14 | padding-block: props.get(vars.$inline--pad-b); | 14 | padding-block: props.get(vars.$inline--pad-b); |
15 | padding-inline: props.get(vars.$inline--pad-i); | 15 | padding-inline: props.get(vars.$inline--pad-i); |
diff --git a/src/scopes/_headings.scss b/src/scopes/_headings.scss index c786a75..415fb15 100644 --- a/src/scopes/_headings.scss +++ b/src/scopes/_headings.scss | |||
@@ -1,5 +1,5 @@ | |||
1 | @use 'sass:map'; | 1 | @use 'sass:map'; |
2 | @use 'iro-sass/src/iro-sass' as iro; | 2 | @use 'iro-sass/src/bem' as bem; |
3 | @use 'iro-sass/src/props'; | 3 | @use 'iro-sass/src/props'; |
4 | @use '../objects/heading.vars' as heading; | 4 | @use '../objects/heading.vars' as heading; |
5 | 5 | ||
@@ -14,7 +14,7 @@ | |||
14 | xxl: h1, | 14 | xxl: h1, |
15 | ); | 15 | ); |
16 | 16 | ||
17 | @include iro.bem-scope('headings') { | 17 | @include bem.scope('headings') { |
18 | h1, | 18 | h1, |
19 | h2, | 19 | h2, |
20 | h3, | 20 | h3, |
@@ -32,7 +32,7 @@ | |||
32 | transform: translateX(props.get(heading.$offset)); | 32 | transform: translateX(props.get(heading.$offset)); |
33 | } | 33 | } |
34 | 34 | ||
35 | @include iro.bem-elem('highlight') { | 35 | @include bem.elem('highlight') { |
36 | background-image: linear-gradient(to top, | 36 | background-image: linear-gradient(to top, |
37 | transparent .15em, | 37 | transparent .15em, |
38 | props.get(heading.$bg-color) .15em, | 38 | props.get(heading.$bg-color) .15em, |
@@ -51,7 +51,7 @@ | |||
51 | } | 51 | } |
52 | } | 52 | } |
53 | 53 | ||
54 | @include iro.bem-modifier('display') { | 54 | @include bem.modifier('display') { |
55 | @each $mod, $font-family, $line-height, $font-size, $font-weight, $letter-spacing, $feature-settings in heading.$display--sizes { | 55 | @each $mod, $font-family, $line-height, $font-size, $font-weight, $letter-spacing, $feature-settings in heading.$display--sizes { |
56 | #{map.get($-size-map, $mod)} { | 56 | #{map.get($-size-map, $mod)} { |
57 | font-family: props.get($font-family); | 57 | font-family: props.get($font-family); |
diff --git a/src/scopes/_implicit.scss b/src/scopes/_implicit.scss index 7b1f43b..707339e 100644 --- a/src/scopes/_implicit.scss +++ b/src/scopes/_implicit.scss | |||
@@ -1,6 +1,6 @@ | |||
1 | @use 'sass:math'; | 1 | @use 'sass:math'; |
2 | @use 'sass:meta'; | 2 | @use 'sass:meta'; |
3 | @use 'iro-sass/src/iro-sass' as iro; | 3 | @use 'iro-sass/src/bem' as bem; |
4 | @use 'iro-sass/src/props'; | 4 | @use 'iro-sass/src/props'; |
5 | @use '../props' as *; | 5 | @use '../props' as *; |
6 | @use '../core.vars' as core; | 6 | @use '../core.vars' as core; |
diff --git a/src/scopes/_links.scss b/src/scopes/_links.scss index 41472c7..8ecf0ae 100644 --- a/src/scopes/_links.scss +++ b/src/scopes/_links.scss | |||
@@ -1,7 +1,7 @@ | |||
1 | @use 'sass:map'; | 1 | @use 'sass:map'; |
2 | @use 'sass:meta'; | 2 | @use 'sass:meta'; |
3 | @use 'sass:string'; | 3 | @use 'sass:string'; |
4 | @use 'iro-sass/src/iro-sass' as iro; | 4 | @use 'iro-sass/src/bem' as bem; |
5 | @use 'iro-sass/src/props'; | 5 | @use 'iro-sass/src/props'; |
6 | @use '../props' as *; | 6 | @use '../props' as *; |
7 | 7 | ||
@@ -11,7 +11,7 @@ | |||
11 | @mixin styles { | 11 | @mixin styles { |
12 | @include materialize-at-root(meta.module-variables('vars')); | 12 | @include materialize-at-root(meta.module-variables('vars')); |
13 | 13 | ||
14 | @include iro.bem-scope('links') { | 14 | @include bem.scope('links') { |
15 | :link, | 15 | :link, |
16 | :visited { | 16 | :visited { |
17 | color: currentColor; | 17 | color: currentColor; |
@@ -40,14 +40,14 @@ | |||
40 | } | 40 | } |
41 | } | 41 | } |
42 | 42 | ||
43 | @include iro.bem-modifier('invisible') { | 43 | @include bem.modifier('invisible') { |
44 | :link, | 44 | :link, |
45 | :visited { | 45 | :visited { |
46 | text-decoration: none; | 46 | text-decoration: none; |
47 | } | 47 | } |
48 | } | 48 | } |
49 | 49 | ||
50 | @include iro.bem-modifier('colored') { | 50 | @include bem.modifier('colored') { |
51 | :link { | 51 | :link { |
52 | color: props.get(vars.$colored--text-color); | 52 | color: props.get(vars.$colored--text-color); |
53 | text-decoration-color: props.get(vars.$colored--underline-color); | 53 | text-decoration-color: props.get(vars.$colored--underline-color); |
@@ -68,7 +68,7 @@ | |||
68 | } | 68 | } |
69 | 69 | ||
70 | @each $theme in map.keys(props.get(vars.$static-themes)) { | 70 | @each $theme in map.keys(props.get(vars.$static-themes)) { |
71 | @include iro.bem-modifier(string.slice($theme, 3)) { | 71 | @include bem.modifier(string.slice($theme, 3)) { |
72 | :link, | 72 | :link, |
73 | :visited { | 73 | :visited { |
74 | color: props.get(vars.$static-themes, $theme, --text-color); | 74 | color: props.get(vars.$static-themes, $theme, --text-color); |
diff --git a/src/scopes/_lists.scss b/src/scopes/_lists.scss index 7f18df0..0cf8c54 100644 --- a/src/scopes/_lists.scss +++ b/src/scopes/_lists.scss | |||
@@ -1,5 +1,5 @@ | |||
1 | @use 'sass:meta'; | 1 | @use 'sass:meta'; |
2 | @use 'iro-sass/src/iro-sass' as iro; | 2 | @use 'iro-sass/src/bem' as bem; |
3 | @use 'iro-sass/src/props'; | 3 | @use 'iro-sass/src/props'; |
4 | @use '../props' as *; | 4 | @use '../props' as *; |
5 | @use '../core.vars' as core; | 5 | @use '../core.vars' as core; |
@@ -10,7 +10,7 @@ | |||
10 | @mixin styles { | 10 | @mixin styles { |
11 | @include materialize-at-root(meta.module-variables('vars')); | 11 | @include materialize-at-root(meta.module-variables('vars')); |
12 | 12 | ||
13 | @include iro.bem-scope('lists') { | 13 | @include bem.scope('lists') { |
14 | ul, | 14 | ul, |
15 | ol { | 15 | ol { |
16 | padding-inline-start: props.get(vars.$indent); | 16 | padding-inline-start: props.get(vars.$indent); |
@@ -46,7 +46,7 @@ | |||
46 | margin-inline: props.get(vars.$indent) 0; | 46 | margin-inline: props.get(vars.$indent) 0; |
47 | } | 47 | } |
48 | 48 | ||
49 | @include iro.bem-modifier('compact') { | 49 | @include bem.modifier('compact') { |
50 | ul, | 50 | ul, |
51 | ol { | 51 | ol { |
52 | padding-inline-start: calc(props.get(vars.$compact--indent) - 3px); | 52 | padding-inline-start: calc(props.get(vars.$compact--indent) - 3px); |
diff --git a/src/scopes/_tables.scss b/src/scopes/_tables.scss index 08df871..e50f134 100644 --- a/src/scopes/_tables.scss +++ b/src/scopes/_tables.scss | |||
@@ -1,5 +1,5 @@ | |||
1 | @use 'sass:meta'; | 1 | @use 'sass:meta'; |
2 | @use 'iro-sass/src/iro-sass' as iro; | 2 | @use 'iro-sass/src/bem' as bem; |
3 | @use 'iro-sass/src/props'; | 3 | @use 'iro-sass/src/props'; |
4 | @use '../props' as *; | 4 | @use '../props' as *; |
5 | @use '../objects/table.vars' as table; | 5 | @use '../objects/table.vars' as table; |
@@ -10,7 +10,7 @@ | |||
10 | @mixin styles { | 10 | @mixin styles { |
11 | @include materialize-at-root(meta.module-variables('vars')); | 11 | @include materialize-at-root(meta.module-variables('vars')); |
12 | 12 | ||
13 | @include iro.bem-scope('tables') { | 13 | @include bem.scope('tables') { |
14 | table { | 14 | table { |
15 | margin-block-start: props.get(vars.$margin-bs); | 15 | margin-block-start: props.get(vars.$margin-bs); |
16 | border-spacing: 0; | 16 | border-spacing: 0; |
@@ -46,7 +46,7 @@ | |||
46 | } | 46 | } |
47 | } | 47 | } |
48 | 48 | ||
49 | @include iro.bem-modifier('flush') { | 49 | @include bem.modifier('flush') { |
50 | th, | 50 | th, |
51 | td { | 51 | td { |
52 | &:first-child { | 52 | &:first-child { |
@@ -59,7 +59,7 @@ | |||
59 | } | 59 | } |
60 | } | 60 | } |
61 | 61 | ||
62 | @include iro.bem-modifier('box') { | 62 | @include bem.modifier('box') { |
63 | td { | 63 | td { |
64 | background-color: props.get(table.$box--bg-color); | 64 | background-color: props.get(table.$box--bg-color); |
65 | 65 | ||