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
72
73
74
75
76
|
@use 'iro-sass/src/index' as iro;
@use 'iro-design/src/functions' as fn;
@use 'include-media/dist/include-media' as media;
@include iro.props-namespace('card-list') {
@include iro.props-store((
--dims: (
--margin-top: fn.global-dim(--size --700),
--spacing: fn.global-dim(--size --200),
--gap: fn.global-dim(--size --40),
--header: (
--gap: fn.global-dim(--size --400),
),
--grid-2: (
--gap: fn.global-dim(--size --75),
--col-width: fn.global-dim(--size --3200),
),
--grid-3: (
--gap: fn.global-dim(--size --75),
--col-width: fn.global-dim(--size --2800),
),
--gallery-2: (
--gap: fn.global-dim(--size --150),
--col-width: fn.global-dim(--size --3200),
),
--gallery-3: (
--gap: fn.global-dim(--size --150),
--col-width: fn.global-dim(--size --2800),
),
)
), 'dims');
@include iro.bem-layout(iro.props-namespace()) {
margin-top: fn.dim(--margin-top);
font-size: fn.global-dim(--font-size --100);
@include iro.bem-elem('header') {
display: flex;
align-items: center;
gap: fn.dim(--header --gap);
margin-top: fn.dim(--margin-top);
}
@include iro.bem-elem('header-section') {
width: 100%;
@include iro.bem-next-twin-elem {
flex: 1 0 auto;
width: auto;
}
}
@include iro.bem-elem('footer') {
margin-top: fn.dim(--spacing);
}
@include iro.bem-elem('cards') {
display: flex;
flex-direction: column;
gap: fn.dim(--gap);
margin-top: fn.dim(--spacing);
@include media.media('<=sm') {
gap: fn.dim(--grid-2 --gap);
}
@each $mode in 'grid-2' 'grid-3' 'gallery-2' 'gallery-3' {
@include iro.bem-modifier($mode) {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(fn.dim('--#{$mode}' --col-width), 1fr));
gap: fn.dim('--#{$mode}' --gap);
}
}
}
}
}
|