PluginProbe ʕ •ᴥ•ʔ
NitroPack – Performance, Page Speed & Cache Plugin for Core Web Vitals, CDN & Image Optimization / 1.19.4
NitroPack – Performance, Page Speed & Cache Plugin for Core Web Vitals, CDN & Image Optimization v1.19.4
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 8 months ago _modals.scss 1 year ago _notifications.scss 8 months ago _preview.scss 8 months ago _select2.scss 1 year ago _variables.scss 8 months ago
_notifications.scss
120 lines
1 @use "variables" as *;
2 .nitro-notification {
3 margin-bottom: $gutter;
4 &.compact .notification-inner {
5 padding: calc($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 .title-msg {
20 line-height: 1.5;
21 }
22 }
23
24 p {
25 color: $gray-700;
26 margin: 0;
27 }
28 .title-wrapper {
29 display: flex;
30 align-items: center;
31 }
32 .icon {
33 margin-right: 0.5rem;
34 width: 1rem;
35 height: 1rem;
36 }
37 .title {
38 font-weight: bold;
39 font-size: 0.875rem;
40 margin: 0;
41 }
42 &.notification-error .notification-inner {
43 background-color: $red-100;
44 p {
45 color: $red-600;
46 }
47 .btn.btn-secondary {
48 @include btn_color($red-600);
49 &:hover {
50 background-color: $red-200;
51 }
52 }
53 }
54 &.notification-warning .notification-inner {
55 background-color: $yellow-100;
56 .btn.btn-secondary {
57 @include btn_color($yellow-700);
58 &:hover {
59 background-color: $yellow-200;
60 }
61 }
62 }
63 &.notification-success .notification-inner {
64 background-color: #e9fffb;
65 .btn.btn-secondary {
66 @include btn_color($green-500);
67 &:hover {
68 background-color: $green-100;
69 }
70 }
71 }
72 &.notification-promo .notification-inner {
73 background-color: $purple-100;
74 .btn.btn-secondary {
75 @include btn_color($purple-700);
76 &:hover {
77 background-color: $purple-700;
78 color: #fff;
79 }
80 }
81 }
82 &.notification-info .notification-inner {
83 background-color: $blue-100;
84 .btn.btn-secondary {
85 @include btn_color($blue-700);
86 &:hover {
87 background-color: $blue-700;
88 color: #fff;
89 }
90 }
91 }
92 .msg {
93 .btn {
94 margin-left: 1rem;
95 }
96 }
97 .actions {
98 flex-grow: 1;
99 display: flex;
100 flex-wrap: nowrap;
101 justify-content: flex-end;
102 gap: calc($gutter / 2);
103 }
104 .btn {
105 @include btns();
106 //overriding the styling for rest of the wp-admin area
107 min-height: 1.5rem;
108 line-height: 1.75;
109 }
110 }
111 body:not(.toplevel_page_nitropack) {
112 .nitro-notification {
113 margin-top: 0.5rem;
114
115 .notification-inner {
116 width: calc(100% - 70px);
117 }
118 }
119 }
120