PluginProbe
LoftLoader / 2.3.1
LoftLoader v2.3.1
trunk 1.0.0 1.0.1 1.0.2 2.0.0 2.1.0 2.1.1 2.1.10 2.1.11 2.1.12 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 2.2.0 2.2.1 2.2.2 2.3 2.3.1 2.3.2 2.3.3 All 34 releases
loftloader / assets / scss / loftloader-settings.scss

loftloader-settings.scss in LoftLoader 2.3.1, at assets/scss/loftloader-settings.scss

623 lines 14.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /**
2 * LoftLoader Lite Setting Panel Style
3 *
4 * Plugin Name: LoftLoader
5 * Plugin URI: http://www.loftocean.com/loftloader
6 * Author: Kaylolo Yinxi Chen @Loft.Ocean
7 * Author URI: http://www.loftocean.com
8 * Description: LoftLoader (Lite Version) is a plugin for adding beautiful and smooth preload animation to your WordPress website. With setting options, you can choose from preset animations, add custom logo image, choose colours to match your branding, and amuse and impress your visitors while loading site content.
9 * Version: 2.3.1
10 */
11
12
13 // Define base colors
14 $primary-color: #41C7D3;
15 $secondary-color: #DDD;
16 $text-color: #111;
17 $description-color: #888;
18
19 @mixin animations($max-count) {
20 @for $i from 1 through $max-count {
21 &:nth-child(#{$i}) {
22 .loftloader-radiobtn + span:after {
23 background-position: (-45*($i - 1))*1px -47px;
24 }
25 }
26 }
27 }
28
29 @mixin roundedcorner {
30 border-radius: 4px;
31 }
32
33 @mixin transform($transform) {
34 -webkit-transform: $transform;
35 -ms-transform: $transform;
36 transform: $transform;
37 }
38
39 @mixin optionsdisabled {
40 pointer-events: none;
41 opacity: 0.5;
42 }
43
44 @mixin slidervalue {
45 span.customize-control-title {
46 display: inline;
47
48 & + span {
49 float: right;
50 padding-right: 5px;
51 font-size: 12px;
52 letter-spacing: 0.05em;
53 font-weight: bold;
54 color: $text-color;
55
56 .rtl & {
57 float: left;
58 padding-right: 0;
59 padding-left: 5px;
60 }
61
62 input {
63 width: 60px;
64 padding-right: 0;
65 background: none;
66 border: none;
67 box-shadow: none;
68 font-size: 12px;
69 letter-spacing: 0.05em;
70 font-weight: bold;
71 color: $text-color;
72 text-align: right;
73
74 .rtl & {
75 text-align: left;
76 }
77 }
78 }
79 }
80 }
81
82
83 @import url(https://fonts.googleapis.com/css?family=Lato:400,600);
84
85
86 #customize-theme-controls.loftloader-controls-wrapper {
87 font-family: Lato;
88
89 .customize-section-title h3 {
90 font-size: 18px;
91 font-weight: 600;
92 letter-spacing: 0.05em;
93 color: $text-color;
94
95 span {
96 letter-spacing: 0;
97 }
98 }
99
100 .customize-control-title {
101 margin-top: 0;
102 font-size: 12px;
103 letter-spacing: 0.05em;
104 font-weight: bold;
105 text-transform: none;
106 color: $text-color;
107
108 + span.description {
109 margin-top: -6px;
110 }
111 }
112
113 span.description {
114 margin-bottom: 12px;
115 font-size: 11px;
116 font-style: normal;
117 color: $description-color;
118
119 strong {
120 color: $text-color;
121 font-weight: bold;
122 }
123 }
124
125 select,
126 input[type="text"]="text""],
127 input[type="number"]="number""],
128 button.button.remove-button,
129 button.button.upload-button {
130 font-size: 12px;
131 letter-spacing: 0.05em;
132 font-weight: bold;
133 color: $text-color;
134 border-color: $primary-color;
135 box-shadow: none;
136 }
137
138 input[type="text"]="text""],
139 input[type="number"]="number""],
140 button.button.remove-button,
141 button.button.upload-button {
142 background: #FFF;
143 text-align: center;
144 @include roundedcorner;
145 }
146
147 input[type="text"]="text""],
148 input[type="number"]="number""],
149 button.button.remove-button {
150 width: 80px;
151 }
152
153 #customize-control-loftloader_show_close_tip input[type="text"]="text""] {
154 width: 100%;
155 text-align: left;
156
157 .rtl & {
158 text-align: right;
159 }
160 }
161
162 button.button.remove-button:hover {
163 opacity: 0.75;
164 }
165
166 input[type="checkbox"]="checkbox""] {
167 position: relative;
168 float: right;
169 width: 33px;
170 height: 33px;
171 border-radius: 50%;
172 background: none;
173 border: 2px solid $primary-color;
174 box-shadow: none;
175 font-size: 0;
176
177 .rtl & {
178 float: left;
179 }
180
181 &:checked:before {
182 position: absolute;
183 top: 50%;
184 left: 50%;
185 @include transform(translate(-50%, -50%));
186 margin: 0 0 0 -1px;
187 width: 21px;
188 height: 21px;
189 color: $primary-color;
190 font: 21px dashicons;
191 }
192
193 &:hover {
194 opacity: 0.75;
195 }
196 }
197
198 .loftloader-radiobtn {
199 display: none;
200 width: inherit;
201 height: inherit;
202 opacity: 0;
203 margin: 0;
204
205 + span {
206 position: absolute;
207 top: 0;
208 left: 0;
209 display: block;
210 width: inherit;
211 height: inherit;
212 border: 2px solid $secondary-color;
213 box-sizing: border-box;
214 }
215
216 &:checked + span {
217 border-color: $primary-color;
218 }
219 }
220
221 .customize-control-btn {
222 label {
223 position: relative;
224 display: inline-block;
225 margin-left: 0;
226 padding: 0;
227 }
228
229 span.customize-control-title {
230 display: inline;
231
232 & + div {
233 float: right;
234
235 .rtl & {
236 float: left;
237 }
238 }
239 }
240 }
241
242 .accordion-section-content {
243 padding: 0;
244 background: #FFF;
245
246 &:before {
247 position: absolute;
248 top: 0;
249 left: 0;
250 z-index: -1;
251 display: block;
252 width: 100%;
253 height: 100%;
254 background: #FFF;
255 content: "";
256 }
257
258 li {
259 padding: 15px 12px;
260 margin-bottom: 0;
261 border-bottom: 1px solid #EEE;
262 box-sizing: border-box;
263
264 &.customize-section-description-container {
265 padding: 12px 12px 0;
266 border-bottom: none;
267 }
268
269 &:last-of-type {
270 border-bottom: none;
271 }
272 }
273 }
274
275 .wp-picker-container {
276 overflow: visible;
277 width: auto;
278
279 .wp-color-result {
280 width: 24px;
281 height: 24px;
282 max-height: 24px;
283 min-height: 24px;
284 padding: 0;
285 margin-top: 2px;
286 border: 1px solid rgba(#000, 0.1);
287 border-radius: 50%;
288 box-shadow: none !important;
289 line-height: 28px;
290
291 &:after {
292 right: auto;
293 left: 24px;
294 width: 80px;
295 padding: 0 6px;
296 background: transparent;
297 border: none;
298 color: #555;
299 font-size: 11px;
300 text-align: left;
301 line-height: 24px;
302 }
303
304 .wp-color-result-text {
305 margin-left: 24px;
306 background: none;
307 border: none;
308 color: inherit;
309 line-height: 24px;
310
311 body.rtl & {
312 margin-right: 24px;
313 margin-left: 0;
314 }
315 }
316 }
317
318 .wp-picker-open + .wp-picker-input-wrap {
319 float: right;
320 margin-top: -2px;
321 width: auto;
322
323 .rtl & {
324 margin-left: 15px;
325 }
326 }
327
328 input[type="text"]="text""].wp-color-picker {
329 display: inline-block;
330 padding: 0 5px;
331 margin-top: 0;
332 width: 80px !important;
333 border: 1px solid $primary-color;
334 vertical-align: top;
335 font-family: Lato;
336 line-height: 26px;
337 }
338
339 .button.wp-picker-default {
340 display: none;
341 }
342 }
343
344 .attachment-media-view,
345 .media-widget-preview.media_audio,
346 .media-widget-preview.media_image {
347 background: none;
348 }
349
350 .loader-ui-slider {
351 height: 16px;
352 margin-top: 12px;
353 background: none;
354 border-radius: 0;
355 border: none;
356
357 &:before {
358 position: absolute;
359 top: 50%;
360 left: 0;
361 @include transform(translateY(-50%));
362 width: 100%;
363 height: 2px;
364 background: $secondary-color;
365 content: "";
366 }
367
368 .ui-slider-range {
369 top: 50%;
370 @include transform(translateY(-50%));
371 height: 2px;
372 background: $primary-color;
373 }
374
375 .ui-slider-handle {
376 top: 50%;
377 @include transform(translateY(-50%));
378 width: 16px;
379 height: 16px;
380 background: $primary-color;
381 border: none;
382 border-radius: 50%;
383 }
384 }
385
386 &.loftloader-settings-disabled {
387 li#accordion-section-loftloader_switch ~ li {
388 @include optionsdisabled;
389 }
390 }
391
392 li.customize-control.customize-control-image .thumbnail.thumbnail-image {
393 background-color: #EEE;
394 }
395
396 li#accordion-section-loftloader_switch {
397 margin-bottom: 10px;
398
399 .accordion-section-title {
400 padding: 20px 10px 22px 14px;
401
402 &:after {
403 display: none;
404 }
405 }
406 }
407
408 li.customize-control.customize-control-slider {
409 @include slidervalue;
410 }
411
412 li.customize-control.customize-control-check {
413 span.customize-control-title {
414 display: inline;
415 }
416 }
417
418 li#customize-control-loftloader_loader_type {
419 .customize-more-toggle {
420 position: relative;
421 float: right;
422 @include transform(rotate(135deg));
423 z-index: 9;
424 width: 20px;
425 height: 20px;
426 margin-top: -20px;
427 cursor: pointer;
428 -webkit-box-shadow: none;
429 box-shadow: none;
430 -webkit-appearance: none;
431 background: $primary-color;
432 border-radius: 50%;
433 border: none;
434
435 .rtl & {
436 float: left;
437 }
438
439 &:before {
440 position: absolute;
441 top: 50%;
442 left: 50%;
443 @include transform(translate(-70%, -30%));
444 display: block;
445 width: 6px;
446 height: 6px;
447 border: 1px solid #FFF;
448 border-left: none;
449 border-bottom: none;
450 transform-origin: 50% 50%;
451 content: "";
452 }
453
454 &:focus {
455 outline: none;
456 opacity: 0.5;
457 }
458
459 &.expanded {
460 @include transform(rotate(-45deg));
461 }
462
463 & + span.description {
464 margin: 12px 0 0;
465 }
466 }
467
468 #loftloader_option_animation {
469 margin-top: 12px;
470
471 label {
472 position: relative;
473 float: left;
474 width: 45px;
475 height: 45px;
476 margin: 0 -2px -2px 0;
477 padding: 0;
478 @include animations(8);
479
480 .rtl & {
481 float: right;
482 }
483
484 .loftloader-radiobtn {
485 & + span {
486 overflow: hidden;
487
488 &:after {
489 position: absolute;
490 top: 0;
491 left: 0;
492 display: block;
493 width: inherit;
494 height: inherit;
495 background-image: url(../img/animation-options.png);
496 background-size: 315px;
497 opacity: 0.25;
498 content: "";
499 }
500 }
501 }
502
503 .loftloader-radiobtn:checked + span {
504 z-index: 8;
505 &:after {
506 opacity: 1;
507 }
508 }
509 }
510
511 &:after {
512 position: relative;
513 display: block;
514 clear: both;
515 content: "";
516 }
517 }
518 }
519
520 li#customize-control-loftloader_customimg {
521 button.upload-button {
522 position: relative;
523 float: right;
524 @include transform(rotate(-45deg));
525 width: 33px;
526 height: 33px;
527 border-radius: 50%;
528 background: none;
529 border: 2px solid $primary-color;
530 box-shadow: none;
531 font-size: 0;
532
533 .rtl & {
534 float: left;
535 }
536
537 &:before,
538 &:after {
539 position: absolute;
540 content: "";
541 display: block;
542 }
543
544 &:before {
545 top: 50%;
546 left: 50%;
547 @include transform(translate(-22%, -76%));
548 width: 6px;
549 height: 6px;
550 border: 2px solid $primary-color;
551 border-left: none;
552 border-bottom: none;
553 transform-origin: 50% 50%;
554 }
555
556 &:after {
557 top: 50%;
558 left: 50%;
559 @include transform(translate(-50%, -50%) rotate(45deg));
560 width: 2px;
561 height: 16px;
562 background: $primary-color;
563 }
564
565 &:hover {
566 opacity: 0.75;
567 }
568 }
569
570 .current {
571 margin-top: 15px;
572 }
573 }
574
575 li.customize-control-number {
576 label {
577 position: relative;
578 display: block;
579
580 > span:last-child {
581 float: right;
582 z-index: 9;
583 font-size: 12px;
584 font-weight: bold;
585 letter-spacing: 0.05em;
586 color: $text-color;
587
588 .rtl & {
589 float: left;
590 }
591
592 input[type="number"]="number""] {
593 margin-right: 5px;
594
595 .rtl & {
596 margin-right: 0;
597 margin-left: 5px;
598 }
599 }
600 }
601 }
602
603 span.customize-control-title {
604 display: inline;
605 }
606 }
607 }
608
609
610 // Hide extra elements created by Divi Theme
611 .wp-full-overlay {
612 & > .customize-controls-close,
613 & > .et-core-modal-overlay {
614 display: none;
615 visibility: hidden;
616 }
617 }
618
619 .customize-partial-edit-shortcut,
620 .widget .customize-partial-edit-shortcut {
621 display: none !important;
622 }
623