PluginProbe ʕ •ᴥ•ʔ
NitroPack – Performance, Page Speed & Cache Plugin for Core Web Vitals, CDN & Image Optimization / 1.17.0
NitroPack – Performance, Page Speed & Cache Plugin for Core Web Vitals, CDN & Image Optimization v1.17.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 / style.scss
nitropack / view / stylesheet Last commit date
fonts 2 years ago scss 1 year ago admin_bar_menu.min.css 1 year ago admin_bar_menu.scss 1 year ago nitro-notifications.min.css 1 year ago nitro-notifications.min.css.map 2 years ago nitro-notifications.scss 2 years ago safemode.min.css 1 year ago safemode.min.css.map 2 years ago safemode.scss 2 years ago style.min.css 1 year ago style.min.css.map 2 years ago style.scss 1 year ago
style.scss
989 lines
1 @use "scss/variables" as *;
2 @use "scss/helpers" as *;
3 @use "scss/modals";
4 @use "scss/select2";
5 @font-face {
6 font-family: "Inter";
7 src: url("fonts/Inter/Inter-VariableFont_slnt,wght.ttf") format("truetype-variations");
8 }
9
10 /* Layout */
11
12 body,
13 html {
14 line-height: 1.5;
15 }
16 #wpcontent {
17 padding-left: 0;
18 }
19 #nitropack-container {
20 font-family: $font;
21 font-size: 0.875rem;
22 #main {
23 //margin-top: 2rem;
24 //padding: 0 $gutter;
25 line-height: $line-height;
26 }
27 }
28 .container {
29 max-width: 100%;
30 margin: 0 auto;
31 padding: $gutter;
32 display: flex;
33 flex-direction: column;
34 @media (min-width: 1440px) {
35 max-width: 1280px;
36 padding: 2rem;
37 }
38 @media (min-width: 1728px) {
39 max-width: 1328px;
40 padding: 3rem;
41 }
42 @media (min-width: 1920px) {
43 max-width: 1440px;
44 padding-top: 4.5rem;
45 }
46 }
47 .col-span-1 {
48 display: grid;
49 gap: 1rem;
50 @media (min-width: 1440px) {
51 gap: $gutter;
52 }
53 }
54 //any cols are grid
55
56 /* Typography */
57 h3,
58 .plan-name {
59 font-size: 1rem;
60 color: $gray-700;
61 font-weight: 700;
62 margin: 0 0 0.5rem 0;
63 }
64 .plan-name {
65 margin-bottom: 0;
66 }
67 p {
68 font-size: 0.875rem;
69 color: $text-color;
70 line-height: $line-height;
71 + p {
72 margin-top: 1rem;
73 }
74 }
75
76 /* Buttons */
77 .btn {
78 @include btn();
79 .icon-left {
80 margin-right: 0.25rem;
81 display: inline-block;
82 vertical-align: middle;
83 }
84 .icon-right {
85 margin-left: 0.5rem;
86 display: inline-block;
87 vertical-align: middle;
88 }
89 &:focus {
90 box-shadow: none;
91 }
92 &.btn-link {
93 border: 0;
94 &:hover {
95 background-color: $purple-100;
96 }
97 &:hover,
98 &:active {
99 color: $primary-color;
100 }
101 }
102 &.btn-primary {
103 background-color: $primary-color;
104 border-color: $primary-color;
105 color: #fff;
106 &:hover {
107 background-color: $primary-hover;
108 }
109 }
110 &.btn-secondary {
111 &:hover {
112 color: $primary-color;
113 background-color: $purple-100;
114 }
115 }
116 &.btn-danger {
117 background-color: $red-600;
118 border-color: $red-600;
119 color: #fff;
120 &:hover {
121 background-color: $red-800;
122 }
123 &.btn-ghost {
124 color: $red-600;
125 &:hover {
126 background-color: $red-200;
127 }
128 }
129 }
130 &.btn-ghost {
131 background-color: transparent;
132 }
133 }
134 .btn-link {
135 cursor: pointer;
136 }
137 .btn-xl {
138 padding: 1rem 5rem;
139 font-size: 1rem;
140 }
141 .btn-icon {
142 height: 2rem;
143 padding-left: 0.75rem;
144 padding-right: 0.75rem;
145 display: flex;
146 align-items: center;
147 justify-content: center;
148 }
149 /* Badge */
150 .badge {
151 padding: 0.25rem 0.5rem 0.25rem 0.5rem;
152 font-size: 0.75rem;
153 font-weight: normal;
154 border-radius: $border-radius;
155 &.badge-success {
156 background-color: $green-100;
157 color: $green-800;
158 }
159 &.badge-primary {
160 background-color: $purple-50;
161 color: $primary-hover;
162 }
163 }
164
165 /* Tooltips */
166 .tooltip-icon {
167 //cursor: help;
168 margin-left: 0.25rem;
169 img {
170 width: 1rem;
171 height: 1rem;
172 }
173 }
174 .tooltip-container {
175 background-color: $gray-700;
176 color: #fff;
177 position: absolute;
178 z-index: 10;
179 padding: 0.5rem;
180 font-weight: 500;
181 border-radius: $border-radius;
182 display: inline-block;
183 transition: $transition;
184 opacity: 0;
185 visibility: hidden;
186 max-width: 270px;
187 text-align: center;
188 &.visible {
189 visibility: visible;
190 opacity: 1;
191 display: block;
192 }
193 .tooltip-arrow {
194 bottom: -4px;
195 visibility: hidden;
196 background: inherit;
197 height: 8px;
198 position: absolute;
199 width: 8px;
200 left: -4px !important; //fix
201 &::before,
202 &::after {
203 content: "";
204 transform: rotate(45deg);
205 visibility: visible;
206 }
207 &::before {
208 background: inherit;
209 height: 8px;
210 position: absolute;
211 width: 8px;
212
213 border-color: #4b5563;
214 border-style: solid;
215 }
216
217 &::after {
218 background: inherit;
219 height: 9px;
220 position: absolute;
221 width: 9px;
222
223 border-color: #4b5563;
224 border-style: solid;
225 }
226 }
227 }
228 /* Cards */
229 .card {
230 box-shadow: $shadow-sm;
231 padding: $gutter $gutter 0 $gutter;
232 border: 1px solid $divider-color;
233 width: 100%;
234 max-width: 100%;
235 border-radius: $border-radius * 2;
236 margin-top: 0;
237 min-width: unset;
238 color: $text-color;
239
240 .card-header {
241 display: flex;
242 align-items: center;
243 justify-content: space-between;
244 flex-direction: row;
245 margin-bottom: 1rem;
246 border-bottom: 1px solid $divider-color;
247 padding-bottom: 1rem;
248 h3 {
249 margin-bottom: 0;
250 font-size: 1rem;
251 }
252 }
253 .card-body {
254 margin-bottom: 1.5rem;
255 + .card-footer {
256 margin-bottom: 0;
257 }
258 }
259 .card-footer {
260 border-top: 1px solid $divider-color;
261 margin-top: 1rem;
262 padding-top: 1rem;
263 padding-bottom: 1rem;
264 }
265 }
266
267 /* Toggles */
268 .peer {
269 &:checked ~ .toggle {
270 background-color: $primary-color;
271 &::after {
272 transform: translate(100%, 0px) rotate(0) skewX(0) skewY(0) scaleX(1) scaleY(1);
273 }
274 }
275 &:disabled ~ .toggle {
276 background-color: $gray-300;
277 cursor: not-allowed;
278 }
279 }
280 .toggle {
281 width: 2.75rem;
282 height: 1.5rem;
283 position: relative;
284 border-radius: 9999px;
285 background-color: $toggle-color;
286 cursor: pointer;
287 &::after {
288 --tw-translate-x: 100%;
289 content: "";
290 transition-duration: 0.15s;
291 transition-property: all;
292 transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
293 --tw-bg-opacity: 1;
294 background-color: #fff;
295 border-radius: 9999px;
296 width: 1.25rem;
297 height: 1.25rem;
298 top: 0.125rem;
299 position: absolute;
300 inset-inline-start: 2px;
301 }
302 }
303 /* Tags */
304 .selected-shortcodes {
305 margin-top: 1rem;
306 background-color: #fff;
307 border-radius: $border-radius;
308 padding: 1rem;
309 border: 1px solid $divider-color;
310 min-height: 6rem;
311 #selected-shortcodes {
312 gap: 10px;
313 display: flex;
314 }
315 }
316 .shortcode-tag {
317 padding: 2px 6px;
318 border-radius: $border-radius;
319 background-color: #edebf1;
320 display: inline-block;
321 font-size: 0.75rem;
322 .remove {
323 cursor: pointer;
324 padding: 0px 4px;
325 }
326 }
327 #ajax-shortcodes-widget {
328 label {
329 font-weight: 500;
330 }
331 .select-wrapper {
332 display: flex;
333 flex-direction: column;
334 gap: 0.5rem;
335 margin-top: 0.5rem;
336
337 .select2-container {
338 flex: 1;
339 max-height: 6rem;
340 overflow: auto;
341 }
342 .btn {
343 width: 120px;
344 }
345 }
346 //select2
347 .select2-container--default .select2-selection--multiple .select2-selection__rendered {
348 display: flex;
349 align-items: center;
350 flex-wrap: wrap;
351 gap: 10px;
352 > li.select2-selection__choice {
353 display: inline-block;
354 margin-bottom: 0;
355 }
356 .select2-selection__choice__remove {
357 display: none;
358 }
359 .select2-selection__choice-inner {
360 padding: 2px 6px;
361 border-radius: $border-radius;
362 background-color: #edebf1;
363 display: inline-block;
364 font-size: 0.75rem;
365 display: flex;
366 align-items: center;
367
368 margin-bottom: 0;
369 line-height: 18px;
370
371 .np-select2-remove {
372 margin: 0 0 0 0.35rem;
373 cursor: pointer;
374 display: block;
375 &::before {
376 content: "";
377 background-image: url("../images/close-icon.svg");
378 width: 8px;
379 height: 8px;
380 background-size: cover;
381 display: block;
382 }
383 }
384 }
385 }
386 }
387
388 /* Accordions */
389 .accordion-body {
390 margin-top: 1rem;
391 padding-top: 1rem;
392 border-top: 1px solid $divider-color;
393 }
394
395 .options-container {
396 .nitro-option {
397 padding: 1rem 0;
398 &:first-child {
399 padding-top: 0;
400 }
401 &:last-child {
402 padding-bottom: 0;
403 }
404 .nitro-option-main {
405 display: flex;
406 justify-content: space-between;
407 align-items: center;
408 color: $text-color;
409 }
410 .text-box {
411 margin-right: 1rem;
412 }
413 h6 {
414 color: $gray-700;
415 font-weight: 700;
416 font-size: 1rem;
417 margin-bottom: 0.5rem;
418 }
419 p {
420 color: $text-color;
421 }
422 + .nitro-option {
423 border-top: 1px solid $divider-color;
424 }
425 }
426 }
427 .msg-container {
428 background-color: $purple-50;
429 color: $gray-700;
430 padding: 0.5rem;
431 margin-top: 1rem;
432 border-radius: $border-radius;
433 .icon {
434 display: inline;
435 margin-right: 0.5rem;
436 width: 1rem;
437 height: 1rem;
438 }
439 }
440
441 /* tabs */
442 .tabs {
443 display: inline-flex;
444 justify-content: space-between;
445 align-items: center;
446 width: 100%;
447 border: 1px solid $divider-color;
448 border-radius: $border-radius;
449 padding: 4px;
450 overflow: auto;
451 margin-bottom: 1rem;
452 a {
453 flex: 1;
454 text-align: center;
455 line-height: 26px;
456 height: 2.5rem;
457 padding: 0.4rem 1.2rem;
458 &.tab-link {
459 color: $gray-500;
460 }
461 &.active {
462 color: #fff;
463 }
464 + a {
465 margin-left: 0.5rem;
466 }
467 }
468 &::-webkit-scrollbar {
469 height: 5px;
470 }
471 &::-webkit-scrollbar-thumb {
472 background: inherit;
473 //border-radius: 3px;
474 }
475 &::-webkit-scrollbar-track {
476 background: transparent;
477 display: none;
478 }
479 &:hover {
480 &::-webkit-scrollbar-thumb {
481 background: #edebf1;
482 }
483 }
484 }
485 /* Scrollbars */
486 .scrollbar-default {
487 &::-webkit-scrollbar {
488 width: 3px;
489 }
490 &::-webkit-scrollbar-thumb {
491 background: inherit;
492 border-radius: 20px;
493 }
494 &::-webkit-scrollbar-track {
495 background: transparent;
496 display: none;
497 }
498 &:hover {
499 &::-webkit-scrollbar-thumb {
500 background: #edebf1;
501 }
502 }
503 }
504 /* Overlay*/
505 .nitro-backdrop {
506 background-color: rgba(42, 0, 122, 0.5);
507 }
508 .form-row {
509 //display: flex;
510 label {
511 font-weight: 500;
512 color: #0d0025;
513 }
514 input {
515 margin-top: 0.5rem;
516 padding: 0.75rem 1rem 0.75rem 1rem;
517 display: block;
518 border-color: #dbd7e3;
519 border-radius: $border-radius;
520 width: 100%;
521 }
522 .tooltip {
523 display: inline;
524 }
525 + .form-row {
526 margin-top: 1rem;
527 }
528 }
529 .toast-wrapper {
530 position: fixed;
531 bottom: -100px;
532 width: auto;
533 left: 50%;
534 transform: translate(-50%, 0);
535 transition: 0.3s ease all;
536 opacity: 0;
537 .toast-inner {
538 padding: 1rem;
539 border: 1px solid $primary-color;
540 box-shadow: $shadow-sm;
541 display: flex;
542 align-items: center;
543 justify-content: space-between;
544 background: #fff;
545 min-width: 400px;
546 max-width: 600px;
547 border-radius: $border-radius;
548 position: relative;
549 color: $text-color;
550 .icon {
551 margin-right: 1rem;
552 border-radius: 50%;
553 padding: 0.5rem;
554 display: flex;
555 img {
556 width: 1rem;
557 height: 1rem;
558 }
559 }
560 .text {
561 font-weight: 500;
562 }
563 .actions {
564 border-left: 1px solid $divider-color;
565 margin-left: auto;
566 padding-left: $gutter;
567 margin-left: 1rem;
568 }
569 .toast-close {
570 color: $gray-700;
571 cursor: pointer;
572 display: flex;
573 }
574 .msg-box {
575 display: flex;
576 align-items: center;
577 }
578 }
579 &.toast-success {
580 .toast-inner {
581 border-color: $green-500;
582 }
583 .progress-bar {
584 background-color: $green-500;
585 }
586 .icon {
587 background-color: $green-50;
588 svg {
589 color: $green-500;
590 }
591 }
592 }
593 &.toast-info {
594 .toast-inner {
595 border-color: $blue-700;
596 }
597 .icon {
598 background-color: $blue-100;
599 svg {
600 color: $blue-700;
601 }
602 }
603 .progress-bar {
604 background-color: $blue-700;
605 }
606 }
607 &.toast-error {
608 .toast-inner {
609 border-color: $red-600;
610 }
611 .icon {
612 background-color: $red-100;
613 svg {
614 color: $red-600;
615 }
616 }
617 .progress-bar {
618 background-color: $red-600;
619 }
620 }
621 .toast-progress {
622 height: 3px;
623 width: 100%;
624 position: absolute;
625 bottom: 0;
626 left: 0;
627 .progress-bar {
628 height: 3px;
629 width: 100%;
630 left: 0;
631 position: absolute;
632 transform-origin: left;
633 }
634 }
635 &.shown {
636 z-index: 9991;
637 bottom: 3rem;
638 opacity: 1;
639 .toast-progress .progress-bar {
640 animation: NitroToast__trackProgress linear 1 forwards;
641 animation-duration: 1s;
642 animation-direction: reverse;
643 }
644 &:hover .toast-progress .progress-bar {
645 animation-play-state: paused;
646 }
647 }
648 }
649 @keyframes NitroToast__trackProgress {
650 0% {
651 transform: scaleX(1);
652 }
653 100% {
654 transform: scaleX(0);
655 }
656 }
657 /* Fancy Table */
658 .modern-table {
659 height: 100%;
660 overflow: hidden;
661 color: $gray-700;
662 .thead {
663 border-bottom: 1px solid $divider-color;
664 padding: 1rem 0;
665 }
666 .th {
667 text-align: center;
668 font-weight: 500;
669 }
670 .tr {
671 border-bottom: 1px solid $divider-color;
672 transition: $transition;
673 &:hover,
674 .highlight-column {
675 background-color: $gray-100;
676 }
677 .current-highlight {
678 background-color: rgba(219, 215, 227, 0.3);
679 }
680 .td {
681 padding: 1rem 0;
682 }
683 .modes {
684 padding: 0;
685 }
686 }
687 }
688 /* List Items */
689 .list-items {
690 border: 1px solid $divider-color;
691 border-radius: $border-radius;
692 color: $gray-700;
693 .list-item {
694 font-size: 1rem;
695 font-weight: 500;
696 margin: 0;
697
698 .list-item-body {
699 display: flex;
700 justify-content: space-between;
701 align-items: center;
702 padding: 1rem;
703 transition: $transition;
704 &:hover {
705 background-color: $gray-100;
706 }
707 }
708 input {
709 margin-right: 1rem;
710 color: $primary-color;
711 &:checked:before {
712 content: "";
713 }
714 }
715 .actions {
716 display: flex;
717 align-items: center;
718 .toggle-dropdown {
719 padding: 0.5rem;
720 transition: $transition;
721 &:focus {
722 box-shadow: none;
723 }
724 }
725 }
726 .selected-count {
727 color: $gray-500;
728 font-weight: 400;
729 font-size: 0.875rem;
730 margin-right: 1rem;
731 }
732 .sub-menu {
733 border-top: 1px solid $divider-color;
734 .list-item-body {
735 padding-left: 3.5rem;
736 }
737 }
738
739 + .list-item {
740 border-top: 1px solid $divider-color;
741 }
742 }
743 }
744
745 .table-wrapper {
746 border-top: 1px solid $divider-color;
747 margin-top: 1rem;
748 padding-top: 1rem;
749 table {
750 color: $gray-700;
751 tr + tr td {
752 padding-top: 1rem;
753 }
754 .key {
755 font-weight: 500;
756 }
757 .value {
758 font-weight: bold;
759 text-align: right;
760 }
761 }
762 }
763
764 .card-optimized-pages {
765 .card-body-inner {
766 display: flex;
767 align-items: center;
768 gap: 1rem;
769 }
770 .optimized-pages {
771 font-size: 1.5rem;
772 font-weight: 500;
773 width: 5rem;
774 text-align: center;
775 }
776 .text-box {
777 overflow: hidden;
778 text-overflow: ellipsis;
779 flex: 1;
780 }
781 .reason {
782 overflow: hidden;
783 text-overflow: ellipsis;
784 }
785 #optimizations-purge-cache {
786 flex-shrink: 0;
787 }
788 }
789 .card-optimization-mode {
790 .see-modes {
791 text-align: right;
792 }
793 }
794 /* connect screen */
795 #nitropack-connect {
796 margin-top: 4rem;
797 padding-left: 4rem;
798 padding-right: 4rem;
799 color: $gray-700;
800 //line-height: $line-height;
801 font-weight: 500;
802 font-size: $font-size;
803 font-family: $font;
804
805 h1 {
806 font-size: 2rem;
807 color: $gray-700;
808 font-weight: bold;
809 margin-bottom: 0.5rem;
810 }
811 .header {
812 display: flex;
813 margin-bottom: 4.25rem;
814 color: $gray-700;
815 .back {
816 color: $gray-700;
817 }
818 nav {
819 margin-left: auto;
820 margin-right: auto;
821
822 ol {
823 display: flex;
824 align-items: center;
825
826 .step {
827 display: flex;
828 align-items: center;
829 counter-increment: nav-counter;
830 color: $gray-700;
831 margin: 0;
832 &:before {
833 content: counter(nav-counter);
834 border: 1px solid $gray-700;
835 border-radius: 50%;
836 font-size: 0.65rem;
837 margin-right: 1rem;
838 width: 1.15rem;
839 display: inline-block;
840 text-align: center;
841 height: 1.15rem;
842 line-height: 1.5;
843 }
844 &.passed {
845 color: $gray-500;
846 &:before {
847 content: "";
848 border: 0;
849 background-image: url("../images/check-circle.svg");
850 background-size: cover;
851 display: inline-block;
852 width: 1.15rem;
853 height: 1.15rem;
854 }
855 }
856 &:not(:last-child)::after {
857 content: "";
858 background-image: url("../images/chevron-right.svg");
859 background-size: cover;
860 display: inline-block;
861 width: 1rem;
862 height: 1rem;
863 margin-left: 1rem;
864 }
865 + .step {
866 margin-left: 1rem;
867 }
868 }
869 }
870 }
871 }
872 .logos {
873 display: flex;
874 align-items: center;
875 justify-content: center;
876
877 img + img {
878 margin-left: $gutter;
879 }
880 }
881 .headline-container {
882 text-align: center;
883 margin-top: 4.25rem;
884
885 p {
886 font-size: 1.25rem;
887 color: $gray-600;
888 }
889 }
890 .cta-container {
891 display: flex;
892 align-items: center;
893 justify-content: center;
894 flex-direction: column;
895 width: 400px;
896 margin: 5rem auto 0 auto;
897 .btn {
898 width: 100%;
899 text-align: center;
900 }
901 .help {
902 font-size: $font-size;
903 margin-top: 2rem;
904 text-align: center;
905 padding: 0 1rem;
906 }
907 }
908 .success-container {
909 display: flex;
910 align-items: center;
911 justify-content: center;
912 flex-direction: column;
913 width: 400px;
914 margin: 4rem auto 0 auto;
915
916 p {
917 font-size: 1rem;
918 text-align: center;
919 }
920 }
921 #manual-connect-fields {
922 margin-bottom: $gutter;
923 }
924 }
925 //custom elements
926 //header
927 .nitro-navigation {
928 border-bottom: 1px solid $divider-color;
929 }
930 .nitro-navigation-inner {
931 padding: 10px $gutter;
932 background-color: #fff;
933 }
934
935 .active-mode {
936 font-weight: 500;
937 text-transform: capitalize;
938 }
939 //card vendor - WPEngine
940 .card-vendor {
941 padding-bottom: 1.5rem;
942 .card-title {
943 display: flex;
944 align-items: center;
945 justify-content: space-between;
946 flex-direction: row;
947 margin-bottom: 1rem;
948 border-bottom: 1px solid $divider-color;
949 padding-bottom: 1rem;
950 font-size: 1rem;
951 }
952 .row {
953 &:first-of-type {
954 display: inline;
955 }
956 &:nth-of-type(2) {
957 display: inline;
958 margin-left: 0.5rem;
959 }
960 }
961 .btn-outline-primary {
962 background-color: $primary-color;
963 border-color: $primary-color;
964 color: #fff;
965 &:hover {
966 background-color: $primary-hover;
967 }
968 }
969 }
970 @media only screen and (min-width: 993px) and (max-width: 1366px) {
971 html {
972 font-size: 85%;
973 }
974 }
975 @media only screen and (max-width: 576px) {
976 .card-optimized-pages .card-body-inner {
977 flex-direction: column;
978 align-items: initial;
979
980 .optimized-pages {
981 text-align: center;
982 width: auto;
983 }
984 .text-box {
985 margin: 0;
986 }
987 }
988 }
989