@use 'iro-sass/src/index' as iro; @use 'functions' as fn; @use 'include-media/dist/include-media' as media; $dirs: ( '': '', 't': '-top', 'r': '-right', 'b': '-bottom', 'l': '-left', ); @include iro.bem-utility('d-block') { display: block; } @include iro.bem-utility('d-contents') { display: contents; } @include iro.bem-utility('d-none') { display: none; @each $breakpoint in map-keys(media.$breakpoints) { @include media.media('<=#{$breakpoint}') { @include iro.bem-suffix('#{$breakpoint}-lo') { display: none; } } @include media.media('>#{$breakpoint}') { @include iro.bem-suffix('#{$breakpoint}-hi') { display: none; } } } } @include iro.bem-utility('o-auto') { overflow: auto; } @include iro.bem-utility('elp') { overflow: hidden; text-overflow: ellipsis; } @include iro.bem-utility('p-static') { position: static; } @include iro.bem-utility('p-relative') { position: relative; } @include iro.bem-utility('themed') { background-color: fn.global-color(--bg); color: fn.global-color(--fg); } @each $dir, $suffix in $dirs { @include iro.bem-utility('m#{$dir}-auto') { margin#{$suffix}: auto; } @each $size in (0 10 50 100 200 400) { @include iro.bem-utility('m#{$dir}-#{$size}') { margin#{$suffix}: fn.global-dim(--size --#{$size}); } } } @each $dir, $suffix in $dirs { @include iro.bem-utility('p#{$dir}-auto') { padding#{$suffix}: auto; } @each $size in (0 10 50 100 200 400) { @include iro.bem-utility('p#{$dir}-#{$size}') { padding#{$suffix}: fn.global-dim(--size --#{$size}); } } }