PluginProbe
ShortBuild / trunk
ShortBuild vtrunk
shortbuild / assets / css / customizer.css

customizer.css in ShortBuild trunk, at assets/css/customizer.css

624 lines 15.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /* ==========================================================================
2 CSS for Customizer Custom Controls
3 ========================================================================== */
4
5 /* ==========================================================================
6 Standard Selection
7 ========================================================================== */
8 .customize-control select,
9 .select2-container--default .selection .select2-selection--single {
10 border: none;
11 background: #fcfcff;
12 position: relative;
13 border-radius: 0;
14 height: 27px;
15 line-height: 27px;
16 outline: none;
17 -webkit-box-shadow: none;
18 box-shadow: none;
19 }
20
21 .wp-customizer .select2-container--default .selection .select2-selection--multiple {
22 border: none;
23 background: #fcfcff;
24 border-radius: 0;
25 height: auto;
26 outline: none;
27 -webkit-box-shadow: none;
28 box-shadow: none;
29 }
30
31 .wp-customizer .select2-container--default .select2-selection--multiple .select2-selection__rendered {
32 width: 95%;
33 }
34
35 .wp-customizer .select2-container--default .select2-selection--multiple .select2-selection__clear {
36 position: absolute;
37 right: 0;
38 }
39
40 .wp-customizer .select2-container .select2-dropdown {
41 z-index: 900000;
42 }
43
44 .customize-control select:active,
45 .customize-control select:focus {
46 outline: none;
47 -webkit-box-shadow: none;
48 box-shadow: none;
49 }
50
51 /* ==========================================================================
52 Standard Input
53 ========================================================================== */
54 input[type="text"],
55 input[type="number"],
56 input[type="url"],
57 input[type="email"],
58 input[type="date"] {
59 background: #fcfcff;
60 position: relative;
61 border-radius: 0;
62 border: 1px solid #eee;
63 height: 27px;
64 line-height: 27px;
65 outline: none;
66 -webkit-box-shadow: none;
67 box-shadow: none;
68 }
69
70 input[type="text"]:active,
71 input[type="text"]:focus,
72 input[type="number"]:active,
73 input[type="number"]:focus {
74 outline: none;
75 -webkit-box-shadow: none;
76 box-shadow: none;
77 }
78
79 /* ==========================================================================
80 Simple Notice
81 ========================================================================== */
82
83 .simple-notice-custom-control .customize-control-description {
84 line-height: 1.6
85 }
86
87 .simple-notice-custom-control code {
88 font-size: 90%;
89 padding: 2px 4px;
90 }
91
92 /* ==========================================================================
93 Textarea/TinyMCE
94 ========================================================================== */
95 .tinymce-control textarea {
96 width: 100%;
97 padding: 10px;
98 }
99
100 /* ==========================================================================
101 Text Radio Buttons
102 ========================================================================== */
103 .text_radio_button_control:after {
104 content: " ";
105 display: block;
106 clear: both;
107 }
108 .text_radio_button_control .radio-buttons {
109 display: inline-block;
110 border: 1px solid #f9f9fe;
111 }
112 .text_radio_button_control .radio-button-label {
113 cursor: pointer;
114 float: left;
115 }
116 .text_radio_button_control .radio-button-label > input {
117 display: none;
118 }
119 .text_radio_button_control .radio-button-label span {
120 cursor: pointer;
121 font-weight: 500;
122 border: 2px solid #f9f9fe;
123 margin: 0;
124 background-color: #eee;
125 padding: 5px 15px;
126 display: inline-block;
127 }
128 .text_radio_button_control .radio-button-label span:hover {
129 background-color: rgba(255, 255, 255, .2);
130 color: #2885bb;
131 }
132 .text_radio_button_control .radio-button-label > input:checked + span {
133 background-color: #2084bd;
134 color: #fff;
135 }
136 .text_radio_button_control .radio-button-label > input:checked + span:hover {
137 color: #fff;
138 }
139
140 /* ==========================================================================
141 Image Radio Buttons
142 ========================================================================== */
143 .image_radio_button_control .radio-button-label > input {
144 display: none;
145 }
146 .image_radio_button_control .radio-button-label > img {
147 cursor: pointer;
148 border: 3px solid #ddd;
149 }
150 .image_radio_button_control .radio-button-label > input:checked + img {
151 border: 3px solid #2885bb;
152 }
153
154 /* ==========================================================================
155 Image Checkboxes
156 ========================================================================== */
157 .image_checkbox_control .checkbox-label > input {
158 display: none;
159 }
160 .image_checkbox_control .checkbox-label > img {
161 cursor: pointer;
162 border: 3px solid #ddd;
163 }
164 .image_checkbox_control .checkbox-label > input:checked + img {
165 border: 3px solid #2885bb;
166 }
167
168 /* ==========================================================================
169 Slider
170 ========================================================================== */
171 .slider-custom-control {
172 margin-bottom: 30px;
173 }
174 .slider-custom-control input[type=number]::-webkit-inner-spin-button,
175 .slider-custom-control input[type=number]::-webkit-outer-spin-button {
176 -webkit-appearance: none;
177 margin: 0;
178 }
179 .slider-custom-control input[type=number] {
180 -moz-appearance: textfield;
181 }
182 .slider-custom-control .customize-control-title {
183 display: inline-block;
184 }
185 .slider-custom-control input[type=number] {
186 text-align: right;
187 width: 50px;
188 float: right;
189 }
190 .slider-custom-control .slider {
191 width: 85%;
192 float: left;
193 margin: 20px 0 10px;
194 }
195 .slider-custom-control .slider-reset {
196 float: right;
197 cursor: pointer;
198 }
199 .slider-custom-control .slider-value {
200 border: none;
201 text-align: right;
202 width: 50px;
203 margin-right: 5px;
204 }
205 .slider-custom-control .slider-value,
206 .slider-custom-control .slider-unit {
207 float: right;
208 }
209 .slider-custom-control .ui-widget.ui-widget-content {
210 border: 1px solid #f4f4f4;
211 }
212 .slider-custom-control .ui-corner-all,
213 .slider-custom-control .ui-corner-bottom,
214 .slider-custom-control .ui-corner-right,
215 .slider-custom-control .ui-corner-br {
216 border-bottom-right-radius: 3px;
217 }
218 .slider-custom-control .ui-corner-all,
219 .slider-custom-control .ui-corner-bottom,
220 .slider-custom-control .ui-corner-left,
221 .slider-custom-control .ui-corner-bl {
222 border-bottom-left-radius: 3px;
223 }
224 .slider-custom-control .ui-corner-all,
225 .slider-custom-control .ui-corner-top,
226 .slider-custom-control .ui-corner-right,
227 .slider-custom-control .ui-corner-tr {
228 border-top-right-radius: 3px;
229 }
230 .slider-custom-control .ui-corner-all,
231 .slider-custom-control .ui-corner-top,
232 .slider-custom-control .ui-corner-left,
233 .slider-custom-control .ui-corner-tl {
234 border-top-left-radius: 3px;
235 }
236 .slider-custom-control .ui-widget-content {
237 background: #f4f4f4 none repeat scroll 0 0;
238 color: #333;
239 }
240 .slider-custom-control .ui-slider-horizontal {
241 height: 3px;
242 }
243 .slider-custom-control .ui-slider {
244 position: relative;
245 text-align: left;
246 }
247 .slider-custom-control .ui-state-default,
248 .slider-custom-control .ui-widget-content .ui-state-default,
249 .slider-custom-control .ui-widget-header .ui-state-default,
250 .slider-custom-control .ui-button,
251 .slider-custom-control .ui-button.ui-state-disabled:hover,
252 .slider-custom-control .ui-button.ui-state-disabled:active {
253 background: #2885bb none repeat scroll 0 0;
254 border: 1px solid #2885bb;
255 color: #454545;
256 font-weight: normal;
257 }
258 .slider-custom-control .ui-slider-horizontal .ui-slider-handle {
259 margin-left: -7px;
260 top: -7px;
261 border-radius: 50%;
262 }
263 .slider-custom-control .ui-slider .ui-slider-handle {
264 cursor: pointer;
265 height: 14px;
266 position: absolute;
267 width: 14px;
268 z-index: 2;
269 }
270 .slider-custom-control .dashicons-image-rotate {
271 margin-top: 10px;
272 color: #d4d4d4;
273 size: 16px;
274 }
275 .slider-custom-control .dashicons-image-rotate:hover {
276 color: #a7a7a7;
277 }
278
279 /* ==========================================================================
280 Toggle Switch
281 ========================================================================== */
282 .toggle-switch-control .customize-control-title {
283 display: inline-block;
284 }
285
286 .toggle-switch {
287 position: relative;
288 width: 64px;
289 -webkit-user-select: none;
290 -moz-user-select: none;
291 -ms-user-select: none;
292 float: right;
293 }
294
295 .toggle-switch .toggle-switch-checkbox {
296 display: none;
297 }
298
299 .toggle-switch .toggle-switch-label {
300 display: block;
301 overflow: hidden;
302 cursor: pointer;
303 border: 2px solid #ddd;
304 border-radius: 20px;
305 padding: 0;
306 margin: 0;
307 }
308
309 .toggle-switch-inner {
310 display: block;
311 width: 200%;
312 margin-left: -100%;
313 transition: margin 0.3s ease-in 0s;
314 }
315
316 .toggle-switch-inner:before,
317 .toggle-switch-inner:after {
318 display: block;
319 float: left;
320 width: 50%;
321 height: 22px;
322 padding: 0;
323 line-height: 22px;
324 font-size: 14px;
325 color: white;
326 font-family: Trebuchet, Arial, sans-serif;
327 font-weight: bold;
328 box-sizing: border-box;
329 }
330
331 .toggle-switch-inner:before {
332 content: "ON";
333 padding-left: 8px;
334 background-color: #2885bb;
335 color: #FFFFFF;
336 }
337
338 .toggle-switch-inner:after {
339 content: "OFF";
340 padding-right: 8px;
341 background-color: #EEEEEE;
342 color: #999999;
343 text-align: right;
344 }
345
346 .toggle-switch-switch {
347 display: block;
348 width: 16px;
349 margin: 3px;
350 background: #FFFFFF;
351 position: absolute;
352 top: 0;
353 bottom: 0;
354 right: 38px;
355 border: 2px solid #ddd;
356 border-radius: 20px;
357 transition: all 0.3s ease-in 0s;
358 }
359
360 .toggle-switch-checkbox:checked + .toggle-switch-label .toggle-switch-inner {
361 margin-left: 0;
362 }
363
364 .toggle-switch-checkbox:checked + .toggle-switch-label .toggle-switch-switch {
365 right: 0px;
366 }
367
368 /* ==========================================================================
369 Sortable Repeater
370 ========================================================================== */
371 .sortable {
372 list-style-type: none;
373 margin: 0;
374 padding: 0;
375 }
376 .sortable input[type="text"] {
377 margin: 5px 5px 5px 0;
378 width: 80%;
379 }
380 .sortable div {
381 cursor: move;
382 }
383 .customize-control-sortable-repeater-delete {
384 color: #d4d4d4;
385 }
386 .customize-control-sortable-repeater-delete:hover {
387 color: #f00;
388 }
389 .customize-control-sortable-repeater-delete .dashicons-no-alt {
390 text-decoration: none;
391 margin: 8px 0 0 0;
392 font-weight: 600;
393 }
394 .customize-control-sortable-repeater-delete:active,
395 .customize-control-sortable-repeater-delete:focus {
396 outline: none;
397 -webkit-box-shadow: none;
398 box-shadow: none;
399 }
400 .repeater .dashicons-sort {
401 margin: 8px 5px 0 5px;
402 color: #d4d4d4;
403 }
404 .repeater .dashicons-sort:hover {
405 color: #a7a7a7;
406 }
407
408 /* ==========================================================================
409 Single Accordion
410 ========================================================================== */
411 .single-accordion-toggle {
412 font-size: 14px;
413 font-weight: 600;
414 line-height: 24px;
415 padding: 10px 5px 5px 0;
416 cursor: pointer;
417 }
418 .accordion-icon-toggle {
419 font-size: 18px;
420 margin-left: 5px;
421 margin-top: 5px;
422 -webkit-transition: -webkit-transform 0.3s ease-in-out;
423 -moz-transition: -moz-transform 0.3s ease-in-out;
424 -o-transition: -o-transform 0.3s ease-in-out;
425 transition: transform 0.3s ease-in-out;
426 }
427 .single-accordion-toggle-rotate .accordion-icon-toggle {
428 filter: progid: DXImageTransform.Microsoft.BasicImage(rotation=-0.5);
429 -webkit-transform: rotate(-45deg);
430 -moz-transform: rotate(-45deg);
431 -ms-transform: rotate(-45deg);
432 -o-transform: rotate(-45deg);
433 transform: rotate(-45deg);
434 display: inline-block;
435 }
436 .single-accordion {
437 display: none;
438 }
439 .single-accordion ul {
440 margin: 0;
441 padding: 0;
442 }
443 .single-accordion li {
444 background-color: #e4e4e4;
445 color: #888;
446 width: 115px;
447 display: inline-block;
448 padding: 5px;
449 margin: 5px;
450 text-align: center;
451 }
452 .single-accordion li i {
453 margin-left: 5px;
454 }
455
456 /* ==========================================================================
457 Alpha Color Picker
458 ========================================================================== */
459 .customize-control-alpha-color .wp-picker-container .iris-picker {
460 border-bottom:none;
461 }
462
463 .customize-control-alpha-color .wp-picker-container {
464 max-width: 257px;
465 }
466
467 .customize-control-alpha-color .wp-picker-open + .wp-picker-input-wrap {
468 width: 100%;
469 }
470
471 .customize-control-alpha-color .wp-picker-input-wrap input[type="text"].wp-color-picker.alpha-color-control {
472 float: left;
473 width: 195px;
474 }
475
476 .customize-control-alpha-color .wp-picker-input-wrap .button {
477 margin-left: 0;
478 float: right;
479 }
480
481 .wp-picker-container .wp-picker-open ~ .wp-picker-holder .alpha-color-picker-container {
482 display: block;
483 }
484
485 .alpha-color-picker-container {
486 border: 1px solid #dfdfdf;
487 border-top: none;
488 display: none;
489 background: #FFF;
490 padding: 0 11px 10px;
491 position: relative;
492 }
493
494 .alpha-color-picker-container .ui-widget-content,
495 .alpha-color-picker-container .ui-widget-header,
496 .alpha-color-picker-wrap .ui-state-focus {
497 background: transparent;
498 border: none;
499 }
500
501 .alpha-color-picker-wrap a.iris-square-value:focus {
502 -webkit-box-shadow: none;
503 box-shadow: none;
504 }
505
506 .alpha-color-picker-container .ui-slider {
507 position: relative;
508 z-index: 1;
509 height: 24px;
510 text-align: center;
511 margin: 0 auto;
512 width: 88%;
513 width: calc( 100% - 28px );
514 }
515
516 .alpha-color-picker-container .ui-slider-handle,
517 .alpha-color-picker-container .ui-widget-content .ui-state-default {
518 color: #777;
519 background-color: #FFF;
520 text-shadow: 0 1px 0 #FFF;
521 text-decoration: none;
522 position: absolute;
523 z-index: 2;
524 box-shadow: 0 1px 2px rgba(0,0,0,0.2);
525 border: 1px solid #aaa;
526 -webkit-border-radius: 4px;
527 -moz-border-radius: 4px;
528 border-radius: 4px;
529 margin-top: -2px;
530 top: 0;
531 height: 26px;
532 width: 26px;
533 cursor: ew-resize;
534 font-size: 0;
535 padding: 0;
536 line-height: 27px;
537 margin-left: -14px;
538 }
539
540 .alpha-color-picker-container .ui-slider-handle.show-opacity {
541 font-size: 12px;
542 }
543
544 .alpha-color-picker-container .click-zone {
545 width: 14px;
546 height: 24px;
547 display: block;
548 position: absolute;
549 left: 10px;
550 }
551
552 .alpha-color-picker-container .max-click-zone {
553 right: 10px;
554 left: auto;
555 }
556
557 .alpha-color-picker-container .transparency {
558 height: 24px;
559 width: 100%;
560 background-color: #FFF;
561 background-image: url(../images/color-picker-transparency-grid.png);
562 box-shadow: 0 0 5px rgba(0,0,0,0.4) inset;
563 -webkit-border-radius: 3px;
564 -moz-border-radius: 3px;
565 border-radius: 3px;
566 padding: 0;
567 margin-top: -24px;
568 }
569
570 @media only screen and (max-width: 782px) {
571 .customize-control-alpha-color .wp-picker-input-wrap input[type="text"].wp-color-picker.alpha-color-control {
572 width: 184px;
573 }
574 }
575
576 @media only screen and (max-width: 640px) {
577 .customize-control-alpha-color .wp-picker-input-wrap input[type="text"].wp-color-picker.alpha-color-control {
578 width: 172px;
579 height: 33px;
580 }
581 }
582
583 /* ==========================================================================
584 Alpha Color Picker & Standard Color Picker
585 ========================================================================== */
586 .customize-control-color .wp-color-result,
587 .customize-control-alpha-color .wp-color-result {
588 border: none;
589 box-shadow: none;
590 }
591
592 .customize-control-color .wp-color-result:after,
593 .customize-control-alpha-color .wp-color-result:after {
594 border: none;
595 }
596
597 .customize-control-color .wp-color-result .wp-color-result-text,
598 .customize-control-alpha-color .wp-color-result .wp-color-result-text {
599 line-height: 24px;
600 border-left: none;
601 }
602
603 .wp-picker-holder .iris-picker .iris-palette {
604 box-shadow: none;
605 }
606
607 .wp-picker-container .iris-picker,
608 .wp-picker-container .alpha-color-picker-container {
609 border-radius: 0;
610 border: none;
611 }
612
613 .wp-picker-container .alpha-color-picker-container {
614 width: 233px;
615 }
616
617 /* ==========================================================================
618 Google Fonts Select
619 ========================================================================== */
620 .google_fonts_select_control .google-fonts,
621 .google_fonts_select_control .weight-style {
622 margin-bottom: 10px;
623 }
624