_helpers.scss
2 years ago
_modals.scss
2 years ago
_notifications.scss
1 year ago
_variables.scss
2 years ago
_notifications.scss
103 lines
| 1 | @use "variables" as *; |
| 2 | //@use "helpers" as *; |
| 3 | |
| 4 | .nitro-notification { |
| 5 | margin-bottom: $gutter; |
| 6 | .notification-inner { |
| 7 | display: flex; |
| 8 | align-items: center; |
| 9 | justify-content: space-between; |
| 10 | color: $gray-700; |
| 11 | background-color: $gray-100; |
| 12 | padding: $gutter; |
| 13 | //width: 100%; |
| 14 | } |
| 15 | p { |
| 16 | color: $gray-700; |
| 17 | margin: 0; |
| 18 | } |
| 19 | .title-wrapper { |
| 20 | display: flex; |
| 21 | align-items: center; |
| 22 | } |
| 23 | .icon { |
| 24 | margin-right: 0.5rem; |
| 25 | width: 1rem; |
| 26 | height: 1rem; |
| 27 | } |
| 28 | .title { |
| 29 | font-weight: bold; |
| 30 | font-size: 0.875rem; |
| 31 | text-transform: capitalize; |
| 32 | margin: 0; |
| 33 | } |
| 34 | &.notification-danger .notification-inner { |
| 35 | background-color: $red-100; |
| 36 | .btn.btn-secondary { |
| 37 | @include btn_color($red-600); |
| 38 | &:hover { |
| 39 | background-color: $red-200; |
| 40 | } |
| 41 | } |
| 42 | } |
| 43 | &.notification-warning .notification-inner { |
| 44 | background-color: $yellow-100; |
| 45 | .btn.btn-secondary { |
| 46 | @include btn_color($yellow-700); |
| 47 | &:hover { |
| 48 | background-color: $yellow-200; |
| 49 | } |
| 50 | } |
| 51 | } |
| 52 | &.notification-success .notification-inner { |
| 53 | background-color: #e9fffb; |
| 54 | .btn.btn-secondary { |
| 55 | @include btn_color($green-500); |
| 56 | &:hover { |
| 57 | background-color: $green-100; |
| 58 | } |
| 59 | } |
| 60 | } |
| 61 | &.notification-info .notification-inner { |
| 62 | background-color: $purple-100; |
| 63 | .btn.btn-secondary { |
| 64 | @include btn_color($purple-700); |
| 65 | &:hover { |
| 66 | background-color: $purple-700; |
| 67 | color: #fff; |
| 68 | } |
| 69 | } |
| 70 | } |
| 71 | .msg { |
| 72 | .btn { |
| 73 | margin-left: 1rem; |
| 74 | } |
| 75 | } |
| 76 | .actions { |
| 77 | flex-grow: 1; |
| 78 | display: flex; |
| 79 | flex-wrap: nowrap; |
| 80 | justify-content: flex-end; |
| 81 | margin-left: 1rem; |
| 82 | } |
| 83 | .btn { |
| 84 | @include btn(); |
| 85 | line-height: 1.5; |
| 86 | text-decoration: none; |
| 87 | min-height: initial; |
| 88 | white-space: nowrap; |
| 89 | + .btn { |
| 90 | margin-left: 0.25rem; |
| 91 | } |
| 92 | } |
| 93 | } |
| 94 | body:not(.toplevel_page_nitropack) { |
| 95 | .nitro-notification { |
| 96 | margin-top: 0.5rem; |
| 97 | |
| 98 | .notification-inner { |
| 99 | width: calc(100% - 70px); |
| 100 | } |
| 101 | } |
| 102 | } |
| 103 |