diff options
Diffstat (limited to 'src_old/layouts/_media.scss')
-rw-r--r-- | src_old/layouts/_media.scss | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/src_old/layouts/_media.scss b/src_old/layouts/_media.scss new file mode 100644 index 0000000..c42aa3e --- /dev/null +++ b/src_old/layouts/_media.scss | |||
@@ -0,0 +1,47 @@ | |||
1 | @use 'iro-sass/src/index' as iro; | ||
2 | @use '../functions' as fn; | ||
3 | |||
4 | $sizes: 'gapless' 'sm' 'lg' 'xl' !default; | ||
5 | |||
6 | @include iro.props-namespace('media') { | ||
7 | @include iro.props-store(( | ||
8 | --dims: ( | ||
9 | --gap: fn.global-dim(--size --150), | ||
10 | |||
11 | --gapless: 0, | ||
12 | --sm: fn.global-dim(--size --100), | ||
13 | --lg: fn.global-dim(--size --300), | ||
14 | --xl: fn.global-dim(--size --450), | ||
15 | ) | ||
16 | )); | ||
17 | |||
18 | @include iro.bem-layout(iro.props-namespace()) { | ||
19 | display: flex; | ||
20 | align-items: center; | ||
21 | gap: fn.dim(--gap); | ||
22 | line-height: 1.4; | ||
23 | |||
24 | @each $size in $sizes { | ||
25 | @include iro.bem-modifier($size) { | ||
26 | gap: fn.dim(--#{$size}); | ||
27 | } | ||
28 | } | ||
29 | |||
30 | @include iro.bem-modifier('wrap') { | ||
31 | flex-wrap: wrap; | ||
32 | } | ||
33 | |||
34 | @include iro.bem-elem('block') { | ||
35 | flex: 0 0 auto; | ||
36 | |||
37 | @include iro.bem-modifier('shrink', 'main') { | ||
38 | flex-shrink: 1; | ||
39 | min-inline-size: 0; | ||
40 | } | ||
41 | |||
42 | @include iro.bem-modifier('main') { | ||
43 | inline-size: 100%; | ||
44 | } | ||
45 | } | ||
46 | } | ||
47 | } | ||