blob: 953c8c0d71782578c49c0946519e1f3abd5821ce (
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
@use 'iro-sass/src/index' as iro;
@use '../functions' as fn;
@include iro.props-namespace('media') {
@include iro.props-store((
--dims: (
--pad-x: fn.global-dim(--size --150),
--pad-y: fn.global-dim(--size --85),
--75: (
--pad-x: fn.global-dim(--size --100),
--pad-y: fn.global-dim(--size --50),
),
--200: (
--pad-x: fn.global-dim(--size --300),
--pad-y: fn.global-dim(--size --150),
),
--300: (
--pad-x: fn.global-dim(--size --450),
--pad-y: fn.global-dim(--size --225),
)
)
));
@include iro.bem-layout(iro.props-namespace()) {
display: flex;
align-items: center;
padding: fn.dim(--pad-y) fn.dim(--pad-x);
gap: fn.dim(--pad-x);
line-height: 1.4;
@include iro.bem-modifier('75') {
padding: fn.dim(--75 --pad-y) fn.dim(--75 --pad-x);
gap: fn.dim(--75 --pad-x);
}
@include iro.bem-modifier('200') {
padding: fn.dim(--200 --pad-y) fn.dim(--200 --pad-x);
gap: fn.dim(--200 --pad-x);
}
@include iro.bem-modifier('300') {
padding: fn.dim(--300 --pad-y) fn.dim(--300 --pad-x);
gap: fn.dim(--300 --pad-x);
}
@include iro.bem-modifier('flush') {
padding: 0;
}
@include iro.bem-modifier('gapless') {
gap: 0;
}
@include iro.bem-modifier('wrap') {
flex-wrap: wrap;
}
@include iro.bem-elem('block') {
flex: 0 0 auto;
@include iro.bem-modifier('main') {
flex-shrink: 1;
inline-size: 100%;
min-inline-size: 0;
}
}
}
}
|