-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
200 lines (170 loc) · 3.68 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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
* {
box-sizing: border-box;
font-family: 'Space Mono';
}
:root {
--strong-cyan: hsl(172, 67%, 45%);
--very-dark-cyan: hsl(183, 100%, 15%);
--dark-grayish-cyan: hsl(186, 14%, 43%);
--grayish-cyan: hsl(184, 14%, 56%);
--light-grayish-cyan: hsl(185, 41%, 84%);
--very-light-grayish-cyan: hsl(189, 41%, 97%);
--white: hsl(0, 0%, 100%);
}
body {
margin: 0;
background-color: var(--light-grayish-cyan);
display: flex;
flex-direction: column;
align-items: center;
font-weight: 700;
}
.logo {
padding: 3rem;
}
.content {
background-color: var(--white);
border-radius: 18px 18px 0 0;
width: 100%;
display: flex;
flex-direction: column;
padding: 1.75rem;
justify-content: space-between;
}
.light-section {
flex: 6 1px;
margin-bottom: 1rem;
}
label {
display: block;
color: var(--dark-grayish-cyan);
margin-bottom: 0.5rem;
}
input {
display: block;
text-align: right;
border: none;
outline: none;
background-color: var(--very-light-grayish-cyan);
color: var(--very-dark-cyan);
width: 100%;
padding: 0.5rem 1rem 0.5rem 3rem;
font-size: 24px;
border-radius: 7px;
background-repeat: no-repeat;
background-size: 20px;
background-position: 1rem center;
margin-bottom: 2rem;
caret-color: var(--strong-cyan);
cursor: pointer;
}
input:hover,
input:focus {
outline: 3px solid var(--strong-cyan);
}
input::placeholder {
color: var(--grayish-cyan);
}
.button-container {
display: flex;
flex-wrap: wrap;
gap: 1rem;
justify-content: stretch;
}
.button-container button,
.button-container input {
background-color: var(--very-dark-cyan);
border: none;
flex: 1 1 7rem;
height: 3rem;
font-size: 24px;
border-radius: 10px;
color: var(--white);
}
.button-container button[selected] {
background-color: var(--strong-cyan);
}
.button-container input {
background-color: var(--very-light-grayish-cyan);
padding: 0.5rem;
text-align: center;
color: var(--very-dark-cyan);
}
.button-container input:focus {
text-align: right;
}
.button-container button:hover,
.button-container button:active {
color: var(--very-dark-cyan);
background-color: var(--light-grayish-cyan);
}
.dark-section {
background-color: var(--very-dark-cyan);
padding: 1.75rem;
border-radius: 18px;
flex: 3 1px;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.total-category{
display: flex;
justify-content: space-between;
}
.total-category h2 {
font-size: 36px;
color: var(--strong-cyan);
}
.total-category h2,
.total-category h3,
.total-category h4 {
margin: 0;
}
.total-category {
margin-bottom: 2rem;
}
.total-category h3 {
color: var(--white);
}
.total-category h4 {
color: var(--dark-grayish-cyan);
}
#resetButton {
background-color: var(--strong-cyan);
color: var(--very-dark-cyan);
border: none;
outline: none;
border-radius: 5px;
padding: 0.5rem;
}
#resetButton:hover,
#resetButton:active {
background-color: var(--light-grayish-cyan);
}
#resetButton[emptyState] {
background-color: var(--dark-grayish-cyan);
cursor: not-allowed;
}
@media only screen and (min-width: 768px) {
body {
padding-top: 3rem;
}
.content {
width: 65vw;
height: 60vh;
border-radius: 18px;
flex-direction: row;
}
.light-section {
flex: 4 1px;
padding: 0.5rem;
margin-bottom: 0;
padding-right: 3rem;
}
.total-category:nth-child(1) {
margin-bottom: 3rem;
}
.total-category:nth-child(2) {
margin-bottom: 0;
}
}