blob: 388d4b97793a11e93154ea34bb036dbb644c6720 (
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
|
@include namespace('project') {
@include store((
--colors: (
--bg: prop(--colors --bg-hi, $global: true),
)
));
@include component(namespace()) {
position: relative;
&::before {
content: '';
display: block;
padding-bottom: 20em;
background-color: prop(--colors --bg);
}
@include multi('element' 'picture') {
display: block;
position: absolute;
z-index: 10;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
object-position: center center;
}
@include element('card') {
position: absolute;
z-index: 20;
right: 1em;
bottom: 1em;
min-width: 15em;
box-shadow: 0 .3em 1em rgba(#000, .35);
}
@include media('<=sm') {
&::after {
background-image: linear-gradient(to top, rgba(#000, .85) 5em, transparent 100%);
}
@include element('card') {
width: calc(100% - 2em);
min-width: 0;
}
}
}
}
|