-
Notifications
You must be signed in to change notification settings - Fork 45
/
style.css
78 lines (67 loc) · 1.17 KB
/
style.css
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
77
78
body {
background-color: black;
}
#app {
font-family: Avenir, Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: center;
color: white;
margin-top: 60px;
}
/* 🥇 */
#grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
grid-gap: 1rem;
justify-items: center;
align-items: center;
}
.flip-card {
width: 100%;
height: 50vh;
perspective: 1000px;
}
/* 🥈 */
.flip-card-inner {
width: 100%;
height: 100%;
text-align: center;
transition: transform 0.6s;
transform-style: preserve-3d;
border-radius: 0.5rem;
}
.flip-card:hover .flip-card-inner {
transform: rotateY(180deg);
}
/* 🥉 */
.flip-card-front,
.flip-card-back {
position: absolute;
width: 100%;
height: 100%;
backface-visibility: hidden;
border-radius: 0.5rem;
background-color: white;
color: black;
}
.flip-card-back {
transform: rotateY(180deg);
}
img {
margin: 0px;
padding: 0px;
height: 20vh;
overflow: hidden;
border-top-left-radius: 0.5rem;
border-top-right-radius: 0.5rem;
width: 100%;
}
.description {
padding: 10px;
}
h2 {
background-color: lightgray;
padding: 5px;
margin-top: -6px;
}