-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
120 lines (102 loc) · 1.88 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
body {
padding: 2rem;
}
.card-content {
padding: 1rem;
display:flex;
justify-content:center;
align-items:center;
}
.card-content button{
display:none;
font-size:2rem;
margin-left:.5rem;
}
.card-row {
display: flex;
justify-content: start;
align-items: center;
flex-wrap: wrap;
gap: .25rem;
}
.button-row{
display: flex;
justify-content: start;
align-items: center;
flex-wrap: wrap;
gap: .25rem;
margin-bottom:.5rem;
}
button{
appearance: none;
background-color:deepskyblue;
border: none;
border-radius: 5px;
outline: none;
cursor: pointer;
padding: .5rem;
transition: all 0.2s;
}
button:hover{
background-color: hsl(195, 100%, 60%);
color: white;
}
.card {
border: 1px solid #eee;
border-radius: 5px;
margin: .5rem;
background-color: hsl(0, 0%, 97%);
transition: all 0.2s;
}
.card-clicked{
width:60%;
}
.card-clicked button{
display:block;
}
.card-hidden{
display:none;
}
.rect-img-container {
position: relative;
}
.rect-img-container::after {
content: "";
display: block;
padding-bottom: 100%;
}
.card-clicked .rect-img-container::after{
padding-bottom:60%;
}
.rect-img {
position: absolute;
width: 100%;
height: 100%;
object-fit: cover;
}
.timer {
width: 200px;
height: 200px;
background: conic-gradient(#444 0deg, #eee 0deg 170deg);
border-radius: 100%;
display: flex;
justify-content: center;
align-items: center;
transform: rotate(180deg) scaleX(-1);
}
.cutout {
width: 165px;
height: 165px;
background: white;
border-radius: 100%;
display: flex;
justify-content: center;
align-items: center;
}
.amount {
font-size: 2rem;
font-weight: bold;
font-family: 'Lucida Sans', sans-serif;
text-align: center;
transform: rotate(180deg) scaleX(-1);
}