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