blob: 2ed121f74b5ba1e2b9b3336a3b1acc03368305d2 (
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
|
@use 'iro-sass/src/index' as iro;
@use 'include-media/dist/include-media' as media;
@use '../functions' as fn;
@include iro.props-namespace('card') {
@include iro.props-store((
--dims: (
--pad-x: fn.global-dim(--spacing --sm),
--pad-y: fn.global-dim(--spacing --xs),
--lg: (
--pad-x: fn.global-dim(--spacing --md),
--pad-y: fn.global-dim(--spacing --sm),
)
)
), 'dims');
@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('lg') {
padding: fn.dim(--lg --pad-y) fn.dim(--lg --pad-x);
gap: fn.dim(--lg --pad-x);
}
@include iro.bem-modifier('flush') {
padding: 0;
}
@include iro.bem-modifier('gapless') {
gap: 0;
}
@include iro.bem-elem('block') {
flex: 0 0 auto;
@include iro.bem-modifier('main') {
flex-shrink: 1;
width: 100%;
}
}
}
}
|