PluginProbe ʕ •ᴥ•ʔ
NitroPack – Performance, Page Speed & Cache Plugin for Core Web Vitals, CDN & Image Optimization / 1.18.0
NitroPack – Performance, Page Speed & Cache Plugin for Core Web Vitals, CDN & Image Optimization v1.18.0
1.19.8 1.19.7 1.19.6 1.19.5 trunk 1.10.0 1.10.1 1.10.2 1.10.3 1.10.4 1.11.0 1.12.0 1.13.0 1.14.0 1.15.0 1.15.1 1.15.2 1.15.3 1.16.0 1.16.1 1.16.2 1.16.3 1.16.4 1.16.5 1.16.6 1.16.7 1.16.8 1.17.0 1.17.6 1.17.7 1.17.8 1.17.9 1.18.0 1.18.1 1.18.2 1.18.3 1.18.4 1.18.5 1.18.6 1.18.7 1.18.8 1.18.9 1.19.0 1.19.1 1.19.2 1.19.3 1.19.4 1.3.19 1.3.20 1.4.0 1.4.1 1.5.0 1.5.1 1.5.10 1.5.11 1.5.12 1.5.13 1.5.14 1.5.15 1.5.16 1.5.17 1.5.18 1.5.19 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 1.5.7 1.5.8 1.5.9 1.6.0 1.6.1 1.7.0 1.7.1 1.8.0 1.8.1 1.8.3 1.9.0 1.9.1 1.9.2
nitropack / view / stylesheet / scss / _notifications.scss
nitropack / view / stylesheet / scss Last commit date
_fancy-radio.scss 1 year ago _helpers.scss 1 year ago _modals.scss 1 year ago _notifications.scss 1 year 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: $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: $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