Notices.module.scss
106 lines
| 1 | |
| 2 | .snackbarContainer { |
| 3 | position: fixed; |
| 4 | z-index: 9999; |
| 5 | bottom: 10px; |
| 6 | display: flex; |
| 7 | flex-direction: column-reverse; |
| 8 | gap: 10px; |
| 9 | width: 300px; |
| 10 | left: 50%; |
| 11 | transform: translateY(-50%); |
| 12 | |
| 13 | .snackbar { |
| 14 | gap: 20px; |
| 15 | display: flex; |
| 16 | flex-direction: row; |
| 17 | border-radius: var(--givewp-spacing-1); |
| 18 | padding: var(--givewp-spacing-3) var(--givewp-spacing-4); |
| 19 | box-shadow: 0 5px 5px #b6b6b6; |
| 20 | align-items: center; |
| 21 | justify-content: space-between; |
| 22 | |
| 23 | a { |
| 24 | color: #fff; |
| 25 | padding: 0; |
| 26 | line-height: 0.5; |
| 27 | text-decoration: none; |
| 28 | } |
| 29 | } |
| 30 | |
| 31 | .type-error-snackbar { |
| 32 | background-color: #dc1e1e; |
| 33 | color: #fff; |
| 34 | } |
| 35 | |
| 36 | .type-info-snackbar { |
| 37 | background-color: #000; |
| 38 | color: #fff; |
| 39 | white-space: nowrap; |
| 40 | } |
| 41 | |
| 42 | .type-warning-snackbar { |
| 43 | background-color: #f29718; |
| 44 | color: #1a0f00; |
| 45 | |
| 46 | a { |
| 47 | color: #1a0f00; |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | } |
| 52 | |
| 53 | .noticeContainer { |
| 54 | display: flex; |
| 55 | flex-direction: column-reverse; |
| 56 | padding: var(--givewp-spacing-4) var(--givewp-spacing-6) 0; |
| 57 | gap: 10px; |
| 58 | |
| 59 | .notice { |
| 60 | gap: 10px; |
| 61 | display: flex; |
| 62 | flex-direction: row; |
| 63 | border-radius: 4px; |
| 64 | padding: var(--givewp-spacing-2) var(--givewp-spacing-3); |
| 65 | align-items: center; |
| 66 | justify-content: space-between; |
| 67 | border-width: 1px 1px 1px 4px; |
| 68 | border-style: solid; |
| 69 | font-size: 14px; |
| 70 | |
| 71 | a { |
| 72 | padding: 0; |
| 73 | line-height: 0.5; |
| 74 | text-decoration: none; |
| 75 | } |
| 76 | } |
| 77 | |
| 78 | .type-warning { |
| 79 | background-color: #fffaf2; |
| 80 | color: #1a0f00; |
| 81 | border-color: #f29718; |
| 82 | |
| 83 | a { |
| 84 | color: #1a0f00; |
| 85 | } |
| 86 | } |
| 87 | |
| 88 | .type-info { |
| 89 | border-color: #0c7ff2; |
| 90 | background-color: #f2f9ff; |
| 91 | |
| 92 | svg > path { |
| 93 | fill: #0c7ff2; |
| 94 | } |
| 95 | } |
| 96 | |
| 97 | // Note: other notification types styles are not defined. You can define them below |
| 98 | } |
| 99 | |
| 100 | |
| 101 | .notificationContent { |
| 102 | display: flex; |
| 103 | align-items: center; |
| 104 | gap: 10px; |
| 105 | } |
| 106 |