| 1 |
.wowp-notification { |
| 2 |
--_color: var(--wowp-gray-900); |
| 3 |
position: relative; |
| 4 |
background-color: color-mix(in srgb, var(--_color) 7%, white); |
| 5 |
border-width: 1px; |
| 6 |
border-style: solid; |
| 7 |
border-color: var(--_color); |
| 8 |
padding-block: 1.25rem; |
| 9 |
padding-inline: 3rem 1.25rem; |
| 10 |
border-radius: 4px; |
| 11 |
margin-block: 1rem; |
| 12 |
&:before { |
| 13 |
position: absolute; |
| 14 |
left: 0.5rem; |
| 15 |
top: 50%; |
| 16 |
transform: translateY(-50%); |
| 17 |
content: '\f16d'; |
| 18 |
font-family: dashicons; |
| 19 |
font-size: 1.5rem; |
| 20 |
width: 2rem; |
| 21 |
height: 2rem; |
| 22 |
display: flex; |
| 23 |
align-items: center; |
| 24 |
justify-content: center; |
| 25 |
color: var(--_color); |
| 26 |
|
| 27 |
} |
| 28 |
|
| 29 |
&:after { |
| 30 |
position: absolute; |
| 31 |
content: ''; |
| 32 |
left: 0; |
| 33 |
top: 50%; |
| 34 |
transform: translateY(-50%); |
| 35 |
height: 2rem; |
| 36 |
width: 3px; |
| 37 |
border-radius: 0 3px 3px 0; |
| 38 |
background-color: var(--_color); |
| 39 |
} |
| 40 |
|
| 41 |
&.notification-info { |
| 42 |
--_color: var(--wowp-color-blue); |
| 43 |
&:before { |
| 44 |
content: "\f348"; |
| 45 |
} |
| 46 |
} |
| 47 |
&.notification-warning { |
| 48 |
--_color: var(--wowp-color-yellow); |
| 49 |
&:before { |
| 50 |
content: "\f534"; |
| 51 |
} |
| 52 |
} |
| 53 |
&.notification-error { |
| 54 |
--_color: var(--wowp-color-red); |
| 55 |
&:before { |
| 56 |
content: "\f335"; |
| 57 |
} |
| 58 |
} |
| 59 |
|
| 60 |
&.notification-lock { |
| 61 |
--_color: var(--wowp-color-red); |
| 62 |
&:before { |
| 63 |
content: "\f160"; |
| 64 |
} |
| 65 |
} |
| 66 |
|
| 67 |
&.notification-success { |
| 68 |
--_color: var(--wowp-color-green); |
| 69 |
&:before { |
| 70 |
content: "\f12a"; |
| 71 |
} |
| 72 |
} |
| 73 |
} |