blob: a0220c35e37a1b9d4b8ccfeaccfae3fd9db9464f (
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
|
@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),
--sm: (
--pad-x: fn.global-dim(--spacing --xs),
--pad-y: fn.global-dim(--spacing --xxs),
),
--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('sm') {
padding: fn.dim(--sm --pad-y) fn.dim(--sm --pad-x);
gap: fn.dim(--sm --pad-x);
}
@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%;
}
}
}
}
|