|
15 | 15 | &__error-message { |
16 | 16 | border: 1px solid var(--ion-color-danger); |
17 | 17 | border-radius: 0.5rem; |
| 18 | + |
18 | 19 | --background: rgba(var(--ion-color-danger-rgb), 0.2); |
| 20 | + |
19 | 21 | color: white; |
20 | 22 | width: 100%; |
21 | 23 |
|
|
28 | 30 | color: var(--ion-color-danger); |
29 | 31 | } |
30 | 32 |
|
31 | | - @media (min-width: 768px) { |
| 33 | + @media (width >= 768px) { |
32 | 34 | --width: 28.125rem; // 450px |
33 | 35 | --height: 65vh; // Use viewport height instead of fixed pixels |
34 | 36 | --border-radius: 1rem; // Matching the image example |
|
38 | 40 | display: flex; |
39 | 41 | flex-direction: column; |
40 | 42 | padding: 1.25rem; |
| 43 | + |
41 | 44 | --background: var(--ion-color-primary); |
42 | 45 | --color: white; |
| 46 | + |
43 | 47 | border-radius: 1rem; |
44 | 48 | } |
45 | 49 |
|
|
58 | 62 |
|
59 | 63 | .upload-modal__close-button { |
60 | 64 | --color: white; |
| 65 | + |
61 | 66 | margin: 0; |
| 67 | + |
62 | 68 | --padding-start: 0.5rem; |
63 | 69 | --padding-end: 0.5rem; |
64 | 70 | } |
|
81 | 87 | justify-content: center; |
82 | 88 | width: 100%; |
83 | 89 | padding: 2rem 1rem; |
84 | | - border: 0.0625rem dashed rgba(255, 255, 255, 0.5); |
| 90 | + border: 0.0625rem dashed rgb(255 255 255 / 50%); |
85 | 91 | border-radius: 0.75rem; |
86 | | - background-color: rgba(255, 255, 255, 0.1); |
| 92 | + background-color: rgb(255 255 255 / 10%); |
87 | 93 | margin: 0.75rem 0; |
88 | 94 |
|
89 | 95 | h2 { |
|
97 | 103 | p { |
98 | 104 | margin-top: 0; |
99 | 105 | margin-bottom: 0.5rem; |
100 | | - color: rgba(255, 255, 255, 0.7); |
| 106 | + color: rgb(255 255 255 / 70%); |
101 | 107 | font-size: 0.875rem; |
102 | 108 | } |
103 | 109 | } |
|
123 | 129 | p { |
124 | 130 | margin-bottom: 0.25rem; |
125 | 131 | font-size: 0.75rem; |
126 | | - color: rgba(255, 255, 255, 0.7); |
| 132 | + color: rgb(255 255 255 / 70%); |
127 | 133 | } |
128 | 134 | } |
129 | 135 |
|
|
136 | 142 | width: 100%; |
137 | 143 | max-width: 12rem; |
138 | 144 | font-weight: 500; |
| 145 | + |
139 | 146 | --background: white; |
140 | 147 | --color: var(--ion-color-primary); |
141 | 148 | --border-radius: 0.5rem; |
| 149 | + |
142 | 150 | height: 2.5rem; |
| 151 | + |
| 152 | + // Override Ionic button internals with a more direct approach |
| 153 | + --background-activated: inherit !important; |
| 154 | + |
| 155 | + &.ion-activated::part(native) { |
| 156 | + background-color: white !important; |
| 157 | + box-shadow: inset 0 1px 3px rgb(0 0 0 / 20%); |
| 158 | + border: 1px solid #abbccd; |
| 159 | + } |
143 | 160 | } |
144 | 161 |
|
145 | 162 | &__selected-file { |
146 | | - background-color: rgba(255, 255, 255, 0.1); |
| 163 | + background-color: rgb(255 255 255 / 10%); |
147 | 164 | border-radius: 0.5rem; |
148 | 165 | padding: 1rem; |
149 | 166 | margin-bottom: 1rem; |
150 | 167 | } |
151 | 168 |
|
152 | | - &__filename { |
153 | | - font-weight: 600; |
154 | | - margin-bottom: 0.5rem; |
155 | | - word-break: break-all; |
156 | | - color: white; |
157 | | - } |
158 | | - |
159 | 169 | &__start-upload { |
160 | 170 | margin-top: 0.5rem; |
| 171 | + |
161 | 172 | --background: white; |
162 | 173 | --color: var(--ion-color-primary); |
163 | 174 | } |
|
171 | 182 | width: 100%; |
172 | 183 | } |
173 | 184 |
|
174 | | - &__file-info { |
175 | | - width: 100%; |
176 | | - text-align: center; |
177 | | - margin-bottom: 1.5rem; |
178 | | - } |
179 | | - |
180 | 185 | &__filesize { |
181 | | - color: rgba(255, 255, 255, 0.7); |
| 186 | + color: rgb(255 255 255 / 70%); |
182 | 187 | font-size: 0.875rem; |
183 | 188 | margin-top: 0; |
184 | 189 | } |
|
190 | 195 | height: 0.5rem; |
191 | 196 | border-radius: 0.25rem; |
192 | 197 | overflow: hidden; |
193 | | - --background: rgba(255, 255, 255, 0.2); |
| 198 | + |
| 199 | + --background: rgb(255 255 255 / 20%); |
194 | 200 | --progress-background: white; |
195 | 201 | } |
196 | 202 | } |
|
204 | 210 | ion-spinner { |
205 | 211 | width: 1rem; |
206 | 212 | height: 1rem; |
| 213 | + |
207 | 214 | --color: white; |
208 | 215 | } |
209 | 216 |
|
210 | 217 | span { |
211 | 218 | font-size: 0.875rem; |
212 | | - color: rgba(255, 255, 255, 0.7); |
| 219 | + color: rgb(255 255 255 / 70%); |
213 | 220 | } |
214 | 221 | } |
215 | 222 |
|
|
231 | 238 | } |
232 | 239 |
|
233 | 240 | p { |
234 | | - color: rgba(255, 255, 255, 0.7); |
| 241 | + color: rgb(255 255 255 / 70%); |
235 | 242 | margin-bottom: 2rem; |
236 | 243 | } |
237 | 244 | } |
|
265 | 272 | margin-top: 1rem; |
266 | 273 | width: 100%; |
267 | 274 | max-width: 15rem; |
| 275 | + |
268 | 276 | --background: white; |
269 | 277 | --color: var(--ion-color-primary); |
270 | 278 | } |
|
282 | 290 | margin-top: 1rem; |
283 | 291 | width: 100%; |
284 | 292 | max-width: 12rem; // Match the upload button's max-width |
| 293 | + |
285 | 294 | --color: white; |
286 | | - --border-color: rgba(255, 255, 255, 0.6); |
287 | | - --background: rgba(255, 255, 255, 0.1); |
| 295 | + --border-color: rgb(255 255 255 / 60%); |
| 296 | + --background: rgb(255 255 255 / 10%); |
288 | 297 | --border-radius: 0.5rem; |
289 | 298 | --border-width: 1px; |
290 | 299 | --border-style: solid; |
| 300 | + |
291 | 301 | height: 2.5rem; // Exactly match the upload button's height (40px) |
292 | 302 | font-weight: 500; |
293 | 303 | text-transform: none; |
|
314 | 324 | padding: 0.75rem; |
315 | 325 | margin: 1.5rem 0; |
316 | 326 | width: 100%; |
317 | | - box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); |
| 327 | + box-shadow: 0 2px 6px rgb(0 0 0 / 10%); |
318 | 328 | max-width: 100%; |
319 | 329 | box-sizing: border-box; |
320 | 330 | } |
|
365 | 375 | height: 0.25rem; |
366 | 376 | border-radius: 0.125rem; |
367 | 377 | margin-top: 0.25rem; |
368 | | - --background: rgba(0, 0, 0, 0.1); |
| 378 | + |
| 379 | + --background: rgb(0 0 0 / 10%); |
369 | 380 | --progress-background: var(--ion-color-primary); |
| 381 | + |
370 | 382 | width: 100%; |
371 | 383 | } |
372 | 384 |
|
|
375 | 387 | display: flex; |
376 | 388 | align-items: center; |
377 | 389 | border-radius: 4px; |
378 | | - background: rgba(41, 69, 196, 0.5); // Darker blue background matching design |
| 390 | + background: rgb(41 69 196 / 50%); // Darker blue background matching design |
379 | 391 | padding: 12px 16px; |
380 | 392 | margin: 5px 0; |
381 | 393 | width: 100%; |
|
0 commit comments