PluginProbe
Customify / 1.7.0
Customify v1.7.0
2.10.9 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.7.1 1.3.0 1.3.1 1.4.0 1.4.1 1.4.2 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 1.5.7 1.6.0 1.6.0.1 1.6.5 1.7.0 1.7.1 All 77 releases
customify / scss / customizer.scss

customizer.scss in Customify 1.7.0, at scss/customizer.scss

2,532 lines 44.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 @charset "UTF-8";
2
3
4
5
6
7 //------------------------------------*\
8 // VARIABLES
9 //------------------------------------*/
10 $accent : #3677bd;
11 $dark : #232527;
12 $gray : #303235;
13 $light : #cbcfd4;
14 $lighter : #3b3f45; //borders
15 $descriptions : #4d7b90;
16
17 $borders :#e0e8ef;
18
19 $unit : 24px;
20 $popup : 275px;
21 $container-spacing : 17px;
22
23 $blue-dark : #416B7E;
24
25 $fields_height : 44px;
26 $fields_spacing : 24px;
27 $fields_border-radius : 4px;
28 $fields_border-color : #B8DAEB;
29
30 $background-hover : #f5fcff;
31
32
33
34
35
36 //------------------------------------*\
37 // RESETS
38 //------------------------------------*/
39 .wp-full-overlay-sidebar {
40 *, *:before, *:after {
41 box-sizing: border-box;
42 }
43 }
44
45 .iris-picker,
46 .iris-picker * {
47 box-sizing: content-box;
48 }
49
50 @mixin clearfix {
51 &:after {
52 content: " ";
53 display: table;
54 clear: both;
55 }
56 }
57
58 // Change sections overflow
59 .wp-full-overlay-sidebar-content .accordion-section-content {
60 overflow: visible;
61 }
62
63 .control-section:not(.control-section-themes) .customize-control {
64 padding: 0;
65 width:100%;
66 min-height: initial;
67 }
68
69
70 // Header – Close + Save Controls
71 #customize-header-actions {
72 // border-bottom: 0;
73 #customize-save-button-wrapper {
74 margin-top: 7px;
75 }
76 }
77
78 // Footer
79 .wp-full-overlay-footer {
80 .devices {
81 button {
82 float: left;
83 border-radius: 0;
84 }
85 }
86 }
87
88 // Temporary Fix to Make "Close" button align with the "Back"
89 .customize-controls-close {
90 width: 48px;
91 height: 44px;
92 color: #7da9c3;
93 background: #ffffff;
94 border-top: none;
95 border-right-color: $borders;
96
97 &:focus, &:hover {
98 background: $background-hover;
99 }
100
101 // "X" Icon
102 &:before {
103 top: 0px;
104 }
105 }
106
107 // Remove Accordion Section Title Margin
108 #customize-controls .customize-info {
109 // margin-bottom: 0;
110 border-bottom-color: $borders;
111 }
112
113 .customize-panel-back, .customize-section-back {
114 height: 74px;
115 color: #7da9c3;
116 border-right-color: $borders;
117
118 &:hover, &:focus {
119 border-left-color: $background-hover;
120 background: $background-hover;
121 }
122 }
123
124
125 #customize-theme-controls {
126 .theme * {
127 box-sizing: content-box;
128 }
129
130 .accordion-section-content {
131 padding: $container-spacing;
132 }
133
134 .customize-section-title {
135 margin-top: -$container-spacing;
136 margin-right: -$container-spacing;
137 // margin-left: -$container-spacing;
138 }
139
140 .control-panel-content {
141 .control-section:nth-child(2),
142 .control-section:nth-child(3) {
143 border-top: none;
144 }
145
146 // Select the Second to Last Element
147 // https://css-tricks.com/useful-nth-child-recipies/
148 .control-section:nth-last-child(2) {
149 border-bottom: 1px solid $borders;
150 }
151 }
152
153 #accordion-section-add_menu {
154 // text-align: right;
155 // overflow: visible;
156 border-bottom: none;
157
158 .add-menu-toggle {
159 float: none;
160 }
161 }
162
163 .customize-pane-child.open {
164 height: 100%;
165 }
166 }
167
168 #customize-controls .description {
169 margin-bottom: 9px;
170
171 font-size: 12px;
172 font-weight: 300;
173 font-style: normal;
174 line-height: 1.6;
175 color: $descriptions;
176 text-indent: 0;
177 }
178
179 .customize-control-description {
180 margin-top: 6px;
181 }
182
183 .customize-control {
184 margin-bottom: $fields-spacing;
185 }
186
187 // Active Themes Section
188 #accordion-section-themes {
189 +.control-section {
190 border-top: none;
191 }
192 }
193
194 // Subsection Info Title
195 #customize-controls {
196 .panel-meta.customize-info {
197 .accordion-section-title {
198 border-top: none;
199 height: 74px;
200 }
201 }
202 }
203
204 .button-controls {
205 @include clearfix();
206 }
207
208
209
210
211
212 //------------------------------------*\
213 // GENERAL FIELDS
214 //------------------------------------*/
215
216
217
218 // GENERAL Buttons
219
220 .wp-core-ui {
221
222 // Primary & Secondary Buttons
223 .button:not(.theme-details):not(.collapse-sidebar):not(.wp-color-result),
224 .button-primary,
225 .button-secondary {
226 width: auto;
227 // padding: 6px 20px;
228 padding-left: 15px;
229 padding-right: 15px;
230
231 // font-size: 13px;
232 font-weight: 400;
233 color: #F5FCFF;
234 // line-height: 1.4;
235 text-shadow: none;
236 border: none;
237 background: #AED2E5;
238 box-shadow: 0px 2px 0px 0px #8DBED7;
239 border-radius: $fields_border-radius;
240
241 &:hover {
242 color: white;
243 text-shadow: none;
244 background: #98C6DD;
245 box-shadow: 0px 2px 0px 0px #74A7C2;
246 }
247 }
248
249 #customize-header-actions {
250 .button-primary {
251 background: #73C5EE;
252 box-shadow: 0px 2px 0px 0px #57ABD5;
253
254 &:hover {
255 background: #58B0DD;
256 box-shadow: 0px 2px 0px 0px #3F8AAF;
257 }
258
259 &.save {
260
261 }
262
263 &.has-next-sibling {
264 border-right: 1px solid #57ABD5;
265 }
266
267 &:disabled {
268 color: white !important;
269 background: #AED2E5 !important;
270 opacity: 0.7;
271 box-shadow: 0px 2px 0px 0px #8db5ca !important;
272
273 &.has-next-sibling {
274 border-right: none;
275 }
276 }
277 }
278 }
279
280
281 // Reset Buttons
282 .reset_section,
283 .reset_panel {
284 width: 100%;
285 height: 4em;
286 display: block;
287 margin: 0px 0 25px;
288 }
289
290 .reset_panel {
291 margin-top: 10px;
292 }
293 }
294
295
296
297 // Separators Titles
298
299 %fields-label {
300 display: block;
301 font-size: 14px;
302 line-height: 24px;
303 font-weight: 600;
304 // margin-bottom: 5px;
305 }
306
307 .customize-control-title {
308 color: $blue-dark;
309 }
310
311 %section-background {
312 content: "";
313
314 position: absolute;
315 top: 0;
316 bottom: 0;
317 left: -$container-spacing - 1;
318 right: -$container-spacing - 1;
319 z-index: -1;
320 }
321
322 .separator {
323 &.label {
324 @extend %fields-label;
325 @extend .customize-control-title;
326 //margin-bottom: -3px;
327 //margin-bottom: -$fields-spacing/2 - 3px;
328
329 font-weight: 500;
330 }
331
332 &.large {
333 margin-top: $fields-spacing/2;
334 font-size: 16px;
335 color: #39474D;
336 }
337
338 &.section {
339 position: relative;
340 padding: 14px 0;
341 margin-bottom: 0;
342 background: none;
343 border: none;
344
345 &[id*="layout"]*="layout""] {
346 margin-top: 0;
347
348 &:before {
349 border: none;
350 }
351 }
352
353 &:before {
354 @extend %section-background;
355
356 border: 1px solid $borders;
357 background-color: #ffffff;
358 box-shadow: 0px 1px 0px 0px #DFE8EF;
359 }
360 }
361
362 &.sub-section {
363 position: relative;
364 padding: 12px 0;
365
366 &:before {
367 @extend %section-background;
368
369 border-top: 1px solid $borders;
370 border-bottom: 1px solid $borders;
371 background-color: #f6fbff;
372 }
373
374 + span {
375 margin-top: 20px;
376 font-style: normal;
377 }
378 }
379 }
380
381 // h2.separator {
382 // margin-bottom: -20px;
383 // margin-top: 30px;
384 // }
385
386
387
388 // Section tabs
389
390 .section-navigation-wrapper {
391 position: relative;
392
393 height: 43px;
394 margin: -15px -12px 0 -12px;
395 margin-right: -$container-spacing;
396 margin-left: -$container-spacing;
397 }
398
399 .section-navigation {
400 display: flex;
401 margin-top: -1px;
402
403 clear: both;
404
405 border-top: 1px solid $borders;
406
407 a {
408 flex: 1 1 auto;
409 display: block;
410 padding: 12px 0;
411
412 color: #3b484e;
413 background-color: #ffffff;
414
415 border-bottom: 1px solid $borders;
416 border-right: 1px solid $borders;
417
418 text-align: center;
419 text-decoration: none;
420
421 transition: background-color .15s ease-in-out;
422
423 &:last-child {
424 border-right: 0;
425 }
426 }
427 }
428
429 #customize-controls .customize-info,
430 #customize-controls .customize-section-title {
431 &.is-sticky.is-sticky {
432 top: 40px;
433 }
434
435 &.is-in-view.is-in-view {
436 box-shadow: none;
437 }
438 }
439
440 #customize-controls .has-nav .customize-info,
441 #customize-controls .has-nav .customize-section-title {
442 margin-right: -12px;
443 }
444
445 #customize-controls .customize-section-title.customize-section-title {
446 border-bottom: 0;
447 }
448
449 .customize-section-description-container.section-meta.has-nav {
450 margin-bottom: 0;
451 }
452
453 // Extended typography field
454
455 .font-options__wrapper {
456 position: relative;
457
458 //&:hover .font-options__options-list {
459 // opacity: 1;
460 // pointer-events: auto;
461 //}
462
463 &:after {
464 content: "";
465 position: absolute;
466 top: 90%;
467 left: 0;
468 right: 0;
469 z-index: 0;
470
471 display: block;
472 height: 30px;
473 }
474 }
475 .font-options__head {
476 @extend %input;
477 @extend %select;
478
479 display: flex;
480 justify-content: space-between;
481
482 &.font-options__head {
483 -webkit-appearance: none;
484
485 text-overflow: ellipsis;
486 // overflow: hidden;
487 white-space: nowrap;
488 }
489 }
490 .font-options__font-title {
491 margin-right: 26px;
492 margin-left: 10px;
493
494 font-size: 12px;
495 line-height: 20px;
496 font-weight: 300;
497
498 color: #98c6dd;
499
500 text-overflow: ellipsis;
501 overflow: hidden;
502 white-space: nowrap;
503 }
504
505 .font-options__options-list {
506 position: absolute;
507 top: calc(100% + 6px);
508 left: -6px;
509 right: -6px;
510 z-index: 2;
511
512 display: block;
513 padding: 10px;
514
515 border: 1px solid #dfe8ef;
516 border-radius: 5px;
517
518 background-color: #ffffff;
519
520 opacity: 0;
521 display: none;
522 //pointer-events: none;
523 transition: opacity .15s linear;
524
525 &:last-child {
526 margin-bottom: 0;
527 }
528
529 &:before,
530 &:after {
531 content: "";
532
533 position: absolute;
534 top: -20px;
535 right: 25px;
536
537 height: 0;
538 width: 0;
539
540 border: solid transparent;
541
542 z-index: 10;
543 }
544
545 &:before {
546 border-bottom-color: white;
547 border-width: 10px;
548 z-index: 11;
549 }
550
551 &:after {
552 border-bottom-color: rgba(0, 0, 0, 0.075);
553 border-width: 12px;
554 top: -24px;
555 right: 23px;
556 }
557 }
558
559
560
561
562
563 //------------------------------------*\
564 // OBJECTS
565 //------------------------------------*/
566 %top-arrow {
567 &:after {
568 content: "";
569 position: absolute;
570 bottom:100%;
571 right: 12px;
572 border-collapse: separate;
573 width: 0;
574 height: 0;
575
576 border-width: 0 9px 9px 9px;;
577 border-style: solid;
578 border-color: transparent transparent #fff transparent;
579 }
580 }
581
582 %box-bg {
583 position : absolute;
584 top : 60px;
585 right : -6px;
586 z-index : 100000;
587 width : $popup !important;
588 padding : 12px;
589 display : none;
590 background : #fff;
591 border-radius : 3px;
592 @extend %top-arrow;
593
594 &.active {
595 display:block;
596 }
597
598 &:after {
599 right : 58px;
600 border-color : transparent transparent #fff transparent;
601 }
602 }
603
604 %icon-btn {
605 position : absolute;
606 top : -36px;
607 right : 45px;
608 display : block;
609 height : 30px;
610 width : 30px;
611 margin : 0;
612 padding : 0;
613 border : none;
614 background : #1d1e20;
615 color : #5f6369;
616 border-radius : (100px);
617 box-shadow: rgba(0, 0, 0, 0.1) 0 2px 0px inset;
618 line-height : 30px;
619 text-align : center;
620 cursor : pointer;
621 outline : none;
622
623 &:before {
624 font-family: 'Elusive-Icons';
625 content: "\e669";
626 }
627
628 &:hover, &.active {
629 background : $lighter;
630 }
631
632 &.active {
633 box-shadow: rgba(0, 0, 0, 0.4) 0 1px 1px;
634 }
635 }
636
637
638
639 //------------------------------------*\
640 // $INPUT FIELDS
641 //------------------------------------*/
642
643 %input {
644 width: 100%;
645 height: $fields_height;
646 padding: 10px 14px;
647
648 background: #FFFFFF;
649 border: 2px solid $fields_border-color;
650 border-radius: 4px;
651
652 font-size: 14px;
653 line-height: 1.5;
654 color: $blue-dark;
655 outline: 0;
656
657 &:focus {
658 border-color: #73C5EE;
659 box-shadow: none;
660 // box-shadow: 0 0 0 2px #73C5EE;
661 }
662 }
663
664 %select {
665 width: 100%;
666 -webkit-appearance: button; // hide default arrow in WebKit/Blink
667 -moz-appearance: none; // hide default arrow in Gecko
668
669 font-weight: 600;
670
671 background: white url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+Cjxzdmcgd2lkdGg9IjE1cHgiIGhlaWdodD0iOXB4IiB2aWV3Qm94PSIwIDAgMTUgOSIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIj4KICAgIDxkZWZzPjwvZGVmcz4KICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSJDdXN0b21pZnktQ29weS0yIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMjU2LjAwMDAwMCwgLTM4Ni4wMDAwMDApIiBmaWxsPSIjOThDNkRFIj4KICAgICAgICAgICAgPGcgaWQ9IkhlYWRlciIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTIxLjAwMDAwMCwgNDcuMDAwMDAwKSI+CiAgICAgICAgICAgICAgICA8ZyBpZD0iQ29udGVudCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTAuMDAwMDAwLCA3NS4wMDAwMDApIj4KICAgICAgICAgICAgICAgICAgICA8ZyBpZD0iVGl0bGUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDI2LjAwMDAwMCwgMjE5LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgICAgICAgICA8ZyBpZD0iRmllbGQtLS1TZWxlY3QtQ29weSI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8ZyBpZD0iU2VsZWN0IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLjAwMDAwMCwgMjcuMDAwMDAwKSI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHBhdGggZD0iTTI1NC40ODEyLDE4IEwyNTYsMTkuNTE0IEwyNDguNSwyNyBMMjQxLDE5LjUxNCBMMjQyLjUxODgsMTggTDI0OC41LDIzLjk2NzIgTDI1NC40ODEyLDE4IFoiIGlkPSJQYWdlLTEiPjwvcGF0aD4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvZz4KICAgICAgICAgICAgICAgICAgICAgICAgPC9nPgogICAgICAgICAgICAgICAgICAgIDwvZz4KICAgICAgICAgICAgICAgIDwvZz4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+) no-repeat;
672 background-position: right 16px top 16px;
673
674 &[multiple]] {
675 background: white;
676 }
677 }
678
679 .wp-full-overlay-sidebar-content .customize-control {
680
681 input[type=text]=text]:not(#_customize-input-wpcom_custom_css_content_width_control):not(.wp-color-picker),
682 input[type=checkbox]=checkbox],
683 input[type=password]=password],
684 input[type=color]=color],
685 input[type=date]=date],
686 input[type=datetime]=datetime],
687 input[type=datetime-local]=datetime-local],
688 input[type=email]=email],
689 input[type=month]=month],
690 input[type=number]=number],
691 input[type=radio]=radio],
692 input[type=tel]=tel],
693 input[type=time]=time],
694 input[type=url]=url],
695 input[type=week]=week],
696 input[type=search]=search],
697 select,
698 textarea,
699 input[type="number"]="number""].range-value {
700 @extend %input;
701 }
702
703 input[type=text]=text],
704 textarea {
705 font-size: 13px;
706 }
707
708 input[type=text]=text] {
709
710 }
711
712 // Textarea
713 textarea {
714 height: auto;
715 }
716
717 // Checkbox
718 input[type=checkbox]=checkbox],
719 input[type=radio]=radio] {
720 width: $fields_height/2;
721 height: $fields_height/2;
722
723 &:checked {
724 background: #73C5EE;
725 border-color: #5AB9E8;
726
727 &:before {
728 color: white;
729 margin: -1px 0 0 -2px;
730 }
731 }
732 }
733
734 .awesome_preset input[type=radio]=radio]:checked {
735 background: transparent;
736 }
737
738 &.customize-control-checkbox:not(#customize-control-jetpack_css_mode_control),
739 &.customize-control-radio {
740
741 // Split into two columns only when
742 // there is more than one label
743 label:not(:only-of-type),
744 // WordPress 4.9 Class
745 > .customize-inside-control-row:not(:only-of-type) {
746 margin-left: 30px;
747 padding-top: 0;
748 padding-bottom: 0;
749 display: inline-block;
750
751 width: calc(49% - 30px);
752
753 text-indent: -6px;
754
755 }
756
757 label {
758 color: $blue-dark;
759
760 }
761
762 // Except the dividers titles
763 [id*="divider"]*="divider""] + & {
764 margin-top: 0;
765 }
766 }
767
768 // Radios
769 input[type=radio]=radio] {
770 border-radius: 50%;
771
772 &:checked:before {
773 content: none;
774 }
775 }
776
777 &.customize-control-checkbox {
778 // Select HTML Labels followed by a Checkbox field
779 .customize-control-html + & {
780 margin-top: -24px;
781 }
782 }
783
784 &.customize-control-radio {
785 label,
786 // WordPress 4.9 Class
787 .customize-inside-control-row {
788 margin-top: $fields-spacing/2;
789
790 }
791
792 // New WP 4.9 Changesets options
793 &#customize-control-changeset_status .customize-inside-control-row {
794 margin-top: 0;
795 text-indent: 0;
796 }
797 }
798
799 // Select
800 select {
801 @extend %select;
802 }
803
804
805 // Range Field
806 input[type="range"]="range""] {
807 width: 65%;
808 }
809
810 $input-size: calc(100% - 55px);
811 $input-height: 6px;
812 $thumb-height: 22px;
813
814 input[type="range"]="range""] {
815 position: relative;
816 -webkit-appearance: none;
817 width: $input-size;
818 height: $thumb-height;
819 overflow: hidden;
820 outline: none;
821 background: none;
822
823 &:before {
824 content: " ";
825 position: absolute;
826 top: 8px;
827 left: 0;
828 height: $input-height;
829 width: 100%;
830 background: #DFE8EF;
831 box-shadow: inset 0px 1px 3px 0px rgba(0,0,0,0.30);
832 border-radius: 10px;
833 }
834
835 &::-webkit-slider-thumb {
836 -webkit-appearance: none;
837 width: $thumb-height;
838 height: $thumb-height;
839 background: #27ae60;
840 position: relative;
841 z-index: 3;
842
843 background: #FFFFFF;
844 border: 2px solid #B8DAEB;
845 border-radius: 4px;
846
847 &:before {
848 content: "..";
849 position: absolute;
850 left: 5px;
851 top: -5px;
852 color: #B8DAEB;
853 font-size: 1em;
854 letter-spacing: 1px;
855 }
856
857 &:after {
858 content: " ";
859 width: $input-size;
860 height: $input-height;
861 position: absolute;
862 z-index: 1;
863 right: $thumb-height - 2px;
864 top: $input-height;
865 background: #73C5EE;
866 }
867 }
868 }
869
870
871 input[type="number"]="number""].range-value {
872 min-width: 40px;
873 max-width: 80px;
874 width: auto;
875 height: 30px;
876 top: -5px;
877 float: right;
878 padding: 4px 0px 5px 0px;
879 margin-left: 10px;
880 font-size: 13px;
881 line-height: 1;
882 text-align: center;
883 }
884
885 input[type=number]=number]::-webkit-inner-spin-button,
886 input[type=number]=number]::-webkit-outer-spin-button {
887 -webkit-appearance: none;
888 margin: 0;
889 }
890 }
891
892
893
894
895
896 //------------------------------------*\
897 // Color Picker
898 //------------------------------------*/
899
900 .customize-control-color {
901 display: block;
902
903 .customize-control-title {
904 float:left;
905 }
906 .customize-control-content {
907
908 }
909
910 .wp-picker-container {
911 position : relative;
912 float : right;
913 top : -3px;
914
915
916 .wp-picker-holder {
917 position: relative;
918 }
919
920 .wp-color-result,
921 .wp-color-result.button {
922 top : 0;
923 height : 30px;
924 width : 40px;
925 margin : 0;
926 padding : 0;
927
928 border-radius: $fields_border-radius;
929 background: #2ECC71;
930 border: 2px solid #B8DAEB;
931 box-shadow: none;
932
933 &:after,
934 .wp-color-result-text {
935 display:none;
936 }
937 }
938
939 .iris-picker {
940 position : absolute;
941 top : 40px;
942 right : 0;
943 z-index : 1000;
944 width : $popup !important;
945 border-top : none;
946 border-color: #DFDFDE;
947 border-radius: 0 0 3px 3px;
948 border : none;
949 background : white;
950
951 &, * {
952 box-sizing: content-box;
953 }
954
955 .iris-picker-inner {
956
957 }
958 .iris-square {
959 width : 215px !important;
960 height : 173px !important;
961 margin-right : 0;
962 }
963 .iris-strip {
964 float : right;
965 box-shadow: rgba(0,0,0,0.4) 0 1px 1px inset;
966 .ui-slider-handle {
967 border-color : #aaa !important;
968 opacity : 1;
969 box-shadow: none;
970 }
971 }
972 .iris-palette {
973 width : 24px !important;
974 height : 24px !important;
975 border-radius: 50px;
976 box-shadow: rgba(0,0,0,0.4) 0 1px 1px inset;
977 }
978 }
979
980 .wp-picker-open+.wp-picker-input-wrap {
981 position : absolute;
982 z-index : 1000;
983 top : 35px;
984 right : 0;
985 width : $popup;
986 padding : 9px 12px;
987 background : white;
988 border : none;
989 border-radius: 3px 3px 0 0;
990 @extend %top-arrow;
991
992 input {
993
994 &.wp-color-picker {
995 float:left;
996 width: 100px;
997 font-size: 13px;
998 text-align: left;
999 margin: 0;
1000 padding: 6px 12px;
1001 height: auto;
1002 }
1003
1004 &.button {
1005 float:right;
1006 padding: 4px 12px;
1007 height: 30px;
1008 }
1009 }
1010 }
1011 }
1012 }
1013
1014
1015
1016
1017 //------------------------------------*\
1018 // Font Selector
1019 //------------------------------------*/
1020
1021 .customize-control-font {
1022
1023 // Add extra bottom spacing to better view the modal
1024 &:last-child {
1025 margin-bottom: 150px;
1026 }
1027 }
1028
1029
1030
1031 //------------------------------------*\
1032 // CSS Editor Customizer
1033 //------------------------------------*/
1034
1035 // Panel
1036 #accordion-panel-live_css_edit_panel {
1037
1038 }
1039
1040 // Section
1041 #accordion-section-live_css_edit_section {
1042
1043 // Add the default border to title
1044 .customize-section-title {
1045 margin-top: -13px;
1046 border-bottom: 1px solid #ddd;
1047 }
1048 // Ace Editor
1049 #css_editor {
1050 top: 70px;
1051 border-top: 10px solid white;
1052 overflow: visible;
1053
1054 &:before {
1055 content: "";
1056 width: 48px;
1057 height: 10px;
1058 display: block;
1059 background: #e8e8e8;
1060 top: -10px;
1061 position: absolute;
1062 z-index: 10000000;
1063 left: 0;
1064 }
1065 }
1066
1067 // Add Some Extra Spacing Around the Editor Content
1068 .ace_scroller {
1069 padding-left: 10px;
1070 }
1071 }
1072
1073 // Increase the Customizer width when Editor is opened
1074 .wp-full-overlay.editor_opened {
1075
1076 margin-left: 500px;
1077
1078 #customize-controls {
1079 width: 500px;
1080 }
1081
1082 // Go back when the Customizer is collapsed
1083 &.collapsed #customize-controls {
1084 width: 300px;
1085 }
1086 }
1087
1088
1089
1090
1091
1092 //------------------------------------*\
1093 // Media Uploader (Logo)
1094 //------------------------------------*/
1095
1096 .customize-control-media,
1097 .customize-control-site_icon,
1098 li#customize-control-site_logo {
1099 .current {
1100 margin-bottom: 10px;
1101 min-height: $fields_height;
1102 background: #F5FCFF;
1103 border: 2px solid $fields_border-color;
1104 border-radius: $fields_border-radius;
1105
1106 .container, span {
1107 border: none;
1108 }
1109 }
1110
1111
1112 .inner, .current span {
1113 font-size: 13px;
1114 color: #98C6DD;
1115 }
1116
1117 .inner {
1118 line-height: 1.4;
1119 }
1120
1121 .thumbnail-image {
1122 padding: 14px;
1123 text-align: center;
1124
1125 img {
1126 width: auto;
1127 }
1128 }
1129
1130 .actions {
1131 margin-bottom: 0;
1132 }
1133 }
1134
1135
1136
1137
1138
1139 //------------------------------------*\
1140 // TYPOGRAPHY
1141 //------------------------------------*/
1142
1143 .customize-control-typography, .customize-control-typography {
1144
1145 // Font, Weight and Subsets selectors
1146 select {
1147 margin-bottom: 10px;
1148 }
1149
1150 .description {
1151 margin-top: -3px;
1152 }
1153
1154 &:not(:first-child) .customize-control-title {
1155 // margin-top: 15px;
1156 }
1157
1158 ul li {
1159 width: 100%;
1160 margin: 0;
1161 // display: inline-table;
1162
1163 &:nth-child(2n+1) {
1164 // width: 45%;
1165 // margin-right: 5%;
1166 }
1167
1168 label {
1169 // width: 100%;
1170 // display: block;
1171
1172 // margin-top: 10px;
1173 // margin-bottom: 5px;
1174 }
1175
1176 select {
1177 // width: 100%;
1178 }
1179 }
1180
1181 .customify_typography_font_weight {
1182
1183 }
1184
1185 .customify_typography_font_subsets {
1186 // height: 28px;
1187 }
1188 }
1189
1190 .customize-control select[multiple]].customify_typography_font_subsets {
1191 // height: 48px;
1192 }
1193
1194
1195
1196
1197
1198 //------------------------------------*\
1199 // PRESETS
1200 //------------------------------------*/
1201
1202 .customize-control-title {
1203 // margin-bottom: 20px;
1204 }
1205
1206 .default-preset-button {
1207 background-color: #F5F6F6;
1208 float: right;
1209 padding: 1px 8px;
1210 border-radius: 3px;
1211 border: 1px solid #CBCBCB;
1212 margin-right: 4px;
1213 font-family: "Open Sans",sans-serif;
1214 font-size: 13px;
1215
1216 }
1217
1218 .customize-control-preset {
1219 .description {
1220 margin-right: 5px;
1221 font-style: normal;
1222 }
1223 }
1224
1225 .customify_preset {
1226 &.radio_buttons {
1227
1228 .customify_radio_button {
1229 border: none;
1230 display: inline-block;
1231 padding: 2px;
1232 margin: 3px;
1233 position: relative;
1234 overflow: hidden;
1235 height: auto;
1236
1237 input[type="radio"]="radio""] {
1238 opacity: 0;
1239 width: 100%;
1240 height: 100%;
1241 position: absolute;
1242 z-index: 9999;
1243
1244 &:checked{
1245
1246 &+label {
1247 background-color: #ebebeb;
1248 &:before {
1249 content: '>';
1250 color: inherit;
1251 }
1252 &:after {
1253 content: '<';
1254 color: inherit;
1255 }
1256 }
1257
1258 &:before {
1259 opacity: 0;
1260 }
1261 }
1262 }
1263
1264 label{
1265 position: relative;
1266 z-index: 999;
1267 border-left: 4px solid;
1268
1269 }
1270 }
1271
1272 }
1273
1274 .awesome_preset {
1275 width: 45%;
1276 // height: 122px;
1277 position: relative;
1278 display: inline-block;
1279 text-align: center;
1280 color: white;
1281
1282 margin-top: 5px;
1283 margin-bottom: 25px;
1284
1285 transition: all 0.2s;
1286
1287 &:hover {
1288 opacity: 0.9;
1289 }
1290
1291 &:before {
1292 content: '';
1293 position: absolute;
1294 top: 1px;
1295 left: 1px;
1296 right: 1px;
1297 bottom: 1px;
1298
1299 border: 1px solid #FFF;
1300 background: transparent;
1301 opacity: .5;
1302 border-radius: 4px;
1303 z-index: 5
1304 }
1305
1306 .preset-wrap {
1307 // height: 110px;
1308
1309 .preset-color {
1310 height: 128px;
1311 border-radius: 4px 4px 0 0;
1312 padding: 17px 0 27px;
1313
1314 .first-font {
1315 display: inline-block;
1316 width: 100%;
1317 font-size: 55px;
1318 line-height: 1;
1319 // padding-top: 23px;
1320 }
1321 .secondary-font {
1322 display: inline-block;
1323 width: 100%;
1324 font-size: 20px;
1325 line-height: 1;
1326 margin-top: 8px;
1327 }
1328 }
1329
1330 .preset-name {
1331 position: relative;
1332 font-size: 11px;
1333 text-transform: UPPERCASE;
1334 border-radius: 0 0 4px 4px;
1335 padding: 1px;
1336
1337 &:before {
1338 content: '';
1339 position: absolute;
1340 border-color: inherit;
1341 border: 10px solid;
1342 border-left-color: transparent;
1343 border-right-color: transparent;
1344 border-top: transparent;
1345 top: -10px;
1346 border-bottom-color: inherit;
1347 left: 40%;
1348
1349 }
1350 }
1351 }
1352
1353 &:nth-child(odd) {
1354 margin-right: 7%
1355 }
1356
1357 input[type=radio]=radio] {
1358 height: 100%;
1359 width: 100%;
1360 position: absolute;
1361 border: 0;
1362 box-shadow: none;
1363 color: #006505;
1364 background-color: transparent;
1365 border-radius: 0;
1366 margin: 0;
1367 display: inline-block;
1368 top:0;
1369 left:0;
1370 z-index:10;
1371
1372 &:checked {
1373
1374 &:before {
1375 position: absolute;
1376 height: 25px;
1377 width: 25px;
1378 top: -13px;
1379 right: -14px;
1380 background: #FFF;
1381 z-index: 1;
1382 }
1383
1384 &:after {
1385 -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
1386 filter: alpha(opacity=0);
1387 content: '';
1388 position: absolute;
1389 width: 26px;
1390 height: 26px;
1391 border-radius: 50%;
1392 top: -5px;
1393 right: -5px;
1394 z-index: 10;
1395
1396 background: #73C5EE url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+Cjxzdmcgd2lkdGg9IjEzcHgiIGhlaWdodD0iOXB4IiB2aWV3Qm94PSIwIDAgMTMgOSIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIj4KICAgIDxkZWZzPjwvZGVmcz4KICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSJDdXN0b21pZnktQ29weSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTIxLjAwMDAwMCwgLTQwOC4wMDAwMDApIiBmaWxsPSIjRkZGRkZGIj4KICAgICAgICAgICAgPGcgaWQ9IkhlYWRlciIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTIxLjAwMDAwMCwgNDcuMDAwMDAwKSI+CiAgICAgICAgICAgICAgICA8ZyBpZD0iQ29udGVudCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTAuMDAwMDAwLCA3NS4wMDAwMDApIj4KICAgICAgICAgICAgICAgICAgICA8ZyBpZD0iRmllbGQtLS1DaGVja2JveC1Db3B5IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyNy4wMDAwMDAsIDI0OS4wMDAwMDApIj4KICAgICAgICAgICAgICAgICAgICAgICAgPGcgaWQ9IkNoZWNrYm94IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLjAwMDAwMCwgMzAuMDAwMDAwKSI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8cGF0aCBkPSJNMTAuMDM4NDk1LDE2IEwxNy4xMTYxMzc1LDguOTIxNDg3NiBMMTUuMTk0NjQ5OCw3IEwxMC4wMzg0OTUsMTIuMTU1MDY3NCBMNi45MjE0ODc2LDkuMDM4OTI5OTcgTDUsMTAuOTYwNDE3NiBMMTAuMDM4NDk1LDE2IFoiIGlkPSJQYWdlLTEiPjwvcGF0aD4KICAgICAgICAgICAgICAgICAgICAgICAgPC9nPgogICAgICAgICAgICAgICAgICAgIDwvZz4KICAgICAgICAgICAgICAgIDwvZz4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+) no-repeat;
1397 background-position: center center;
1398 }
1399 }
1400 }
1401
1402 }
1403 }
1404
1405 .customify_radio_image {
1406 display: inline-block;
1407 label {
1408 display: block;
1409 float: left;
1410 margin-right: 10px;
1411 position: relative;
1412
1413 input[type=radio]=radio] {
1414 position: absolute;
1415 top:0;bottom: 0;
1416 left: 0;right: 0;
1417 width: 100%;
1418 height: 100%;
1419
1420 visibility: hidden;
1421
1422 img {
1423 cursor:pointer;
1424 border:2px solid transparent;
1425 }
1426
1427 &:checked + img{
1428 border: 3px solid #73C5EE;
1429 }
1430 }
1431 }
1432 }
1433
1434 .customify_ace_editor {
1435 display: block;
1436 min-height: 200px;
1437 border: 1px solid #ddd;
1438 }
1439
1440 .customize-control-custom_background {
1441 .hide {
1442 display: none;
1443 }
1444
1445 .upload_button_div {
1446 margin: 10px 0;
1447
1448 & > * {
1449 margin-right: 10px;
1450 }
1451 }
1452
1453 .preview_screenshot {
1454 text-align: center;
1455 margin: 10px 0;
1456 img {
1457 border: 2px solid #ccc;
1458 }
1459 }
1460 }
1461
1462 #customify_import_demo_data_button {
1463 width: 70%;
1464 text-align: center;
1465 padding: 10px;
1466 display: inline-block;
1467 height: auto;
1468 margin: 0 15% 10% 15%;
1469 }
1470
1471 .import_step_note {
1472 margin: 5px;
1473 width: 100%;
1474 display: inline-block;
1475
1476
1477 &:before {
1478 content: "\1F449";
1479 }
1480
1481 &.success:before {
1482 content: "\1F44D";
1483 }
1484
1485 &.failed:before {
1486 content: "\274C";
1487 }
1488 }
1489
1490 @import 'theme';
1491 @import 'balloon';
1492 @import 'feedback-modal';
1493
1494
1495
1496
1497
1498 //------------------------------------*\
1499 // FONT Field
1500 //------------------------------------*/
1501
1502 .font-options__wrapper {
1503
1504 .font-options__options-list {
1505 border-color: #B8DAEB;
1506 box-shadow: 0 10px 20px 0 rgba(0,0,0,0.15);
1507 }
1508
1509 .font-options__option {
1510 margin-bottom: 12px;
1511 label {
1512 display: block;
1513 margin-bottom: 6px;
1514 }
1515 }
1516
1517 [type=checkbox]=checkbox]:checked ~ .font-options__options-list {
1518 opacity: 1;
1519 display: block;
1520 }
1521 }
1522
1523 input.customify_font_tooltip {
1524 display: none;
1525 }
1526
1527 .font-options__option select,
1528 .font-options__option input,
1529 .select2-container {
1530 // width: 100% !important; // am pus important pentru ca exista un inline de 100px
1531 }
1532
1533 ul.font-options__options-list {
1534 .font-options__option {
1535
1536 }
1537
1538 .select2-container {
1539 width: 100% !important;
1540 .select2-selection--single {
1541 @extend %input;
1542 @extend %select;
1543 -webkit-appearance: initial;
1544
1545 .select2-selection__arrow {
1546 display: none;
1547 }
1548 }
1549 }
1550
1551 .select2-container--default
1552 .select2-selection--single
1553 .select2-selection__rendered {
1554 color: inherit;
1555 line-height: initial;
1556 }
1557
1558 }
1559
1560 //------------------------------------*\
1561 // SELECT2
1562 //------------------------------------*/
1563
1564
1565 .select2-container.select2-container--open {
1566 z-index: 99999999;
1567 }
1568
1569 #customize-theme-controls .select2-container {
1570 width: 100% !important;
1571
1572 .select2-selection--multiple {
1573 @extend %input;
1574 @extend %select;
1575 -webkit-appearance: initial;
1576
1577 padding: 4px 8px 4px;
1578 height: auto;
1579 background: none;
1580
1581 .select2-selection__arrow {
1582 display: none;
1583 }
1584
1585 .select2-selection__rendered {
1586 padding: 0;
1587 display: flex;
1588
1589 .select2-search--inline {
1590 flex: 1;
1591
1592 .select2-search__field[class]] {
1593 min-width: 100%;
1594 border-width: 0;
1595 margin-top: 3px !important;
1596 }
1597 }
1598
1599 .select2-selection__choice {
1600 padding: 3px 7px;
1601 margin-right: 6px;
1602 margin-top: 0px;
1603
1604 border-color: $borders;
1605 background-color: #f6fbff;
1606 }
1607 }
1608
1609 }
1610 .select2-search--inline {
1611
1612 .select2-search__field {
1613 height: 29px;
1614 min-width: 9em;
1615 margin-top: 0;
1616 }
1617 }
1618
1619 }
1620
1621 .select2-container--default .select2-results__option[aria-selected=true]=true][class]] {
1622 background: transparent;
1623 opacity: 0.3;
1624 pointer-events: none;
1625 }
1626
1627 .select2-container {
1628 .select2-dropdown {
1629 border-color: $borders;
1630 }
1631 }
1632
1633
1634
1635
1636
1637 //------------------------------------*\
1638 // Widgets Options Accordion System
1639 //------------------------------------*/
1640 .pixelgrade-widget-title {
1641
1642 }
1643
1644 #customize-theme-controls .widget-content {
1645 .accordion-container {
1646
1647 // Stick the container to the margins
1648 margin-left: -10px;
1649 margin-right: -10px;
1650
1651 margin-top: 20px;
1652 margin-bottom: 10px;
1653
1654 .accordion-section {
1655
1656 .accordion-section-content {
1657 position: relative;
1658 left: 0;
1659
1660 max-height: 0;
1661 padding-top: 0;
1662 padding-bottom: 0;
1663
1664 overflow: hidden;
1665 transition: all .4s ease;
1666
1667 color: $blue-dark;
1668
1669 p {
1670 &:first-child {
1671 margin-top: 0;
1672 }
1673
1674 &:last-child {
1675 margin-bottom: 0;
1676 }
1677 }
1678
1679 }
1680
1681 .accordion-section-title {
1682 color: #39474D;
1683
1684 &:after {
1685 content: "\f142"; // Change arrow style to be more consistent
1686 transform: rotate(180deg);
1687
1688 }
1689 }
1690
1691 &.closed {
1692 .accordion-section-content {
1693
1694 }
1695 }
1696
1697 &.open {
1698 border-bottom: none;
1699
1700 .accordion-section-content {
1701 max-height: 100%;
1702 padding-top: 17px; //default
1703 padding-bottom: 17px; //default
1704 }
1705
1706 .accordion-section-title {
1707 border-bottom: 1px solid;
1708
1709 &:after {
1710 transform: rotate(0deg);
1711 }
1712 }
1713 }
1714 }
1715
1716 label.customize-control-title {
1717 cursor: default;
1718 }
1719 }
1720 }
1721
1722 .widget {
1723 .widget-content {
1724 > p {
1725 input[type=checkbox]=checkbox],
1726 input[type=radio]=radio] {
1727 margin-bottom: 3px;
1728 margin-top: 3px;
1729 }
1730 }
1731
1732 small {
1733 margin-top: 5px;
1734 display: block;
1735 }
1736 }
1737 }
1738
1739
1740 // Widgets Icons
1741 #available-widgets {
1742 [class*=pixelgrade]*=pixelgrade],
1743 [class*=featured-posts]*=featured-posts],
1744 [class*=categories-image-grid]*=categories-image-grid] {
1745 .widget .widget-title:before {
1746 content: "\f538";
1747 color: #9660c6; // Branding Icons
1748 }
1749 }
1750
1751 // Slideshow
1752 [class*=pixelgrade-featured-posts-slideshow]*=pixelgrade-featured-posts-slideshow] .widget .widget-title:before {
1753 content: "\f233"; // images-alt2
1754 }
1755
1756 // Carousel
1757 [class*=pixelgrade-featured-posts-carousel]*=pixelgrade-featured-posts-carousel] .widget .widget-title:before {
1758 content: "\f169";
1759 }
1760
1761 // Grid Posts
1762 [class*=featured-posts-grid]*=featured-posts-grid] .widget .widget-title:before {
1763 content: "\f180";
1764 }
1765
1766 // List Posts
1767 [class*=featured-posts-list]*=featured-posts-list] .widget .widget-title:before {
1768 content: "\f164";
1769 }
1770
1771 // Categories Image
1772 [class*=categories-image-grid]*=categories-image-grid] .widget .widget-title:before {
1773 content: "\f163"; // list-view
1774 }
1775
1776 // Promo Box
1777 [class*=pixelgrade-promo-box]*=pixelgrade-promo-box] .widget .widget-title:before {
1778 content: "\f488"; // Megaphone
1779 }
1780
1781 }
1782
1783 .ui-tooltip {
1784 z-index: 999999;
1785 }
1786
1787
1788
1789
1790
1791
1792 //------------------------------------*\
1793 // Jetpack Widget Visibility
1794 //------------------------------------*/
1795
1796 .wp-customizer .widget-conditional {
1797 .condition-control { @include clearfix(); }
1798
1799 .selection {
1800 padding-right: 50px;
1801 padding-left: 28px;
1802 padding-bottom: 19px;
1803 margin-left: 0;
1804 margin-right: 0;
1805 margin-bottom: 10px;
1806 border-bottom: 1px solid $light;
1807 }
1808
1809 .condition:last-child .selection {
1810 border: 0;
1811 }
1812
1813 select {
1814 max-width: 100%;
1815 width: 170px;
1816 }
1817
1818 .condition-top select {
1819 width: 130px;
1820 }
1821 }
1822
1823
1824
1825 //------------------------------------*\
1826 // STYLE MANAGER
1827 //------------------------------------*/
1828
1829 $palette_box_shadow: inset 0 0 3px 0 rgba(0,0,0,0.15), inset 0 1px 3px 0 rgba(0,0,0,0.15);
1830 $palette_box_shadow_stronger: inset 0 2px 3px 0 rgba(0,0,0,0.15), inset 0 0 3px 0 rgba(0,0,0,0.15);
1831
1832 .pix_customizer_setting {
1833 .customize-inside-control-row {
1834 position: relative;
1835 width: 100% !important;
1836 margin-left: 0 !important;
1837 text-indent: 0 !important;
1838 background-size: cover;
1839 background-position: 50% 50%;
1840 height: 64px;
1841 border-radius: 5px;
1842 overflow: hidden;
1843
1844 &:before {
1845 content: '';
1846 position: absolute;
1847 top: 0;
1848 bottom: 0;
1849 left: 0;
1850 right: 0;
1851 z-index: 10;
1852 pointer-events: none;
1853
1854 box-shadow: $palette_box_shadow;
1855 }
1856
1857 // Color Palette Hover
1858 &:hover {
1859
1860 &:before {
1861 // Increase the inner shadow strongness
1862 box-shadow: $palette_box_shadow_stronger;
1863 }
1864
1865 .palette__item {
1866 transform: translateY(0%);
1867 }
1868
1869 label {
1870 left: 10px;
1871 }
1872 }
1873
1874 input {
1875 opacity: 0;
1876 }
1877
1878 input:checked + label {
1879 .preview__letter--checked {
1880 display: inline-block;
1881 vertical-align: middle;
1882 }
1883 .preview__letter {
1884 display: none;
1885 }
1886 }
1887
1888 label {
1889 position: absolute;
1890 display: flex;
1891 z-index: 2;
1892
1893 width: 100%;
1894 height: 100%;
1895 top: 0;
1896 left: 0;
1897
1898 padding: 0 10px;
1899 margin-top: 0 !important;
1900 align-items: center;
1901
1902 transition: all .3s ease;
1903 }
1904
1905 .palette {
1906 position: absolute;
1907 display: flex;
1908 top: 0;
1909 left: 0;
1910 z-index: 1;
1911 width: 100%;
1912 height: 100%;
1913
1914 transition: all .2s ease;
1915 }
1916
1917 // Colors Bars
1918 .palette__item {
1919 flex: 1;
1920 transform: translateY(100%);
1921
1922 transition: all .3s ease;
1923
1924 // Assume maximum 10 colors
1925 @for $i from 1 through 10 {
1926 &:nth-child(#{$i}) {
1927 transition-delay: 0s + $i/20 - 1/20;
1928
1929 // PLAYGROUND:
1930 // Size items based on color accent
1931 // Higher size for accent colors
1932 // Lower sizes for light colors
1933
1934 // flex-grow: 1/$i * 10 + $i/10;
1935 }
1936 }
1937 }
1938
1939 .preview__letter,
1940 .preview__letter--checked {
1941 display: inline-block;
1942 padding: 3px;
1943 border-radius: 2px;
1944 color: white;
1945 margin-right: 5px;
1946 min-height: 26px;
1947 min-width: 26px;
1948 text-align: center;
1949 background-position: center center;
1950 background-repeat: no-repeat;
1951 background-size: 15px 15px;
1952 font-style: normal;
1953 vertical-align: baseline;
1954 }
1955
1956 .preview__letter--checked {
1957 display: none;
1958 }
1959 }
1960 }
1961
1962 [id*="sm_current_color_palette_control"]*="sm_current_color_palette_control""] {
1963 .customize-inside-control-row .palette__item[class]] {
1964 transform: none;
1965 }
1966
1967 .variation-control {
1968 display: flex;
1969 }
1970
1971 .variation-control-item {
1972 &.active {
1973
1974 }
1975 }
1976 }
1977
1978 [id="customize-control-sm_color_primary_control"]="customize-control-sm_color_primary_control""],
1979 [id="customize-control-sm_dark_primary_control"]="customize-control-sm_dark_primary_control""],
1980 [id="customize-control-sm_light_primary_control"]="customize-control-sm_light_primary_control""],
1981 [id="customize-control-sm_color_secondary_control"]="customize-control-sm_color_secondary_control""],
1982 [id="customize-control-sm_dark_secondary_control"]="customize-control-sm_dark_secondary_control""],
1983 [id="customize-control-sm_light_secondary_control"]="customize-control-sm_light_secondary_control""],
1984 [id="customize-control-sm_color_tertiary_control"]="customize-control-sm_color_tertiary_control""],
1985 [id="customize-control-sm_dark_tertiary_control"]="customize-control-sm_dark_tertiary_control""],
1986 [id="customize-control-sm_light_tertiary_control"]="customize-control-sm_light_tertiary_control""] {
1987 visibility: hidden;
1988
1989 > span {
1990 display: none;
1991 }
1992
1993 .wp-picker-input-wrap,
1994 .wp-picker-holder {
1995 visibility: visible;
1996 }
1997
1998 .wp-picker-container {
1999 width: 100%;
2000 float: left;
2001 //border-radius: 50%;
2002
2003 button {
2004 //width: 100px;
2005 //height: 100px;
2006 //border-radius: 50%;
2007 //border: 4px solid #CCC;
2008
2009 &:before {
2010 content: "";
2011 position: relative;
2012 display: block;
2013 visibility: visible;
2014 background-color: inherit;
2015 width: 90px;
2016 height: 90px;
2017 border-radius: 50%;
2018 border: 3px solid #DDD;
2019 }
2020 }
2021 }
2022 }
2023
2024 #customize-control-sm_color_palette_control {
2025
2026 $x: 70px;
2027 $y: 54px;
2028
2029 ~ [id*="sm_color_primary"]*="sm_color_primary""] .wp-picker-container button:before {
2030
2031 }
2032
2033 ~ [id*="sm_color_secondary"]*="sm_color_secondary""] .wp-picker-container button:before {
2034 top: -1 * $y;
2035 right: -1 * $x;
2036 }
2037
2038 ~ [id*="sm_color_tertiary"]*="sm_color_tertiary""] .wp-picker-container button:before {
2039 top: -2 * $y;
2040 right: -2 * $x;
2041 }
2042
2043 ~ [id*="sm_dark_primary"]*="sm_dark_primary""] .wp-picker-container button:before {
2044 top: -1 * $y;
2045 }
2046
2047 ~ [id*="sm_dark_secondary"]*="sm_dark_secondary""] .wp-picker-container button:before {
2048 top: -2 * $y;
2049 right: -1 * $x;
2050 }
2051
2052 ~ [id*="sm_dark_tertiary"]*="sm_dark_tertiary""] .wp-picker-container button:before {
2053 top: -3 * $y;
2054 right: -2 * $x;
2055 }
2056
2057 ~ [id*="sm_light_primary"]*="sm_light_primary""] .wp-picker-container button:before {
2058 top: -2 * $y;
2059 }
2060
2061 ~ [id*="sm_light_secondary"]*="sm_light_secondary""] .wp-picker-container button:before {
2062 top: -3 * $y;
2063 right: -1 * $x;
2064 }
2065
2066 ~ [id*="sm_light_tertiary"]*="sm_light_tertiary""] .wp-picker-container button:before {
2067 top: -4 * $y;
2068 right: -2 * $x;
2069 }
2070 }
2071
2072 /// ------------------
2073
2074 $palette_height: 64px;
2075 $palette_border-radius: 5px;
2076
2077 .c-palette {
2078 position: relative;
2079
2080 .c-palette__label {
2081 flex-grow: 1;
2082 }
2083 }
2084
2085 .c-palette:after {
2086 height: $palette_height;
2087 border-radius: $palette_border-radius;
2088 }
2089
2090 .c-palette:after {
2091 content: "";
2092 display: block;
2093 position: absolute;
2094 top: 0;
2095 left: 0;
2096 right: 0;
2097 box-shadow: $palette_box_shadow;
2098 pointer-events: none;
2099 }
2100
2101 .label__inner {
2102 color: #000000;
2103 background: #F5F6F1;
2104
2105 padding: 7px 12px 7px 7px;
2106 z-index: 2;
2107 border-radius: 3px;
2108 box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
2109 }
2110
2111 .c-palette__label {
2112 display: flex;
2113 align-items: center;
2114 height: 40px;
2115 padding: 12px;
2116
2117 color: black;
2118 background: white;
2119 }
2120
2121 .colors {
2122 position: relative;
2123 display: flex;
2124 align-items: stretch;
2125 width: 100%;
2126 }
2127
2128 .color {
2129 display: flex;
2130 flex-direction: column;
2131
2132 flex-grow: 1;
2133 overflow: hidden;
2134 }
2135
2136 .fill {
2137 position: relative;
2138 height: $palette_height;
2139 }
2140
2141 .c-palette__overlay {
2142 position: absolute;
2143 top: 0;
2144 left: 0;
2145 right: 0;
2146 height: $palette_height;
2147
2148 display: flex;
2149 align-items: center;
2150 }
2151
2152 .fill:before {
2153 position: absolute;
2154 top: 0;
2155 left: 0;
2156 right: 0;
2157 bottom: 0;
2158 }
2159
2160 .fill:before {
2161 content: "";
2162 background: currentColor;
2163 }
2164
2165 .picker {
2166 position: relative;
2167 top: 0;
2168 left: 50%;
2169
2170 width: 80%;
2171 max-width: 3em;
2172 margin-top: 1em;
2173
2174 border-radius: 50%;
2175 transform: translateX(-50%);
2176 }
2177
2178 .colors.next .picker > i {
2179 display: block;
2180 position: absolute;
2181 top: 0;
2182 right: 0;
2183 bottom: 0;
2184 left: 0;
2185 border-radius: 50%;
2186 box-shadow: $palette_box_shadow;
2187 pointer-events: none;
2188 z-index: 20;
2189 }
2190
2191 .picker:before,
2192 .picker:after {
2193 content: "";
2194 display: block;
2195 background: currentColor;
2196 border-radius: 50%;
2197 }
2198
2199 .picker:before {
2200 padding-top: 100%;
2201 }
2202
2203 .picker:after {
2204 position: absolute;
2205 top: 0;
2206 left: 0;
2207 width: 100%;
2208 height: 100%;
2209 }
2210
2211 .fill {
2212 overflow: hidden;
2213 }
2214
2215 .color:first-child .fill {
2216 border-top-left-radius: $palette_border-radius;
2217 border-bottom-left-radius: $palette_border-radius;
2218 }
2219
2220 .color:last-child .fill {
2221 border-top-right-radius: $palette_border-radius;
2222 border-bottom-right-radius: $palette_border-radius;
2223 }
2224
2225 $animation-duration: 1s;
2226
2227 .colors.next {
2228 position: absolute;
2229 top: 0;
2230 left: 0;
2231
2232 .fill:before {
2233 transform: translateY(-100%);
2234 }
2235
2236 .picker:before {
2237 transform: translateY(-100%);
2238 opacity: 0;
2239 }
2240
2241 .picker:after {
2242 opacity: 0;
2243 }
2244 }
2245
2246 .c-palette.animate {
2247
2248 .next {
2249
2250 .fill:before {
2251 animation: fill $animation-duration cubic-bezier(0.215, 0.610, 0.355, 1.000) forwards;
2252 }
2253
2254 .picker {
2255 animation: picker-filter $animation-duration cubic-bezier(0.215, 0.610, 0.355, 1.000) forwards;
2256 }
2257
2258 .picker:before {
2259 animation: fill-picker-before $animation-duration cubic-bezier(0.215, 0.610, 0.355, 1.000) forwards;
2260 }
2261
2262 .picker:after {
2263 animation: fill-picker-after $animation-duration cubic-bezier(0.215, 0.610, 0.355, 1.000) forwards;
2264 }
2265 }
2266
2267 .current {
2268 .fill,
2269 .picker {
2270 animation: fade-out $animation-duration forwards;
2271 }
2272 }
2273
2274 @function remove-nth($list, $index) {
2275 $result: null;
2276
2277 @if type-of($index) != number {
2278 @warn "$index: #{quote($index)} is not a number for `remove-nth`.";
2279 } @else if $index == 0 {
2280 @warn "List index 0 must be a non-zero integer for `remove-nth`.";
2281 } @else if abs($index) > length($list) {
2282 @warn "List index is #{$index} but list is only #{length($list)} item long for `remove-nth`.";
2283 } @else {
2284 $result: ();
2285 $index: if($index < 0, length($list) + $index + 1, $index);
2286
2287 @for $i from 1 through length($list) {
2288 @if $i != $index {
2289 $result: append($result, nth($list, $i));
2290 }
2291 }
2292 }
2293
2294 @return $result;
2295 }
2296
2297 $list: 1, 2, 3, 4, 5, 6, 7, 8, 9;
2298
2299 @for $i from 1 through length($list) {
2300 .color:nth-child(#{$i}) {
2301
2302 $random: random( length($list) );
2303 $delay: nth($list, $random);
2304 $list: remove-nth($list, $random);
2305
2306 .fill,
2307 .fill:before,
2308 .picker,
2309 .picker:after,
2310 .picker:before {
2311 animation-delay: #{$delay * 0.05}s;
2312 }
2313 }
2314 }
2315 }
2316
2317 @keyframes fill {
2318 30% { transform: translateY(0); }
2319 100% { transform: translateY(0); }
2320 }
2321
2322 @keyframes picker-filter {
2323 0% { filter: none; }
2324 1% { filter: url('#goo'); }
2325 99% { filter: url('#goo'); }
2326 100% { filter: none; }
2327 }
2328
2329 @keyframes fill-picker-before {
2330 24% { opacity: 0; transform: translateY(-130%); }
2331 25% { opacity: 1; transform: translateY(-130%); }
2332 32% { opacity: 1; transform: translateY(-130%); }
2333 52% { opacity: 1; transform: translateY(-130%); }
2334 100% { opacity: 1; transform: translateY(-160%); }
2335 }
2336
2337 @keyframes fill-picker-after {
2338 24% { opacity: 0; transform: translateY(-160%); }
2339 25% { opacity: 1; transform: translateY(-160%); }
2340 32% { opacity: 1; transform: translateY(-120%); }
2341 100% { opacity: 1; transform: translateY(0); }
2342 }
2343
2344 @keyframes fade-out {
2345 90% { opacity: 1; }
2346 100% { opacity: 0; }
2347 }
2348
2349 .label {
2350 margin-right: auto;
2351 }
2352
2353 .colors.next .picker {
2354 }
2355
2356 .c-palette__blur {
2357 display: none;
2358 }
2359
2360 #customize-theme-controls [id*="sm_current_color_palette_control"]*="sm_current_color_palette_control""] {
2361 display: block;
2362 margin: -12px -12px 19px;
2363 width: auto;
2364
2365 .palette-container {
2366 padding: 19px;
2367 background: white;
2368 }
2369 }
2370
2371 .c-palette__name {
2372 margin-right: auto;
2373 }
2374
2375 .c-palette__control {
2376 width: 2em;
2377 height: 2em;
2378 margin-left: 0.25em;
2379
2380 display: flex;
2381 justify-content: center;
2382 align-items: center;
2383 border-radius: 50%;
2384
2385 &, span {
2386 transition: color .3s ease-in-out;
2387 }
2388
2389 span {
2390 color: rgba(0,0,0,0.25);
2391 transform: scale(0.8);
2392 }
2393
2394 &.active {
2395 background: currentColor;
2396
2397 span {
2398 color: white;
2399 }
2400 }
2401 }
2402
2403 #sub-accordion-section-style_manager_section {
2404 display: flex !important;
2405 flex-direction: column;
2406 padding: 12px 0 0 !important;
2407 overflow: hidden;
2408
2409 > * {
2410 display: block !important;
2411 flex-grow: 0;
2412 padding: 0 12px;
2413 }
2414
2415 #customize-control-sm_color_palette_control {
2416 flex-basis: 0;
2417 flex-grow: 1;
2418 overflow-y: scroll;
2419 margin-top: -19px;
2420 padding-top: 19px;
2421 margin-bottom: 0;
2422 }
2423
2424 &:not(.advanced) #customize-control-sm_color_palette_control ~ li:not([id="customize-control-sm_toggle_advanced_settings_control"]) {
2425 display: none !important;
2426 }
2427
2428 &.advanced #customize-control-sm_color_palette_control {
2429 display: none !important;
2430 }
2431 }
2432 .c-palette .iris-picker {
2433 position: absolute;
2434 top: 100%;
2435 left: 0;
2436 z-index: 100;
2437
2438 margin-top: 1em;
2439 border: 0;
2440
2441 box-shadow: black 0 3px 12px -4px;
2442
2443 .iris-square-handle {
2444 border-color: transparent;
2445 left: -6px;
2446 top: -6px;
2447
2448 &:after {
2449 position: absolute;
2450 bottom: 0;
2451 right: 0;
2452 left: 0;
2453 top: 0;
2454 border: 2px solid white;
2455 }
2456 }
2457
2458 .iris-square-value {
2459 box-shadow: none !important;
2460 }
2461 }
2462
2463 .color {
2464 .picker {
2465 transition: opacity .3s ease-in-out;
2466 cursor: pointer;
2467 }
2468
2469 &.inactive .picker {
2470 opacity: 0.2;
2471 }
2472
2473 &.inactive .picker:hover {
2474 opacity: 1;
2475 }
2476 }
2477
2478 .c-palette__tooltip {
2479 position: absolute;
2480 bottom: 100%;
2481 left: 50%;
2482 z-index: 300;
2483
2484 margin-bottom: 5px;
2485 padding: 4px 14px;
2486
2487 opacity: 0;
2488 transform: translateX(-50%);
2489 transition: opacity .2s ease-out;
2490
2491 color: white;
2492 background-color: #606A72;
2493 box-shadow: 0 2px 5px 0 rgba(0,0,0,0.15);
2494
2495 &:after {
2496 content: "";
2497
2498 position: absolute;
2499 top: 100%;
2500 left: 50%;
2501
2502 display: block;
2503 border: 5px solid transparent;
2504 border-bottom-width: 0;
2505 border-top-color: #606A72;
2506
2507 transform: translateX(-50%);
2508 }
2509
2510 .c-palette__control:hover & {
2511 opacity: 1;
2512 }
2513 }
2514
2515 .c-palette__control {
2516 position: relative;
2517 cursor: pointer;
2518 }
2519
2520 #customize-control-sm_toggle_advanced_settings_control {
2521 margin-bottom: 0;
2522 opacity: 0;
2523
2524 button {
2525 width: 100%;
2526 }
2527 }
2528
2529 //.wp-full-overlay-sidebar {
2530 // overflow: hidden;
2531 //}
2532