blob: 8b8acd4dcf092317f5f08a7789c5c7f7fb7b0066 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
@use 'sass:meta';
@use 'iro-sass/src/iro-sass' as iro;
@use 'iro-sass/src/props';
@forward 'media.vars';
@use 'media.vars' as vars;
@mixin styles {
@include props.materialize(meta.module-variables('vars'));
@include iro.bem-layout('media') {
display: flex;
gap: props.get(vars.$gap);
align-items: center;
line-height: 1.4;
@each $mod, $size in vars.$sizes {
@include iro.bem-modifier($mod) {
gap: props.get($size);
}
}
@include iro.bem-modifier('wrap') {
flex-wrap: wrap;
}
@include iro.bem-elem('block') {
flex: 0 0 auto;
@include iro.bem-modifier('shrink', 'main') {
flex-shrink: 1;
min-inline-size: 0;
}
@include iro.bem-modifier('main') {
inline-size: 100%;
}
}
}
}
|