|
1 | 1 | .jp-alert {
|
2 |
| - position: fixed; |
3 |
| - bottom: 2rem; |
4 |
| - left: 50%; |
5 |
| - transform: translateX(-50%); |
| 2 | + position: fixed; |
| 3 | + bottom: 2rem; |
| 4 | + left: 50%; |
| 5 | + transform: translateX(-50%); |
| 6 | + display: flex; |
| 7 | + flex-wrap: wrap; |
| 8 | + background-color: var(--background-primary); |
| 9 | + box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08); |
| 10 | + border-radius: 0.25rem; |
| 11 | + max-width: 40rem; |
| 12 | + width: 100%; |
| 13 | + z-index: 10000; |
| 14 | + |
| 15 | + &-content { |
| 16 | + flex: 1 1 0; |
6 | 17 | display: flex;
|
7 |
| - flex-wrap: wrap; |
8 |
| - background-color: white; |
9 |
| - box-shadow: 0 2px 6px rgba(0,0,0,.08); |
10 |
| - border-radius: .25rem; |
11 |
| - max-width: 40rem; |
12 |
| - width: 100%; |
| 18 | + flex-direction: column; |
| 19 | + gap: 0.5rem; |
| 20 | + padding: 1rem; |
13 | 21 |
|
14 |
| - &-content { |
15 |
| - flex: 1 1 0; |
16 |
| - display: flex; |
17 |
| - flex-direction: column; |
18 |
| - gap: .5rem; |
19 |
| - padding: 1rem; |
| 22 | + &-title { |
| 23 | + font-size: 1.5rem; |
| 24 | + } |
| 25 | + } |
20 | 26 |
|
21 |
| - &-title { |
22 |
| - font-size: 1.5rem; |
23 |
| - } |
24 |
| - &-message { |
25 |
| - } |
| 27 | + &-close { |
| 28 | + padding: 0.5rem; |
| 29 | + &-button { |
| 30 | + display: flex; |
| 31 | + justify-content: center; |
| 32 | + align-items: center; |
| 33 | + width: 0.75rem; |
| 34 | + height: 0.75rem; |
| 35 | + border: none; |
| 36 | + padding: 0; |
| 37 | + cursor: pointer; |
| 38 | + background-color: transparent; |
26 | 39 | }
|
| 40 | + } |
27 | 41 |
|
28 |
| - &-close { |
29 |
| - padding: .5rem; |
30 |
| - &-button { |
31 |
| - display: flex; |
32 |
| - justify-content: center; |
33 |
| - align-items: center; |
34 |
| - width: .75rem; |
35 |
| - height: .75rem; |
36 |
| - border: none; |
37 |
| - padding: 0; |
38 |
| - cursor: pointer; |
39 |
| - background-color: transparent; |
40 |
| - } |
| 42 | + &-progress { |
| 43 | + width: 100%; |
| 44 | + &-bar { |
| 45 | + animation: fill-bar 5s linear; |
| 46 | + height: 3px; |
| 47 | + background-color: var(--secondary-color); |
41 | 48 | }
|
| 49 | + } |
42 | 50 |
|
43 |
| - &-progress { |
44 |
| - width: 100%; |
45 |
| - &-bar { |
46 |
| - animation: fill-bar 5s linear; |
47 |
| - height: 3px; |
48 |
| - background-color: var(--basic-c); |
49 |
| - } |
| 51 | + &-warning { |
| 52 | + .jp-alert-progress-bar { |
| 53 | + background-color: var(--warning-color); |
50 | 54 | }
|
51 | 55 |
|
52 |
| - &-warning { |
53 |
| - .jp-alert-progress-bar { |
54 |
| - background-color: var(--warning-c); |
55 |
| - } |
| 56 | + .jp-alert-content-title, |
| 57 | + .jp-alert-content-message { |
| 58 | + color: var(--warning-color); |
| 59 | + } |
| 60 | + } |
| 61 | + &-success { |
| 62 | + .jp-alert-progress-bar { |
| 63 | + background-color: var(--success-color); |
56 | 64 | }
|
57 |
| - &-success { |
58 |
| - .jp-alert-progress-bar { |
59 |
| - background-color: var(--success-c); |
60 |
| - } |
| 65 | + |
| 66 | + .jp-alert-content-title, |
| 67 | + .jp-alert-content-message { |
| 68 | + color: var(--success-color); |
61 | 69 | }
|
| 70 | + } |
62 | 71 | }
|
63 | 72 |
|
64 | 73 | @keyframes fill-bar {
|
65 |
| - from { |
66 |
| - width: 0; |
67 |
| - } |
68 |
| - to { |
69 |
| - width: 100%; |
70 |
| - } |
| 74 | + from { |
| 75 | + width: 0; |
| 76 | + } |
| 77 | + to { |
| 78 | + width: 100%; |
| 79 | + } |
| 80 | +} |
| 81 | + |
| 82 | +@media (max-width: 700px) { |
| 83 | + max-width: calc(100vw - 2rem); |
71 | 84 | }
|
0 commit comments