| Akron | 7636edf | 2025-11-04 12:44:53 +0100 | [diff] [blame] | 1 | @use "../util"; |
| 2 | @use "alertify/alertify-core"; | ||||
| 3 | @use "alertify/alertify-default"; | ||||
| 4 | @use "../base/colors"; | ||||
| 5 | @use "../base/lengths"; | ||||
| Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 6 | |
| Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 7 | /** |
| 8 | * Alertify styles. | ||||
| 9 | */ | ||||
| Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 10 | |
| 11 | article.alertify-log-warn { | ||||
| Akron | 7636edf | 2025-11-04 12:44:53 +0100 | [diff] [blame] | 12 | background-color: colors.$dark-orange; |
| Akron | c0a2da8 | 2018-07-04 15:27:37 +0200 | [diff] [blame] | 13 | code.src { |
| Akron | 7636edf | 2025-11-04 12:44:53 +0100 | [diff] [blame] | 14 | color: colors.$darkest-orange; |
| Akron | c0a2da8 | 2018-07-04 15:27:37 +0200 | [diff] [blame] | 15 | } |
| Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 16 | } |
| Akron | c0a2da8 | 2018-07-04 15:27:37 +0200 | [diff] [blame] | 17 | |
| 18 | article.alertify-log code.src { | ||||
| 19 | display: block; | ||||
| Akron | 7636edf | 2025-11-04 12:44:53 +0100 | [diff] [blame] | 20 | color: colors.$dark-red; |
| Akron | c0a2da8 | 2018-07-04 15:27:37 +0200 | [diff] [blame] | 21 | font-size: 70%; |
| Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 22 | } |
| 23 | |||||
| 24 | .alertify-log-error { | ||||
| Akron | 7636edf | 2025-11-04 12:44:53 +0100 | [diff] [blame] | 25 | background-color: colors.$alert-red; |
| Akron | cb5c171 | 2021-01-26 18:01:04 +0100 | [diff] [blame] | 26 | } |
| 27 | |||||
| 28 | #notifications { | ||||
| 29 | display: none; | ||||
| 30 | } | ||||
| 31 | |||||
| 32 | // TODO: | ||||
| 33 | // This differs from alertify messages and should be united | ||||
| 34 | div.notify { | ||||
| 35 | position: relative; | ||||
| 36 | margin: .5em auto; | ||||
| 37 | display: block; | ||||
| 38 | padding: .5em; | ||||
| 39 | |||||
| Akron | 7636edf | 2025-11-04 12:44:53 +0100 | [diff] [blame] | 40 | border-radius: lengths.$standard-border-radius; |
| Akron | cb5c171 | 2021-01-26 18:01:04 +0100 | [diff] [blame] | 41 | max-width: 30em; |
| Akron | 7636edf | 2025-11-04 12:44:53 +0100 | [diff] [blame] | 42 | background-color: colors.$alert-red; |
| 43 | color: colors.$nearly-white; | ||||
| Akron | cb5c171 | 2021-01-26 18:01:04 +0100 | [diff] [blame] | 44 | &.notify-success { |
| Akron | 7636edf | 2025-11-04 12:44:53 +0100 | [diff] [blame] | 45 | background-color: colors.$ids-green-1 |
| Akron | cb5c171 | 2021-01-26 18:01:04 +0100 | [diff] [blame] | 46 | } |
| 47 | &.notify-warn { | ||||
| Akron | 7636edf | 2025-11-04 12:44:53 +0100 | [diff] [blame] | 48 | background-color: colors.$ids-orange-2 |
| Akron | cb5c171 | 2021-01-26 18:01:04 +0100 | [diff] [blame] | 49 | } |
| Akron | c0a2da8 | 2018-07-04 15:27:37 +0200 | [diff] [blame] | 50 | } |