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