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