|
22 | 22 | mask-size: 22px; |
23 | 23 | -webkit-mask-size: 22px; |
24 | 24 | border: 0px; |
25 | | - background: #777; |
| 25 | + background: var(--ow-color-fg-dark); |
26 | 26 | } |
27 | 27 | .ow-notifications.toggle-btn:hover #ow-notification-btn, |
28 | 28 | .ow-notifications:focus #ow-notification-btn { |
29 | | - background: #df5d43; |
| 29 | + background: var(--ow-color-primary); |
30 | 30 | } |
31 | 31 | #ow-notification-count { |
32 | 32 | position: absolute; |
33 | 33 | top: -4px; |
34 | 34 | left: 30px; |
35 | 35 | min-width: 15px; |
36 | 36 | height: 15px; |
37 | | - background-color: #df5d43; |
| 37 | + background-color: var(--ow-color-primary); |
38 | 38 | display: flex; |
39 | 39 | justify-content: center; |
40 | 40 | align-items: center; |
41 | 41 | padding: 2px 3px; |
42 | 42 | border-radius: 6px; |
43 | | - color: #fff; |
| 43 | + color: var(--ow-color-white); |
44 | 44 | font-size: 10px; |
45 | 45 | box-shadow: 0px 0px 3px #ffffff82 inset; |
46 | 46 | } |
|
68 | 68 | text-transform: none; |
69 | 69 | display: none; |
70 | 70 | cursor: pointer; |
71 | | - border: #fff solid 1px; |
| 71 | + border: var(--ow-color-white) solid 1px; |
72 | 72 | padding: 0.3em 0 0.3em 1em; |
73 | 73 | border-radius: 4px; |
74 | 74 | font-size: 12px; |
75 | | - border-color: rgba(0, 0, 0, 0.25); |
| 75 | + border-color: var(--ow-overlay-25); |
76 | 76 | } |
77 | 77 | #container .ow-notification-toast a { |
78 | 78 | border-bottom: 0 none; |
79 | 79 | } |
80 | 80 | .ow-notification-toast.info, |
81 | 81 | .ow-notification-toast.warning { |
82 | | - background-color: #ededed; |
83 | | - color: #333333; |
| 82 | + background-color: var(--ow-color-fg-light); |
| 83 | + color: var(--ow-color-fg-darker); |
84 | 84 | } |
85 | 85 | #container .ow-notification-toast.info a, |
86 | 86 | #container .ow-notification-toast.warning a { |
87 | | - color: #df5d43; |
| 87 | + color: var(--ow-color-primary); |
88 | 88 | } |
89 | 89 | .ow-notification-toast.error { |
90 | | - background-color: #d04124; |
91 | | - color: #fff; |
92 | | - border-color: rgba(0, 0, 0, 0); |
| 90 | + background-color: var(--ow-color-danger); |
| 91 | + color: var(--ow-color-white); |
| 92 | + border-color: transparent; |
93 | 93 | } |
94 | 94 | #container .ow-notification-toast.error a, |
95 | 95 | #container .ow-notification-toast.success a { |
96 | | - color: #fff; |
| 96 | + color: var(--ow-color-white); |
97 | 97 | } |
98 | 98 | .ow-notification-toast.success { |
99 | | - background-color: #1c8828; |
100 | | - color: #fff; |
101 | | - border-color: rgba(0, 0, 0, 0); |
| 99 | + background-color: var(--ow-color-success); |
| 100 | + color: var(--ow-color-white); |
| 101 | + border-color: transparent; |
102 | 102 | } |
103 | 103 | .ow-notification-toast > div { |
104 | 104 | display: flex; |
|
138 | 138 | text-align: left; |
139 | 139 | width: 425px; |
140 | 140 | text-transform: none; |
141 | | - background-color: #fff; |
| 141 | + background-color: var(--ow-color-white); |
142 | 142 | border-radius: 8px; |
143 | 143 | box-shadow: 4px 4px 12px 0px rgba(0, 0, 0, 0.12); |
144 | | - border: 1px solid rgba(0, 0, 0, 0.07); |
| 144 | + border: 1px solid var(--ow-overlay-7); |
145 | 145 | font-size: 12px; |
146 | 146 | top: 49px; |
147 | 147 | } |
148 | 148 | .ow-notification-dropdown .toggle-btn { |
149 | | - color: #777 !important; |
| 149 | + color: var(--ow-color-fg-dark) !important; |
150 | 150 | text-decoration: none !important; |
151 | 151 | } |
152 | 152 | .ow-notification-dropdown .toggle-btn:active { |
|
158 | 158 | display: flex; |
159 | 159 | justify-content: space-between; |
160 | 160 | font-weight: 500; |
161 | | - border-bottom: 1px solid rgba(0, 0, 0, 0.1); |
| 161 | + border-bottom: 1px solid var(--ow-overlay-10); |
162 | 162 | } |
163 | 163 | .ow-notification-dropdown .disabled { |
164 | | - color: rgba(0, 0, 0, 0.4) !important; |
165 | | - background: #dfdfdf; |
| 164 | + color: var(--ow-overlay-40) !important; |
| 165 | + background: var(--ow-color-fg-light); |
166 | 166 | pointer-events: none; |
167 | 167 | } |
168 | 168 | .ow-notification-wrapper { |
|
175 | 175 | cursor: pointer; |
176 | 176 | padding: 0; |
177 | 177 | transition: 0.4s; |
178 | | - color: #333333; |
| 178 | + color: var(--ow-color-fg-darker); |
179 | 179 | font-weight: bold; |
180 | 180 | } |
181 | 181 | .ow-notification-elem.unread { |
182 | | - background: rgba(0, 0, 0, 0.72); |
183 | | - color: #fff; |
| 182 | + background: var(--ow-overlay-90); |
| 183 | + color: var(--ow-color-white); |
184 | 184 | } |
185 | 185 | .ow-notification-elem p { |
186 | 186 | margin: 5px auto 0px auto; |
|
189 | 189 | .ow-notification-meta { |
190 | 190 | display: flex; |
191 | 191 | justify-content: space-between; |
192 | | - color: #777; |
| 192 | + color: var(--ow-color-fg-dark); |
193 | 193 | -webkit-text-stroke: 0.2px white; |
194 | 194 | padding: 1px 0px; |
195 | 195 | } |
196 | 196 | .ow-notification-date { |
197 | 197 | font-weight: normal; |
198 | 198 | } |
199 | 199 | .ow-notification-elem a { |
200 | | - color: #df5d43 !important; |
| 200 | + color: var(--ow-color-primary) !important; |
201 | 201 | border-bottom: 0 !important; |
202 | 202 | font-weight: bold; |
203 | 203 | } |
204 | 204 | .ow-notification-elem.unread .ow-notification-meta { |
205 | | - color: #fff; |
| 205 | + color: var(--ow-color-white); |
206 | 206 | } |
207 | 207 | .ow-notification-elem:not(.unread):hover, |
208 | 208 | .ow-notification-elem:not(.unread):focus { |
209 | | - background: #f4f7f6; |
| 209 | + background: var(--ow-color-login-bg); |
210 | 210 | } |
211 | 211 | .ow-notification-elem:not(.unread):hover .ow-notification-meta, |
212 | 212 | .ow-notification-elem:not(.unread):focus .ow-notification-meta { |
213 | | - color: #000; |
| 213 | + color: var(--ow-color-black); |
214 | 214 | } |
215 | 215 | .ow-notification-elem.unread:hover, |
216 | 216 | .ow-notification-elem.unread:focus { |
217 | | - background: #000; |
| 217 | + background: var(--ow-color-black); |
218 | 218 | } |
219 | 219 | .ow-no-notifications { |
220 | | - color: #464646; |
| 220 | + color: var(--ow-color-fg-darker); |
221 | 221 | text-align: center; |
222 | 222 | font-weight: bold; |
223 | 223 | font-size: small; |
|
227 | 227 | .ow-notification-elem:focus, |
228 | 228 | .ow-notification-elem a:focus, |
229 | 229 | .ow-notification-dropdown .toggle-btn:focus { |
230 | | - outline: 0.5px dotted rgba(0, 0, 0, 0.25); |
| 230 | + outline: 0.5px dotted var(--ow-overlay-25); |
231 | 231 | } |
232 | 232 | #ow-notification-dropdown-error-container { |
233 | | - color: #c51b25; |
234 | | - background-color: #ffd2d2; |
| 233 | + color: var(--ow-color-danger); |
| 234 | + background-color: var(--ow-color-primary-light); |
235 | 235 | display: none; |
236 | 236 | } |
237 | 237 | #ow-notification-dropdown-error { |
|
299 | 299 | background-image: url("../../openwisp-notifications/images/icons/icon-close.svg"); |
300 | 300 | } |
301 | 301 | .ow-notification-inner { |
302 | | - border-bottom: 1px solid rgba(0, 0, 0, 0.1); |
| 302 | + border-bottom: 1px solid var(--ow-overlay-10); |
303 | 303 | padding: 16px 22px; |
304 | 304 | } |
305 | 305 | .ow-notification-elem:last-child .ow-notification-inner { |
|
308 | 308 |
|
309 | 309 | /* Generic notification dialog */ |
310 | 310 | .ow-overlay-notification { |
311 | | - background-color: rgba(0, 0, 0, 0.6); |
| 311 | + background-color: var(--ow-overlay-60); |
312 | 312 | display: flex; |
313 | 313 | justify-content: center; |
314 | 314 | align-items: center; |
315 | 315 | transition: opacity 0.3s; |
316 | 316 | } |
317 | 317 | .ow-dialog-notification { |
318 | 318 | position: relative; |
319 | | - background-color: white; |
| 319 | + background-color: var(--ow-color-white); |
320 | 320 | padding: 20px; |
321 | 321 | padding-top: 20px; |
322 | 322 | border-radius: 10px; |
|
350 | 350 | right: 10px; |
351 | 351 | } |
352 | 352 | .ow-dialog-close-x:hover { |
353 | | - color: #df5d43; |
| 353 | + color: var(--ow-color-primary); |
354 | 354 | } |
355 | 355 | .ow-message-title { |
356 | | - color: #333; |
| 356 | + color: var(--ow-color-fg-darker); |
357 | 357 | margin-bottom: 10px; |
358 | 358 | } |
359 | 359 | .ow-message-title a { |
360 | | - color: #df5d43; |
| 360 | + color: var(--ow-color-primary); |
361 | 361 | } |
362 | 362 | .ow-message-title a:hover { |
363 | 363 | text-decoration: underline; |
|
0 commit comments