-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
124 lines (114 loc) · 2.07 KB
/
styles.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
121
122
123
124
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&display=swap");
* {
box-sizing: border-box;
}
:root {
--border: #022f40;
--water: #30bced;
--bg: rgb(83, 156, 216);
--fill: #3494e3;
--light: #fffaff;
}
/* Custom Scrollbar */
/* width */
::-webkit-scrollbar {
width: 10px;
}
/* Track */
::-webkit-scrollbar-track {
background: #86c7cf;
}
/* Handle */
::-webkit-scrollbar-thumb {
background: #022f40;
}
/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
background: #183446;
}
body {
font-family: "Montserrat", sans-serif;
background-color: var(--bg);
color: #fff;
margin: 0;
display: flex;
flex-direction: column;
align-items: center;
margin-bottom: 40px;
}
h1 {
margin: 10px 0 0;
}
h3 {
font-weight: 400;
margin: 10px 0;
}
.cup {
background-color: rgba(255, 255, 255, 0.8);
border: 4px solid var(--border);
border-top: none;
color: var(--border);
border-radius: 0 0 30px 30px;
height: 310px;
width: 160px;
margin: 8px 0;
display: flex;
flex-direction: column;
overflow: hidden;
}
.cup-small {
width: 50px;
height: 100px;
border-radius: 0 0 15px 15px;
background-color: rgba(255, 255, 255, 0.8);
cursor: pointer;
font-size: 0.75rem;
font-weight: bold;
align-items: center;
justify-content: center;
text-align: center;
margin: 10px;
padding: 0 24px;
transition: 0.3s ease;
}
.cups {
display: flex;
flex-wrap: wrap;
width: 320px;
align-items: center;
justify-content: center;
}
.full {
background-color: var(--fill);
}
.cup-small.full {
background-color: var(--fill);
color: var(--light);
}
.remaining {
display: flex;
align-items: center;
justify-content: center;
text-align: center;
flex-direction: column;
flex: 1;
}
.remaining span {
font-size: 1.3rem;
font-weight: bold;
}
.remaining small {
font-size: 0.75rem;
font-weight: bold;
}
.percentage {
background-color: var(--fill);
color: var(--light);
display: flex;
align-items: center;
justify-content: center;
font-size: 1.8rem;
font-weight: bold;
height: 0;
transition: 0.3s ease;
}