|
1 | 1 | .app { |
2 | | - min-height: 100vh; |
3 | | - width: 100vw; |
4 | | - background-color: #F8F8F8; /* Use a solid background color from the theme */ |
| 2 | + min-height: calc(100vh - 32px); |
| 3 | + width: calc(100vw - 32px); |
| 4 | + background-color: #f8f8f8; /* Use a solid background color from the theme */ |
5 | 5 | display: flex; |
6 | 6 | flex-direction: column; |
7 | 7 | align-items: center; |
| 8 | + padding: 16px; |
8 | 9 | } |
9 | 10 |
|
10 | 11 | .app-header { |
|
13 | 14 | text-align: center; |
14 | 15 | color: white; |
15 | 16 | margin-bottom: 2rem; |
16 | | - background-color: #5E35B1; /* Use primary color from theme */ |
17 | | - width: 100%; |
| 17 | + background-color: #5e35b1; /* Use primary color from theme */ |
| 18 | + width: 100vw; |
18 | 19 | box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); |
| 20 | + overflow: hidden; |
19 | 21 | } |
20 | 22 |
|
21 | 23 | .app-header h1 { |
|
165 | 167 | align-items: flex-start; |
166 | 168 | } |
167 | 169 |
|
168 | | -.app-loading, .app-error { |
| 170 | +.app-loading, |
| 171 | +.app-error { |
169 | 172 | display: flex; |
170 | 173 | flex-direction: column; |
171 | 174 | align-items: center; |
172 | 175 | justify-content: center; |
173 | 176 | min-height: 100vh; |
174 | 177 | text-align: center; |
175 | 178 | color: #212121; /* Use primary text color from theme */ |
176 | | - background-color: #F8F8F8; /* Use default background color from theme */ |
| 179 | + background-color: #f8f8f8; /* Use default background color from theme */ |
177 | 180 | } |
178 | 181 |
|
179 | 182 | .loading-spinner { |
180 | 183 | width: 50px; |
181 | 184 | height: 50px; |
182 | 185 | border: 5px solid rgba(0, 0, 0, 0.1); /* Lighter border for spinner */ |
183 | | - border-top: 5px solid #5E35B1; /* Primary color for spinner top */ |
| 186 | + border-top: 5px solid #5e35b1; /* Primary color for spinner top */ |
184 | 187 | border-radius: 50%; |
185 | 188 | animation: spin 1s linear infinite; |
186 | 189 | margin-bottom: 1rem; |
187 | 190 | } |
188 | 191 |
|
189 | 192 | @keyframes spin { |
190 | | - 0% { transform: rotate(0deg); } |
191 | | - 100% { transform: rotate(360deg); } |
| 193 | + 0% { |
| 194 | + transform: rotate(0deg); |
| 195 | + } |
| 196 | + 100% { |
| 197 | + transform: rotate(360deg); |
| 198 | + } |
192 | 199 | } |
193 | 200 |
|
194 | 201 | .app-error button { |
195 | 202 | margin-top: 1rem; |
196 | 203 | padding: 0.75rem 1.5rem; |
197 | | - background: #D32F2F; /* Error color from theme */ |
| 204 | + background: #d32f2f; /* Error color from theme */ |
198 | 205 | color: white; |
199 | 206 | border: none; |
200 | 207 | border-radius: 4px; |
|
203 | 210 | } |
204 | 211 |
|
205 | 212 | .app-error button:hover { |
206 | | - background: #C62828; /* Darker error color on hover */ |
| 213 | + background: #c62828; /* Darker error color on hover */ |
207 | 214 | } |
208 | 215 |
|
209 | 216 | @media (max-width: 768px) { |
210 | 217 | .app-main { |
211 | 218 | grid-template-columns: 1fr; |
212 | 219 | gap: 1rem; |
213 | 220 | } |
214 | | - |
| 221 | + |
215 | 222 | .app-header h1 { |
216 | 223 | font-size: 2rem; |
217 | 224 | } |
218 | | - |
| 225 | + |
219 | 226 | .app-header p { |
220 | 227 | font-size: 1rem; |
221 | 228 | } |
222 | | - |
| 229 | + |
223 | 230 | .preset-buttons { |
224 | 231 | flex-direction: column; |
225 | 232 | } |
|
0 commit comments