PluginProbe
Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News / 4.0.7
Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News v4.0.7
4.0.8 4.0.7 4.0.6 4.0.5 4.0.4 4.0.3 4.0.2 4.0.1 2.3.5 2.3.6 2.4.0 2.4.1 2.4.10 2.4.11 2.4.12 2.4.13 2.4.14 2.4.15 2.4.16 2.4.17 2.4.18 2.4.19 2.4.2 2.4.20 2.4.21 All 88 releases
post-carousel / src / admin / pages / Settings / setting-styles.scss

setting-styles.scss in Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News 4.0.7, at src/admin/pages/Settings/setting-styles.scss

800 lines 16.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 .sp-pcp-settings-page-container {
2 display: flex;
3 gap: 32px;
4 align-items: flex-start;
5 position: relative;
6
7 .sp-pcp-setting-tabs {
8 display: flex;
9 flex-direction: column;
10 z-index: 10;
11 width: 248px;
12 height: 100%;
13 background: #ffffff;
14 border: 1px solid #DDDDDD;
15 border-radius: 12px;
16 padding: 16px;
17 gap: 8px;
18
19 ul {
20 list-style: none;
21 margin: 0;
22 padding: 0;
23 display: flex;
24 flex-direction: column;
25 gap: 8px;
26 }
27 }
28
29 .sp-pcp-setting-tab {
30 cursor: pointer;
31 padding: 10px 20px 10px 8px;
32 font-size: 14px;
33 line-height: 20px;
34 color: #1e1e1e;
35 border-radius: 6px;
36 font-weight: 500;
37 position: relative;
38 background: transparent;
39 border: 1px solid transparent;
40 display: flex;
41 align-items: center;
42 gap: 6px;
43 transition: all 0.3s ease;
44
45 .sp-pcp-setting-icon {
46 display: flex;
47 align-items: center;
48 justify-content: center;
49 width: 16px;
50 height: 16px;
51
52 svg {
53 width: 16px;
54 height: 16px;
55 }
56
57 path {
58 stroke: #1e1e1e;
59 }
60 }
61
62 &:hover {
63 background: #f5f5f5;
64 }
65
66 &.active {
67 background: #ffffff;
68 color: #641DD7;
69 border: 1px solid #641DD7;
70
71 .sp-pcp-setting-icon path {
72 stroke: #641DD7;
73 }
74 }
75 }
76
77 .sp-pcp-settings-select-field {
78 .sp-pcp-component-title {
79 width: 220px;
80 }
81
82 .sp-smart-post-select-field {
83 width: 260px;
84 }
85
86 .sp-smart-post-component-mb {
87 margin-bottom: 0;
88 }
89 }
90
91 .sp-pcp-setting-tabs-bottom {
92 display: none;
93 }
94
95 .sp-pcp-setting-tab-content {
96 flex: 1;
97 padding: 32px;
98 background: #ffffff;
99 border: 1px solid #DDDDDD;
100 border-radius: 12px;
101 min-width: 0;
102 }
103
104 hr {
105 margin: 24px 0;
106 }
107
108 .components-input-control__backdrop {
109 border-radius: 4px !important;
110 border: 1px solid #DDDDDD !important;
111 }
112
113 .sp-pcp-settings-save-wrapper {
114 display: flex;
115 gap: 8px;
116 margin-top: 30px;
117 justify-content: flex-start;
118
119 button {
120 display: flex;
121 align-items: center;
122 gap: 8px;
123 padding: 14px 24px;
124 color: #FFFFFF;
125 font-size: 16px;
126 font-weight: 600;
127 border-radius: 4px;
128 border: none;
129 background-color: #c5c5c6;
130 cursor: pointer;
131 transition: all 0.3s ease-in-out;
132 }
133
134 .sp-pcp-settings-save-btn {
135 pointer-events: none;
136
137 &.active {
138 background-color: #3b9752;
139 pointer-events: initial;
140 }
141 }
142
143 .sp-pcp-settings-reset-btn {
144 background-color: white;
145 border: 1px solid #ff5b2e;
146 color: #ff5b2e;
147 }
148 }
149
150 .sp-pcp-settings-api-guideline {
151 background: #F3F4F5;
152 padding: 16px 0 16px 305px;
153 margin: 36px -36px -32px -36px;
154 display: flex;
155 gap: 4px;
156
157 a {
158 display: flex;
159 align-items: center;
160 }
161 }
162
163 .sp-pcp-component-title {
164 width: 270px;
165 color: #2F2F2F;
166 font-size: 14px;
167 font-weight: 600;
168 line-height: 20px;
169 }
170
171 .sp-pcp-component-title.site-mode-title {
172 white-space: pre-line;
173 }
174
175 .sp-pcp-settings-advanced-controls {
176 display: flex;
177 flex-direction: column;
178 gap: 20px;
179
180 .sp-pcp-settings-option {
181 padding-bottom: 20px;
182 border-bottom: 1px solid #f0f0f0;
183 display: flex;
184 align-items: center;
185 gap: 32px;
186 justify-content: space-between;
187
188 &:last-child {
189 border-bottom: none;
190 }
191 }
192
193 .sp-pcp-option-label-wrapper {
194 display: flex;
195 flex-direction: column;
196 gap: 4px;
197 width: 50%;
198 }
199
200 .sp-pcp-component-title {
201 font-size: 14px;
202 font-weight: 600;
203 color: #2f2f2f;
204 line-height: 20px;
205 }
206
207 .sp-pcp-option-help-text {
208 font-size: 13px;
209 font-weight: 400;
210 color: #757575;
211 line-height: 20px;
212 }
213
214 .sp-pcp-blocks-settings-select-field {
215 .css-1y1fx19 svg {
216 width: 24px !important;
217 height: 24px !important;
218 }
219 }
220 hr {
221 margin: -25px 0;
222 }
223
224 .sp-pcp-settings-save-wrapper {
225 margin: 0;
226 }
227 }
228
229 .sp-pcp-settings-cache-time {
230 width: 110px;
231 gap: 2px;
232 position: relative;
233
234 .mins {
235 display: flex;
236 flex-direction: column;
237 justify-content: center;
238 user-select: none;
239 padding: 0 10px;
240 font-size: 12px;
241 color: #555;
242 border: none;
243 height: 28px;
244 background-color: #f5f5f5;
245 border-radius: 0 5px 5px 0;
246 position: absolute;
247 right: 1px;
248 }
249
250 .components-input-base {
251 height: 30px;
252 }
253 }
254
255 .sp-pcp-settings-option {
256 display: flex;
257 align-items: center;
258 }
259
260 .api-source {
261 .sp-pcp-component-title {
262 display: block;
263 padding-right: 20px;
264 z-index: 10;
265 }
266
267 .sp-pcp-settings-info {
268 display: inline-flex;
269 transform: translateY(2px);
270 padding-top: 0;
271 }
272 }
273
274 .sp-pcp-setting-purge-cache {
275 cursor: pointer;
276 border-radius: 4px;
277 background: #1A74E4;
278 padding: 6px 12px;
279 color: #FFFFFF;
280 border: none;
281 }
282
283 .sp-pcp-settings-additional-codes {
284 display: flex;
285 flex-direction: column;
286 gap: 24px;
287 }
288
289 .sp-pcp-component-title {
290 display: flex;
291 align-items: center;
292 }
293 }
294
295
296 /* Buttons row */
297 .sp-pcp-settings-info {
298 display: flex;
299 cursor: help;
300 position: relative;
301 padding: 5px;
302
303 img {
304 height: 14px;
305 width: 14px;
306 }
307
308 &:hover {
309 .sp-pcp-settings-info-text {
310 display: block;
311 }
312 }
313 }
314
315 .sp-pcp-settings-info-text {
316 display: none;
317 position: absolute;
318 background: rgb(22 30 38);
319 color: rgb(127 159 175);
320 width: 290px;
321 padding: 14px 20px;
322 font-weight: normal;
323 border-radius: 5px;
324 z-index: 10;
325 left: 22px;
326 top: 0;
327 box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
328 }
329
330 .contribute-text {
331 margin-top: -46px;
332 width: 450px;
333
334 .sp-pcp-settings-modal-btn {
335 cursor: pointer;
336 font-weight: 600;
337 text-decoration: underline;
338 }
339 }
340
341 .sp-pcp-section-title {
342 font-size: 28px;
343 font-weight: 600;
344 line-height: 28px;
345 color: #1d2327;
346 }
347
348 .sp-pcp-blocks-settings-toggle-btn {
349 .react-toggle {
350 touch-action: pan-x;
351 display: inline-block;
352 position: relative;
353 cursor: pointer;
354 background-color: transparent;
355 border: 0;
356 padding: 0;
357
358 -webkit-touch-callout: none;
359 -webkit-user-select: none;
360 -khtml-user-select: none;
361 -moz-user-select: none;
362 -ms-user-select: none;
363 user-select: none;
364
365 -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
366 -webkit-tap-highlight-color: transparent;
367 }
368
369 .react-toggle-screenreader-only {
370 border: 0;
371 clip: rect(0 0 0 0);
372 height: 1px;
373 margin: -1px;
374 overflow: hidden;
375 padding: 0;
376 position: absolute;
377 width: 1px;
378 }
379
380 .react-toggle--disabled {
381 cursor: not-allowed;
382 // opacity: 0.5;
383 -webkit-transition: opacity 0.25s;
384 transition: opacity 0.25s;
385 }
386
387 .react-toggle-track {
388 width: 36px;
389 height: 18px;
390 padding: 0;
391 border-radius: 30px;
392 background-color: #BBBBBB;
393 -webkit-transition: all 0.2s ease;
394 -moz-transition: all 0.2s ease;
395 transition: all 0.2s ease;
396 }
397
398 .react-toggle:hover:not(.react-toggle--disabled) .react-toggle-track {
399 background-color: #BBBBBB;
400 }
401
402 .react-toggle--checked .react-toggle-track {
403 background-color: #4AB866;
404 }
405
406 .react-toggle--checked:hover:not(.react-toggle--disabled) .react-toggle-track {
407 background-color: #4AB866;
408 }
409
410 .react-toggle-track-check {
411 position: absolute;
412 width: 14px;
413 height: 10px;
414 top: 0px;
415 bottom: 0px;
416 margin-top: auto;
417 margin-bottom: auto;
418 line-height: 0;
419 left: 8px;
420 opacity: 0;
421 -webkit-transition: opacity 0.25s ease;
422 -moz-transition: opacity 0.25s ease;
423 transition: opacity 0.25s ease;
424 }
425
426 .react-toggle--checked .react-toggle-track-check {
427 opacity: 1;
428 -webkit-transition: opacity 0.25s ease;
429 -moz-transition: opacity 0.25s ease;
430 transition: opacity 0.25s ease;
431 }
432
433 .react-toggle-track-x {
434 position: absolute;
435 width: 10px;
436 height: 10px;
437 top: 0px;
438 bottom: 0px;
439 margin-top: auto;
440 margin-bottom: auto;
441 line-height: 0;
442 right: 10px;
443 opacity: 1;
444 -webkit-transition: opacity 0.25s ease;
445 -moz-transition: opacity 0.25s ease;
446 transition: opacity 0.25s ease;
447 }
448
449 .react-toggle--checked .react-toggle-track-x {
450 opacity: 0;
451 }
452
453 .react-toggle-thumb {
454 transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1) 0ms;
455 position: absolute;
456 top: 2px;
457 left: 2px;
458 width: 14px;
459 height: 14px;
460 border: 1px solid #BBBBBB;
461 border-radius: 50%;
462 background-color: #FAFAFA;
463
464 -webkit-box-sizing: border-box;
465 -moz-box-sizing: border-box;
466 box-sizing: border-box;
467
468 -webkit-transition: all 0.25s ease;
469 -moz-transition: all 0.25s ease;
470 transition: all 0.25s ease;
471 }
472
473 .react-toggle--checked .react-toggle-thumb {
474 left: 20px;
475 border-color: #4ab866;
476 }
477
478 // .react-toggle--focus .react-toggle-thumb {
479 // -webkit-box-shadow: 0px 0px 3px 2px #0099E0;
480 // -moz-box-shadow: 0px 0px 3px 2px #0099E0;
481 // box-shadow: 0px 0px 2px 3px #0099E0;
482 // }
483
484 .react-toggle:active:not(.react-toggle--disabled) .react-toggle-thumb {
485 -webkit-box-shadow: 0px 0px 5px 5px #0099E0;
486 -moz-box-shadow: 0px 0px 5px 5px #0099E0;
487 box-shadow: 0px 0px 5px 5px #0099E0;
488 }
489 }
490
491 .sp-smart-post-blocks-settings-page .sp-pcp-blocks-setting-wrapper a.sp-pcp-classic-settings-page-link {
492 color: #1a74e4;
493 display: inline-block;
494 margin-top: 24px;
495 position: relative;
496 right: 16px;
497 font-weight: 500;
498 margin-left: 335px;
499 }
500 /* Tools Tab Styles */
501 .sp-pcp-settings-tools-controls {
502 display: flex;
503 flex-direction: column;
504 gap: 36px;
505 width: 100%;
506
507 .sp-pcp-settings-tools-section {
508 display: flex;
509 gap: 32px;
510 width: 100%;
511
512 .sp-pcp-settings-tools-section-header {
513 width: 280px;
514 flex-shrink: 0;
515
516 .sp-pcp-settings-tools-section-title {
517 color: #2F2F2F;
518 font-size: 14px;
519 font-weight: 500;
520 line-height: 1.6;
521 margin: 0;
522 }
523 }
524
525 .sp-pcp-settings-tools-section-content {
526 flex: 1;
527 display: flex;
528 flex-direction: column;
529 gap: 24px;
530 justify-content: center;
531
532 .sp-pcp-settings-tools-subtitle {
533 color: #2F2F2F;
534 font-size: 13px;
535 font-weight: 500;
536 line-height: 20px;
537 margin: 0;
538 white-space: nowrap;
539 }
540
541 .sp-pcp-settings-tools-radio-group {
542 display: flex;
543 flex-direction: column;
544 gap: 10px;
545
546 .sp-pcp-settings-tools-radio {
547 display: flex;
548 align-items: center;
549 gap: 8px;
550 cursor: pointer;
551
552 input[type="radio"]="radio""] {
553 display: none;
554 }
555
556 .sp-pcp-settings-tools-radio-label {
557 color: #2F2F2F;
558 font-size: 13px;
559 line-height: 20px;
560 position: relative;
561 padding-left: 24px;
562
563 &::before {
564 content: '';
565 position: absolute;
566 left: 0;
567 top: 50%;
568 transform: translateY(-50%);
569 width: 16px;
570 height: 16px;
571 border-radius: 10px;
572 background: #FFFFFF;
573 border: 1px solid #949494;
574 }
575
576 &::after {
577 content: '';
578 position: absolute;
579 left: 5px;
580 top: 50%;
581 transform: translateY(-50%);
582 width: 8px;
583 height: 8px;
584 border-radius: 50%;
585 background: #FFFFFF;
586 opacity: 0;
587 transition: opacity 0.2s ease;
588 }
589 }
590
591 &.active {
592 .sp-pcp-settings-tools-radio-label {
593 &::before {
594 background: #3858E9;
595 border-color: #3858E9;
596 }
597
598 &::after {
599 opacity: 1;
600 }
601 }
602 }
603 }
604 }
605
606 .sp-pcp-settings-tools-file-input {
607 display: flex;
608 align-items: center;
609 gap: 12px;
610 border: 2px dashed transparent;
611 transition: all 0.2s ease;
612
613
614 .sp-pcp-settings-tools-file-btn {
615 background: #F0F0F0;
616 border: 1px solid #2F2F2F;
617 border-radius: 4px;
618 padding: 10px 16px;
619 color: #2F2F2F;
620 font-size: 13px;
621 font-weight: 500;
622 line-height: 13px;
623 cursor: pointer;
624 display: inline-block;
625 }
626
627 .sp-pcp-settings-tools-file-name {
628 color: #757575;
629 font-size: 13px;
630 line-height: 20px;
631 }
632
633
634 &.dragging {
635 border-style: dashed;
636 border-color: #641DD7;
637 background: #f6f0ff;
638 }
639 }
640
641 .sp-pcp-settings-tools-btn {
642 padding: 10px 16px;
643 border-radius: 4px;
644 border: none;
645 color: #FFFFFF;
646 font-size: 14px;
647 font-weight: 600;
648 line-height: 20px;
649 text-transform: capitalize;
650 cursor: pointer;
651 white-space: nowrap;
652 width: 150px;
653
654 &.sp-pcp-settings-tools-btn-primary {
655 background: #1A74E4;
656 border-color: #1A74E4;
657
658 &:hover {
659 background: #155DB7;
660 border-color: #155DB7;
661 }
662 }
663
664 &.sp-pcp-settings-tools-btn-secondary {
665 background: #BBBBBB;
666
667 &:hover {
668 background: #A8A8A8;
669 }
670
671 &.has-file {
672 background: #1A74E4;
673
674 &:hover {
675 background: #155DB7;
676 }
677 }
678 }
679 }
680 }
681 }
682
683 .sp-pcp-settings-tools-divider {
684 height: 1px;
685 background: #F0F0F0;
686 width: 100%;
687 }
688 }
689
690 /* Multi-select dropdown */
691 .sp-pcp-settings-tools-multiselect {
692 margin-top: 12px;
693
694 .sp-smart-post-select-field {
695 min-width: 260px;
696 }
697 }
698
699 /* React Select Multi-Select Styles */
700 .sp-pcp-settings-tools-multiselect {
701 margin-top: 12px;
702 min-width: 260px;
703
704 .sp-pcp-tools-multi-select {
705 .sp-pcp-tools__control {
706 min-height: 38px;
707 border: 1px solid #ddd;
708 border-radius: 4px;
709
710 &:hover {
711 border-color: #ddd;
712 }
713 }
714
715 .sp-pcp-tools__value-container {
716 padding: 2px 4px;
717 }
718
719 .sp-pcp-tools__multi-value {
720 background-color: #3858e9;
721 border-radius: 4px;
722 margin: 2px;
723 display: flex;
724 align-items: center;
725
726 .sp-pcp-tools__multi-value__label {
727 color: #fff;
728 font-size: 13px;
729 }
730
731 .sp-pcp-tools__multi-value__remove {
732 background: transparent;
733 border: none;
734 color: #fff;
735 cursor: pointer;
736
737 &:hover {
738 background: transparent;
739 color: #fff;
740 }
741 }
742 }
743
744 .sp-pcp-tools__placeholder {
745 color: #757575;
746 font-size: 13px;
747 }
748
749 .sp-pcp-tools__single-value,
750 .sp-pcp-tools__input {
751 font-size: 13px;
752 color: #2f2f2f;
753 }
754
755 .sp-pcp-tools__menu {
756 border: 1px solid #ddd;
757 border-radius: 4px;
758 box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
759 margin-top: 4px;
760
761 .sp-pcp-tools__menu-list {
762 padding: 4px 0;
763
764 .sp-pcp-tools__option {
765 padding: 8px 12px;
766 font-size: 13px;
767 cursor: pointer;
768
769 &:hover {
770 background-color: #f0f0f0;
771 }
772
773 &.sp-pcp-tools__option--is-selected {
774 background-color: #3858e9;
775 color: #fff;
776 }
777
778 &.sp-pcp-tools__option--is-focused {
779 background-color: #e0e0e0;
780 }
781 }
782 }
783 }
784
785 .sp-pcp-tools__indicator-separator {
786 display: none;
787 }
788
789 .sp-pcp-tools__dropdown-indicator,
790 .sp-pcp-tools__clear-indicator {
791 padding: 4px;
792 }
793
794 .sp-pcp-tools__input-container input {
795 box-shadow: none;
796 min-height: 26px;
797 }
798 }
799 }
800