notice.css
172 lines
| 1 | :root { |
| 2 | --ea11y-notice-dismiss-icon: #1e1e1e; |
| 3 | --ea11y-notice-error: #dc2626; |
| 4 | --ea11y-notice-error-bg: #fde8ec; |
| 5 | --ea11y-notice-error-custom-border: #93003f; |
| 6 | --ea11y-notice-white: #fff; |
| 7 | --ea11y-notice-warning-bg: #fef8ee; |
| 8 | --ea11y-notice-warning-border: #f0b849; |
| 9 | --ea11y-notice-warning-btn: #bb5b1d; |
| 10 | --ea11y-notice-warning-btn-hover: rgb(187 91 29 / 0.08); |
| 11 | --ea11y-notice-success-bg: #eff9f1; |
| 12 | --ea11y-notice-success-border: #4ab866; |
| 13 | --ea11y-notice-info-bg: #f1f6fb; |
| 14 | --ea11y-notice-info-border: #0288d1; |
| 15 | --ea11y-notice-pink-border: #d8d8da; |
| 16 | --ea11y-notice-pink-accent: #ff7be5; |
| 17 | --ea11y-notice-pink-text: #444950; |
| 18 | --ea11y-notice-pink-link: #d004d4; |
| 19 | --ea11y-notice-pink-icon-bg: #fae8ff; |
| 20 | --ea11y-notice-heading: #0c0d0e; |
| 21 | --ea11y-notice-subheading: #6d7882; |
| 22 | --ea11y-notice-error-btn-hover: rgb(220 38 38 / 0.08); |
| 23 | } |
| 24 | |
| 25 | .ea11y__notice { |
| 26 | padding: 12px; |
| 27 | border: none; |
| 28 | } |
| 29 | |
| 30 | .ea11y__notice p { |
| 31 | margin: 0; |
| 32 | } |
| 33 | |
| 34 | .ea11y__notice .notice-dismiss::before { |
| 35 | content: "\f335"; |
| 36 | font-family: dashicons, sans-serif; |
| 37 | font-weight: 400; |
| 38 | font-size: 22px; |
| 39 | line-height: 24px; |
| 40 | color: var(--ea11y-notice-dismiss-icon); |
| 41 | width: 24px; |
| 42 | } |
| 43 | |
| 44 | .ea11y__notice button:not(.notice-dismiss) { |
| 45 | display: block; |
| 46 | padding: 0; |
| 47 | background: none; |
| 48 | color: var(--ea11y-notice-error); |
| 49 | border: none; |
| 50 | font-size: 13px; |
| 51 | font-style: normal; |
| 52 | font-weight: 400; |
| 53 | line-height: 1.5; |
| 54 | letter-spacing: -0.247px; |
| 55 | text-decoration-line: underline; |
| 56 | cursor: pointer; |
| 57 | } |
| 58 | |
| 59 | .ea11y__notice--error { |
| 60 | background-color: var(--ea11y-notice-error-bg); |
| 61 | border-inline-start: 4px solid var(--ea11y-notice-error); |
| 62 | } |
| 63 | |
| 64 | .ea11y__notice--error-custom { |
| 65 | background-color: var(--ea11y-notice-white); |
| 66 | border-inline-start: 4px solid var(--ea11y-notice-error-custom-border); |
| 67 | } |
| 68 | |
| 69 | .ea11y__notice--warning { |
| 70 | background-color: var(--ea11y-notice-warning-bg); |
| 71 | border-inline-start: 4px solid var(--ea11y-notice-warning-border); |
| 72 | } |
| 73 | |
| 74 | .ea11y__notice--success { |
| 75 | background-color: var(--ea11y-notice-success-bg); |
| 76 | border-inline-start: 4px solid var(--ea11y-notice-success-border); |
| 77 | } |
| 78 | |
| 79 | .ea11y__notice--info { |
| 80 | background-color: var(--ea11y-notice-info-bg); |
| 81 | border-inline-start: 4px solid var(--ea11y-notice-info-border); |
| 82 | } |
| 83 | |
| 84 | .ea11y__renewal-notice { |
| 85 | border-inline-start: none; |
| 86 | } |
| 87 | |
| 88 | .ea11y__notice--pink { |
| 89 | padding-left: 54px; |
| 90 | position: relative; |
| 91 | background-color: var(--ea11y-notice-white); |
| 92 | border: 1px solid var(--ea11y-notice-pink-border); |
| 93 | border-inline-start: 4px solid var(--ea11y-notice-pink-accent); |
| 94 | } |
| 95 | |
| 96 | .ea11y__notice--pink b { |
| 97 | font-weight: 500; |
| 98 | color: var(--ea11y-notice-pink-text); |
| 99 | } |
| 100 | |
| 101 | .ea11y__notice--pink a { |
| 102 | font-weight: 500; |
| 103 | color: var(--ea11y-notice-pink-link); |
| 104 | margin-inline-start: 10px; |
| 105 | text-decoration: none; |
| 106 | } |
| 107 | |
| 108 | .ea11y__notice--pink .ea11y__icon-block { |
| 109 | display: flex; |
| 110 | justify-content: center; |
| 111 | align-items: center; |
| 112 | width: 48px; |
| 113 | position: absolute; |
| 114 | left: 0; |
| 115 | top: 0; |
| 116 | bottom: 0; |
| 117 | background-color: var(--ea11y-notice-pink-icon-bg); |
| 118 | } |
| 119 | |
| 120 | .ea11y__notice .primary-heading { |
| 121 | font-size: 17px; |
| 122 | color: var(--ea11y-notice-heading); |
| 123 | font-weight: 700; |
| 124 | margin-bottom: 8px; |
| 125 | } |
| 126 | |
| 127 | .ea11y__notice .sub-heading { |
| 128 | font-size: 13px; |
| 129 | color: var(--ea11y-notice-subheading); |
| 130 | margin-top: 0; |
| 131 | margin-bottom: 12px; |
| 132 | } |
| 133 | |
| 134 | /** Renewal notice styles **/ |
| 135 | |
| 136 | .ea11y__content-block { |
| 137 | display: flex; |
| 138 | gap: 15px; |
| 139 | } |
| 140 | |
| 141 | .ea11y__content-block .ea11y__notice-content { |
| 142 | display: flex; |
| 143 | flex-direction: column; |
| 144 | align-items: flex-start; |
| 145 | gap: 10px; |
| 146 | } |
| 147 | |
| 148 | .ea11y__renewal-notice-btn { |
| 149 | text-decoration: none; |
| 150 | padding: 4px 10px; |
| 151 | border-radius: 4px; |
| 152 | width: auto; |
| 153 | } |
| 154 | |
| 155 | .ea11y__renewal-notice.ea11y__notice--warning .ea11y__renewal-notice-btn { |
| 156 | color: var(--ea11y-notice-warning-btn); |
| 157 | border: 1px solid var(--ea11y-notice-warning-btn); |
| 158 | } |
| 159 | |
| 160 | .ea11y__renewal-notice.ea11y__notice--error .ea11y__renewal-notice-btn { |
| 161 | color: var(--ea11y-notice-error); |
| 162 | border: 1px solid var(--ea11y-notice-error); |
| 163 | } |
| 164 | |
| 165 | .ea11y__renewal-notice.ea11y__notice--warning .ea11y__renewal-notice-btn:hover { |
| 166 | background: var(--ea11y-notice-warning-btn-hover); |
| 167 | } |
| 168 | |
| 169 | .ea11y__renewal-notice.ea11y__notice--error .ea11y__renewal-notice-btn:hover { |
| 170 | background-color: var(--ea11y-notice-error-btn-hover); |
| 171 | } |
| 172 |