PluginProbe
WP Coder – Insert & Manage Code Snippets / 4.3
WP Coder – Insert & Manage Code Snippets v4.3
4.5.1 1.1 2.3.1 2.3.2 2.4.1 2.5.1 2.5.2 2.5.3 2.5.4 2.5.5 2.5.6 3.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.1 3.1.1 3.2 3.2.1 3.3 3.4 3.5 3.5.1 All 39 releases
wp-coder / assets / scss / _notification.scss

_notification.scss in WP Coder – Insert & Manage Code Snippets 4.3, at assets/scss/_notification.scss

73 lines 1.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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 }