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