summaryrefslogtreecommitdiffstats
path: root/src/_utils.scss
diff options
context:
space:
mode:
Diffstat (limited to 'src/_utils.scss')
-rw-r--r--src/_utils.scss42
1 files changed, 24 insertions, 18 deletions
diff --git a/src/_utils.scss b/src/_utils.scss
index 3dae3b6..dc0fb32 100644
--- a/src/_utils.scss
+++ b/src/_utils.scss
@@ -171,7 +171,7 @@ $-font-sizes: (
171 171
172 @each $theme in map.keys(props.get(vars.$transparent-colors)) { 172 @each $theme in map.keys(props.get(vars.$transparent-colors)) {
173 $theme-name: static-#{string.slice($theme, 3)}; 173 $theme-name: static-#{string.slice($theme, 3)};
174 174
175 @include bem.at-theme($theme-name) { 175 @include bem.at-theme($theme-name) {
176 color: props.get(vars.$transparent-colors, $theme, --900); 176 color: props.get(vars.$transparent-colors, $theme, --900);
177 } 177 }
@@ -183,7 +183,7 @@ $-font-sizes: (
183 183
184 @each $theme in map.keys(props.get(vars.$transparent-colors)) { 184 @each $theme in map.keys(props.get(vars.$transparent-colors)) {
185 $theme-name: static-#{string.slice($theme, 3)}; 185 $theme-name: static-#{string.slice($theme, 3)};
186 186
187 @include bem.at-theme($theme-name) { 187 @include bem.at-theme($theme-name) {
188 color: props.get(vars.$transparent-colors, $theme, --800); 188 color: props.get(vars.$transparent-colors, $theme, --800);
189 } 189 }
@@ -195,7 +195,7 @@ $-font-sizes: (
195 195
196 @each $theme in map.keys(props.get(vars.$transparent-colors)) { 196 @each $theme in map.keys(props.get(vars.$transparent-colors)) {
197 $theme-name: static-#{string.slice($theme, 3)}; 197 $theme-name: static-#{string.slice($theme, 3)};
198 198
199 @include bem.at-theme($theme-name) { 199 @include bem.at-theme($theme-name) {
200 color: props.get(vars.$transparent-colors, $theme, --700); 200 color: props.get(vars.$transparent-colors, $theme, --700);
201 } 201 }
@@ -207,7 +207,7 @@ $-font-sizes: (
207 207
208 @each $theme in map.keys(props.get(vars.$transparent-colors)) { 208 @each $theme in map.keys(props.get(vars.$transparent-colors)) {
209 $theme-name: static-#{string.slice($theme, 3)}; 209 $theme-name: static-#{string.slice($theme, 3)};
210 210
211 @include bem.at-theme($theme-name) { 211 @include bem.at-theme($theme-name) {
212 color: props.get(vars.$transparent-colors, $theme, --600); 212 color: props.get(vars.$transparent-colors, $theme, --600);
213 } 213 }
@@ -224,23 +224,23 @@ $-font-sizes: (
224 @include bem.utility('#{$dir}-100') { 224 @include bem.utility('#{$dir}-100') {
225 #{$prop}: 100%; 225 #{$prop}: 100%;
226 } 226 }
227 227
228 @include bem.utility('#{$dir}-75') { 228 @include bem.utility('#{$dir}-75') {
229 #{$prop}: 75%; 229 #{$prop}: 75%;
230 } 230 }
231 231
232 @include bem.utility('#{$dir}-50') { 232 @include bem.utility('#{$dir}-50') {
233 #{$prop}: 50%; 233 #{$prop}: 50%;
234 } 234 }
235 235
236 @include bem.utility('#{$dir}-25') { 236 @include bem.utility('#{$dir}-25') {
237 #{$prop}: 25%; 237 #{$prop}: 25%;
238 } 238 }
239 239
240 @include bem.utility('#{$dir}-1px') { 240 @include bem.utility('#{$dir}-1px') {
241 #{$prop}: 1px; 241 #{$prop}: 1px;
242 } 242 }
243 243
244 @include bem.utility('#{$dir}-0') { 244 @include bem.utility('#{$dir}-0') {
245 #{$prop}: 0; 245 #{$prop}: 0;
246 } 246 }
@@ -290,11 +290,17 @@ $-font-sizes: (
290 border-radius: props.get(vars.$rounding--sm); 290 border-radius: props.get(vars.$rounding--sm);
291 } 291 }
292 292
293 @each $mod, $size in $-sizes {
294 @include bem.utility('g-#{$mod}') {
295 gap: props.get($size);
296 }
297 }
298
293 @each $dir, $suffix in $-dirs { 299 @each $dir, $suffix in $-dirs {
294 @include bem.utility('m#{$dir}-auto') { 300 @include bem.utility('m#{$dir}-auto') {
295 margin#{$suffix}: auto; 301 margin#{$suffix}: auto;
296 } 302 }
297 303
298 @include bem.utility('p#{$dir}-auto') { 304 @include bem.utility('p#{$dir}-auto') {
299 padding#{$suffix}: auto; 305 padding#{$suffix}: auto;
300 } 306 }
@@ -303,12 +309,12 @@ $-font-sizes: (
303 @include bem.utility('m#{$dir}-#{$mod}') { 309 @include bem.utility('m#{$dir}-#{$mod}') {
304 margin#{$suffix}: props.get($size); 310 margin#{$suffix}: props.get($size);
305 } 311 }
306 312
307 @include bem.utility('p#{$dir}-#{$mod}') { 313 @include bem.utility('p#{$dir}-#{$mod}') {
308 padding#{$suffix}: props.get($size); 314 padding#{$suffix}: props.get($size);
309 } 315 }
310 } 316 }
311 317
312 @include bem.utility('b#{$dir}-0') { 318 @include bem.utility('b#{$dir}-0') {
313 border#{$suffix}: 0; 319 border#{$suffix}: 0;
314 320
@@ -317,14 +323,14 @@ $-font-sizes: (
317 border#{$suffix}: 0; 323 border#{$suffix}: 0;
318 } 324 }
319 } 325 }
320 326
321 @include bem.suffix('dark') { 327 @include bem.suffix('dark') {
322 @media (prefers-color-scheme: dark) { 328 @media (prefers-color-scheme: dark) {
323 border#{$suffix}: 0; 329 border#{$suffix}: 0;
324 } 330 }
325 } 331 }
326 } 332 }
327 333
328 @include bem.utility('b#{$dir}-1') { 334 @include bem.utility('b#{$dir}-1') {
329 border#{$suffix}: props.get(vars.$border-width--thin) solid props.get(vars.$theme, --border); 335 border#{$suffix}: props.get(vars.$border-width--thin) solid props.get(vars.$theme, --border);
330 336
@@ -333,14 +339,14 @@ $-font-sizes: (
333 border#{$suffix}: props.get(vars.$border-width--thin) solid props.get(vars.$theme, --border); 339 border#{$suffix}: props.get(vars.$border-width--thin) solid props.get(vars.$theme, --border);
334 } 340 }
335 } 341 }
336 342
337 @include bem.suffix('dark') { 343 @include bem.suffix('dark') {
338 @media (prefers-color-scheme: dark) { 344 @media (prefers-color-scheme: dark) {
339 border#{$suffix}: props.get(vars.$border-width--thin) solid props.get(vars.$theme, --border); 345 border#{$suffix}: props.get(vars.$border-width--thin) solid props.get(vars.$theme, --border);
340 } 346 }
341 } 347 }
342 } 348 }
343 349
344 @include bem.utility('b#{$dir}-1-mute') { 350 @include bem.utility('b#{$dir}-1-mute') {
345 border#{$suffix}: props.get(vars.$border-width--thin) solid props.get(vars.$theme, --border-mute); 351 border#{$suffix}: props.get(vars.$border-width--thin) solid props.get(vars.$theme, --border-mute);
346 352
@@ -349,7 +355,7 @@ $-font-sizes: (
349 border#{$suffix}: props.get(vars.$border-width--thin) solid props.get(vars.$theme, --border-mute); 355 border#{$suffix}: props.get(vars.$border-width--thin) solid props.get(vars.$theme, --border-mute);
350 } 356 }
351 } 357 }
352 358
353 @include bem.suffix('dark') { 359 @include bem.suffix('dark') {
354 @media (prefers-color-scheme: dark) { 360 @media (prefers-color-scheme: dark) {
355 border#{$suffix}: props.get(vars.$border-width--thin) solid props.get(vars.$theme, --border-mute); 361 border#{$suffix}: props.get(vars.$border-width--thin) solid props.get(vars.$theme, --border-mute);
@@ -365,7 +371,7 @@ $-font-sizes: (
365 content: ''; 371 content: '';
366 } 372 }
367 } 373 }
368 374
369 @include bem.utility('sr-only') { 375 @include bem.utility('sr-only') {
370 position: absolute; 376 position: absolute;
371 width: 1px; 377 width: 1px;