-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
90 lines (79 loc) · 2.33 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
79
80
81
82
83
84
85
86
87
88
89
90
body {
min-height: 96vh;
min-width: 98vw;
background: #12181f;
color: white;
}
h1 {
text-align: center;
font-weight: 700;
font-size: 30px;
}
p {
text-align: center;
font-size: 20px;
font-weight: bold;
}
.actions {
width: 50%;
justify-self: center;
display: flex;
justify-content: space-between;
margin-bottom: 1rem;
}
.actions button {
padding: 2px 10px;
font-size: 30px;
border-radius: 10px;
background: #27ae60;
color: white;
font-size: 15px;
border: none;
cursor: pointer;
width: 100px;
height: 50px;
}
.grid-container {
display: grid;
justify-content: center;
gap: 16px;
grid-template-columns: repeat(9, 80px);
grid-template-rows: repeat(2, calc(80px / 2 + 2));
}
.card {
height: calc(100px / 2 * 2);
width: 80px;
border-radius: 10px;
background: white;
position: relative;
transform-style: preserve-3d;
transition: all 0.5s ease-in-out;
}
.front-image {
width: 60px;
height: 60px;
}
.card.flipped {
transform: rotateY(180deg);
}
.front, .back {
backface-visibility: hidden;
position: absolute;
border-radius: 10px;
top: 0;
left: 0;
height: 100%;
width: 100%;
}
.card .front {
display: flex;
justify-content: center;
align-items: center;
transform: rotateY(180deg);
}
.card .back {
background-image: url("data:image/svg+xml,<svg id='patternId' width='100%' height='100%' xmlns='http://www.w3.org/2000/svg'><defs><pattern id='a' patternUnits='userSpaceOnUse' width='25' height='25' patternTransform='scale(2) rotate(0)'><rect x='0' y='0' width='100%' height='100%' fill='hsla(0,0%,100%,1)'/><path d='M25 30a5 5 0 110-10 5 5 0 010 10zm0-25a5 5 0 110-10 5 5 0 010 10zM0 30a5 5 0 110-10 5 5 0 010 10zM0 5A5 5 0 110-5 5 5 0 010 5zm12.5 12.5a5 5 0 110-10 5 5 0 010 10z' stroke-width='1' stroke='none' fill='hsla(174, 100%, 29%, 1)'/><path d='M0 15a2.5 2.5 0 110-5 2.5 2.5 0 010 5zm25 0a2.5 2.5 0 110-5 2.5 2.5 0 010 5zM12.5 2.5a2.5 2.5 0 110-5 2.5 2.5 0 010 5zm0 25a2.5 2.5 0 110-5 2.5 2.5 0 010 5z' stroke-width='1' stroke='none' fill='hsla(187, 100%, 42%, 1)'/></pattern></defs><rect width='800%' height='800%' transform='translate(0,0)' fill='url(%23a)'/></svg>");
background-position: center;
background-size: cover;
backface-visibility: hidden;
}