blob: 75f6c4c38a402492d85c2b791e606c996f359cb3 (
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
|
@include namespace('card-list') {
@include store((
--dims: (
--col-width: 17em
)
));
@include layout(namespace()) {
margin-top: $line-height * 2rem;
font-size: 1rem;
@include element('cards') {
display: flex;
flex-direction: column;
gap: 2px;
margin-top: $line-height * .625rem;
filter: drop-shadow(#{prop(--dims --obj-shadow, $global: true)} #{prop(--colors --obj-shadow, $global: true)});
@include modifier('grid', 'gallery') {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(#{prop(--dims --col-width)}, 1fr));
}
@include modifier('grid') {
gap: 6px;
}
@include modifier('gallery') {
gap: 20px;
}
@media print {
filter: none;
}
}
@include element('card') {
box-shadow: none;
}
}
}
|