blob: dad4f9878370295eb9ef624cab1f1e8712bc5713 (
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
56
|
@use '../base' as *;
/* --------------------------------
File#: _1_link-card
Title: Link Card
Descr: Link card for app UI
Usage: codyhouse.co/license
-------------------------------- */
.link-card {
text-decoration: none;
color: inherit;
box-shadow: var(--inner-glow), var(--shadow-xs);
&:hover {
box-shadow: var(--inner-glow), var(--shadow-sm);
}
}
.link-card__footer {
position: relative;
overflow: hidden;
height: 60px;
> * {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
}
> *:last-child {
transform: translateY(100%);
opacity: 0;
}
}
.link-card:hover {
.link-card__footer {
> *:first-child {
transform: translateY(-100%);
opacity: 0;
}
> *:last-child {
transform: translateY(0);
opacity: 1;
}
}
}
|