bourbon
1 year ago
_variables.scss
1 year ago
customize-admin-rtl.css
1 year ago
customize-admin.css
1 year ago
customize-admin.scss
5 months ago
customize-controls-rtl.css
1 year ago
customize-controls.css
1 month ago
customize-controls.scss
3 months ago
customize-controls.scss
668 lines
| 1 | /** |
| 2 | * customize-controls.scss |
| 3 | * Customize controls styles. |
| 4 | */ |
| 5 | |
| 6 | // Imports. |
| 7 | @import 'variables'; |
| 8 | |
| 9 | /** |
| 10 | * Styling begins. |
| 11 | */ |
| 12 | #customize-theme-controls { |
| 13 | // Pre-built templates. |
| 14 | .control-section-evf-templates { |
| 15 | border: none; |
| 16 | |
| 17 | > .accordion-section-title, |
| 18 | > .accordion-section-title:hover { |
| 19 | cursor: default; |
| 20 | background: #fff; |
| 21 | color: #555d66; |
| 22 | border-top: 1px solid #ddd; |
| 23 | border-bottom: 1px solid #ddd; |
| 24 | border-left: none; |
| 25 | border-right: none; |
| 26 | margin: 0 0 15px 0; |
| 27 | padding-right: 100px; |
| 28 | transition: |
| 29 | 0.15s color ease-in-out, |
| 30 | 0.15s background-color ease-in-out, |
| 31 | 0.15s border-color ease-in-out; |
| 32 | |
| 33 | &::after { |
| 34 | display: none; |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | .accordion-section-title { |
| 39 | padding-right: 100px; /* Space for the button */ |
| 40 | |
| 41 | span.customize-action { |
| 42 | display: block; |
| 43 | font-size: 13px; |
| 44 | font-weight: 400; |
| 45 | } |
| 46 | |
| 47 | .change-template { |
| 48 | position: absolute; |
| 49 | right: 10px; |
| 50 | top: 50%; |
| 51 | margin-top: -14px; |
| 52 | font-weight: 400; |
| 53 | } |
| 54 | } |
| 55 | |
| 56 | #everest-forms-save-template-container { |
| 57 | input { |
| 58 | width: 100%; |
| 59 | margin-bottom: 10px; |
| 60 | } |
| 61 | |
| 62 | div { |
| 63 | display: block; |
| 64 | text-align: right; |
| 65 | } |
| 66 | } |
| 67 | |
| 68 | .customize-control-evf-image_radio { |
| 69 | .image-radio-wrapper { |
| 70 | flex-wrap: wrap; |
| 71 | margin-top: 15px; |
| 72 | |
| 73 | li { |
| 74 | margin-right: 20px; |
| 75 | margin-bottom: 20px; |
| 76 | flex: 0 0 calc(50% - 10px); |
| 77 | position: relative; |
| 78 | |
| 79 | &:nth-child(2n) { |
| 80 | margin-right: 0; |
| 81 | } |
| 82 | |
| 83 | label { |
| 84 | height: auto; |
| 85 | border: none; |
| 86 | display: flex; |
| 87 | padding: 15px; |
| 88 | flex-wrap: wrap; |
| 89 | overflow: hidden; |
| 90 | border-radius: 5px; |
| 91 | background: #dedede; |
| 92 | transition: all 0.25s; |
| 93 | border: 2px solid transparent; |
| 94 | |
| 95 | img { |
| 96 | width: 100%; |
| 97 | height: auto; |
| 98 | border-radius: 5px; |
| 99 | margin-bottom: 10px; |
| 100 | transition: all 0.25s; |
| 101 | } |
| 102 | |
| 103 | &:hover { |
| 104 | color: $color__primary; |
| 105 | background: #d9d9d9; |
| 106 | |
| 107 | img { |
| 108 | box-shadow: 0 2px 7px rgba(128, 128, 128, 0.3); |
| 109 | } |
| 110 | } |
| 111 | } |
| 112 | |
| 113 | input { |
| 114 | &:checked { |
| 115 | + label { |
| 116 | color: $color__primary; |
| 117 | border: 2px solid $color__primary; |
| 118 | |
| 119 | img { |
| 120 | box-shadow: 0 2px 7px rgba(128, 128, 128, 0.3); |
| 121 | } |
| 122 | } |
| 123 | } |
| 124 | } |
| 125 | |
| 126 | .evf-delete-template-btn { |
| 127 | position: absolute; |
| 128 | top: 1px; |
| 129 | right: 1px; |
| 130 | color: red; |
| 131 | cursor: pointer; |
| 132 | } |
| 133 | } |
| 134 | } |
| 135 | } |
| 136 | } |
| 137 | |
| 138 | // Colorpicker control. |
| 139 | .customize-control-evf-color, |
| 140 | .customize-control-evf-background_image { |
| 141 | .wp-picker-container { |
| 142 | button.wp-color-result { |
| 143 | overflow: hidden; |
| 144 | } |
| 145 | |
| 146 | input[type='text']='text'].wp-color-picker { |
| 147 | width: 80px !important; |
| 148 | } |
| 149 | } |
| 150 | } |
| 151 | |
| 152 | // Toogle switch contol. |
| 153 | .customize-control-evf-toggle { |
| 154 | position: relative; |
| 155 | |
| 156 | label { |
| 157 | display: flex; |
| 158 | flex-wrap: wrap; |
| 159 | |
| 160 | .customize-control-title { |
| 161 | width: calc(100% - 55px); |
| 162 | } |
| 163 | } |
| 164 | |
| 165 | .switch { |
| 166 | top: 4px; |
| 167 | width: 36px; |
| 168 | height: 18px; |
| 169 | cursor: pointer; |
| 170 | user-select: none; |
| 171 | position: relative; |
| 172 | border-radius: 15px; |
| 173 | display: inline-block; |
| 174 | border: 2px solid $color__gray-dark; |
| 175 | background: $color__white; |
| 176 | vertical-align: middle; |
| 177 | transition: background 350ms ease; |
| 178 | |
| 179 | &::before, |
| 180 | &::after { |
| 181 | content: ''; |
| 182 | top: 50%; |
| 183 | left: 2px; |
| 184 | width: 16px; |
| 185 | height: 16px; |
| 186 | display: block; |
| 187 | position: absolute; |
| 188 | background: $color__gray-dark; |
| 189 | border-radius: 50%; |
| 190 | transform: translate3d(0, -50%, 0); |
| 191 | transition: |
| 192 | all 350ms cubic-bezier(0, 0.95, 0.38, 0.98), |
| 193 | background 150ms ease; |
| 194 | } |
| 195 | |
| 196 | &::before { |
| 197 | left: -2px; |
| 198 | background: rgba(0, 0, 0, 0.2); |
| 199 | transform: translate3d(0, -50%, 0) scale(0); |
| 200 | } |
| 201 | |
| 202 | .switch-content { |
| 203 | &::before, |
| 204 | &::after { |
| 205 | content: ''; |
| 206 | height: 6px; |
| 207 | display: inline-block; |
| 208 | position: absolute; |
| 209 | top: 50%; |
| 210 | transform: translateY(-50%); |
| 211 | } |
| 212 | |
| 213 | &::before { |
| 214 | left: 8px; |
| 215 | width: 2px; |
| 216 | background: $color__white; |
| 217 | } |
| 218 | |
| 219 | &::after { |
| 220 | height: 4px; |
| 221 | width: 4px; |
| 222 | border: 2px solid $color__gray-dark; |
| 223 | border-radius: 4px; |
| 224 | right: 6px; |
| 225 | } |
| 226 | } |
| 227 | } |
| 228 | |
| 229 | input:checked + .switch { |
| 230 | background: $color__primary; |
| 231 | border: 2px solid $color__primary; |
| 232 | |
| 233 | &::after { |
| 234 | background: $color__white; |
| 235 | transform: translate3d(100%, -50%, 0); |
| 236 | } |
| 237 | } |
| 238 | } |
| 239 | |
| 240 | // Range slider control. |
| 241 | .customize-control-evf-slider { |
| 242 | .customize-control-content { |
| 243 | display: flex; |
| 244 | align-items: center; |
| 245 | justify-content: space-between; |
| 246 | } |
| 247 | |
| 248 | .everest-forms-slider { |
| 249 | height: 4px; |
| 250 | display: flex; |
| 251 | margin-left: 8px; |
| 252 | border-radius: 3px; |
| 253 | position: relative; |
| 254 | align-items: center; |
| 255 | width: calc(65% - 12px); |
| 256 | background-color: transparentize($color__gray-base, 0.75); |
| 257 | |
| 258 | .ui-slider-handle { |
| 259 | width: 16px; |
| 260 | height: 16px; |
| 261 | cursor: pointer; |
| 262 | margin-left: -8px; |
| 263 | position: absolute; |
| 264 | border-radius: 16px; |
| 265 | background-color: $color__white; |
| 266 | box-shadow: 0 0 15px transparentize($color__gray-base, 0.8); |
| 267 | |
| 268 | &::after { |
| 269 | top: 50%; |
| 270 | content: ''; |
| 271 | z-index: -1; |
| 272 | width: 16px; |
| 273 | height: 16px; |
| 274 | display: block; |
| 275 | position: absolute; |
| 276 | border-radius: 50%; |
| 277 | transform: translate3d(0, -50%, 0) scale(0); |
| 278 | transition: |
| 279 | all 350ms cubic-bezier(0, 0, 0, 0.25), |
| 280 | background 150ms ease; |
| 281 | background: transparentize($color__gray-base, 0.7); |
| 282 | } |
| 283 | |
| 284 | &:active { |
| 285 | &::after { |
| 286 | transform: translate3d(0, -50%, 0) scale(1.75); |
| 287 | } |
| 288 | } |
| 289 | } |
| 290 | |
| 291 | .ui-slider-range { |
| 292 | height: 100%; |
| 293 | margin-left: -8px; |
| 294 | border-top-left-radius: 2px; |
| 295 | border-bottom-left-radius: 2px; |
| 296 | background-color: $color__primary; |
| 297 | } |
| 298 | } |
| 299 | |
| 300 | .everest-forms-slider-input { |
| 301 | display: flex; |
| 302 | align-items: center; |
| 303 | width: calc(35% - 12px); |
| 304 | |
| 305 | .reset { |
| 306 | width: 16px; |
| 307 | height: 16px; |
| 308 | font-size: 16px; |
| 309 | cursor: pointer; |
| 310 | margin-left: 10px; |
| 311 | color: $color__primary; |
| 312 | transition: all 0.2s ease 0s; |
| 313 | |
| 314 | &:hover { |
| 315 | color: darken($color__primary, 10%); |
| 316 | } |
| 317 | } |
| 318 | } |
| 319 | } |
| 320 | |
| 321 | // Dimension picker control. |
| 322 | .customize-control-evf-dimension { |
| 323 | label { |
| 324 | display: flex; |
| 325 | |
| 326 | .customize-control-title { |
| 327 | display: flex; |
| 328 | align-items: center; |
| 329 | margin-right: 10px; |
| 330 | } |
| 331 | } |
| 332 | } |
| 333 | |
| 334 | .responsive-tabs { |
| 335 | display: flex; |
| 336 | margin-right: 7px; |
| 337 | align-items: center; |
| 338 | |
| 339 | li { |
| 340 | display: flex; |
| 341 | margin-right: 7px; |
| 342 | align-items: center; |
| 343 | |
| 344 | .responsive-tab-item { |
| 345 | span { |
| 346 | width: 16px; |
| 347 | height: 16px; |
| 348 | padding: 5px; |
| 349 | border-radius: 16px; |
| 350 | background-color: $color__gray-light; |
| 351 | |
| 352 | svg { |
| 353 | fill: $color__gray-dark; |
| 354 | } |
| 355 | |
| 356 | &:hover { |
| 357 | svg { |
| 358 | fill: $color__gray-base; |
| 359 | } |
| 360 | } |
| 361 | } |
| 362 | |
| 363 | input { |
| 364 | display: none; |
| 365 | |
| 366 | &:checked { |
| 367 | + span { |
| 368 | background: $color__primary; |
| 369 | |
| 370 | svg { |
| 371 | fill: $color__white; |
| 372 | } |
| 373 | } |
| 374 | } |
| 375 | } |
| 376 | } |
| 377 | } |
| 378 | } |
| 379 | |
| 380 | .dimension-units { |
| 381 | display: flex; |
| 382 | margin-left: auto; |
| 383 | margin-right: 7px; |
| 384 | align-items: center; |
| 385 | |
| 386 | li { |
| 387 | margin-right: 5px; |
| 388 | |
| 389 | &:last-child { |
| 390 | margin-right: 0; |
| 391 | } |
| 392 | |
| 393 | label { |
| 394 | font-size: 10px; |
| 395 | text-transform: uppercase; |
| 396 | |
| 397 | & + input { |
| 398 | &:not(:checked) { |
| 399 | color: $color__gray-light; |
| 400 | } |
| 401 | } |
| 402 | } |
| 403 | |
| 404 | input { |
| 405 | display: none; |
| 406 | |
| 407 | &:checked { |
| 408 | + .unit-switcher { |
| 409 | text-decoration: underline; |
| 410 | } |
| 411 | } |
| 412 | |
| 413 | &:not(:checked) { |
| 414 | + .unit-switcher { |
| 415 | opacity: 0.7; |
| 416 | } |
| 417 | } |
| 418 | } |
| 419 | } |
| 420 | } |
| 421 | |
| 422 | .dimension-wrapper { |
| 423 | .dimension-input-wrapper { |
| 424 | .dimension-inputs { |
| 425 | display: flex; |
| 426 | |
| 427 | li { |
| 428 | flex: 1; |
| 429 | |
| 430 | &:not(:first-child) { |
| 431 | input { |
| 432 | border-left: none; |
| 433 | } |
| 434 | } |
| 435 | |
| 436 | &:first-child { |
| 437 | input { |
| 438 | border-radius: 3px 0 0 3px; |
| 439 | } |
| 440 | } |
| 441 | |
| 442 | input { |
| 443 | height: 35px; |
| 444 | box-shadow: none; |
| 445 | text-align: center; |
| 446 | border-radius: 0; |
| 447 | border-color: $color__gray; |
| 448 | } |
| 449 | |
| 450 | .dimension-anchor-wrapper { |
| 451 | padding: 0; |
| 452 | width: auto; |
| 453 | font-size: 0; |
| 454 | height: 33px; |
| 455 | display: flex; |
| 456 | align-items: center; |
| 457 | justify-content: center; |
| 458 | border-radius: 0 3px 3px 0; |
| 459 | background-color: $color__gray; |
| 460 | border: 1px solid $color__gray; |
| 461 | border-left: none; |
| 462 | |
| 463 | .unlinked-icon { |
| 464 | display: none; |
| 465 | } |
| 466 | |
| 467 | span { |
| 468 | width: 16px; |
| 469 | height: 16px; |
| 470 | |
| 471 | svg { |
| 472 | fill: $color__gray-dark; |
| 473 | } |
| 474 | |
| 475 | &:hover { |
| 476 | svg { |
| 477 | fill: $color__gray-dark; |
| 478 | } |
| 479 | } |
| 480 | } |
| 481 | |
| 482 | &.unlinked { |
| 483 | background-color: $color__white; |
| 484 | |
| 485 | .linked-icon { |
| 486 | display: none; |
| 487 | } |
| 488 | |
| 489 | .unlinked-icon { |
| 490 | display: block; |
| 491 | } |
| 492 | } |
| 493 | |
| 494 | input { |
| 495 | &[type='checkbox']='checkbox'] { |
| 496 | display: none; |
| 497 | } |
| 498 | } |
| 499 | } |
| 500 | |
| 501 | label { |
| 502 | font-size: 12px; |
| 503 | justify-content: center; |
| 504 | color: $color__gray-dark; |
| 505 | } |
| 506 | } |
| 507 | } |
| 508 | } |
| 509 | } |
| 510 | |
| 511 | // Image radio and checkbox control. |
| 512 | .image-radio-wrapper, |
| 513 | .image-checkbox-wrapper { |
| 514 | display: flex; |
| 515 | |
| 516 | li { |
| 517 | flex: 1; |
| 518 | text-align: center; |
| 519 | |
| 520 | &:first-child { |
| 521 | label { |
| 522 | border-radius: 3px 0 0 3px; |
| 523 | border-left: 1px solid darken($color__gray, 10%); |
| 524 | } |
| 525 | } |
| 526 | |
| 527 | &:last-child { |
| 528 | label { |
| 529 | border-radius: 0 3px 3px 0; |
| 530 | } |
| 531 | } |
| 532 | |
| 533 | label { |
| 534 | height: 35px; |
| 535 | display: flex; |
| 536 | align-items: center; |
| 537 | justify-content: center; |
| 538 | background: $color__white; |
| 539 | border: 1px solid darken($color__gray, 10%); |
| 540 | border-left: none; |
| 541 | |
| 542 | img { |
| 543 | width: 16px; |
| 544 | height: 16px; |
| 545 | } |
| 546 | |
| 547 | &.selected { |
| 548 | background: $color__gray; |
| 549 | } |
| 550 | } |
| 551 | |
| 552 | input { |
| 553 | display: none; |
| 554 | |
| 555 | &:checked { |
| 556 | + label { |
| 557 | background: $color__gray; |
| 558 | } |
| 559 | } |
| 560 | } |
| 561 | } |
| 562 | } |
| 563 | |
| 564 | // Dimension control reset |
| 565 | .everest-forms-dimension-reset { |
| 566 | display: flex; |
| 567 | align-items: center; |
| 568 | width: calc(35% - 12px); |
| 569 | |
| 570 | .reset { |
| 571 | width: 16px; |
| 572 | height: 16px; |
| 573 | font-size: 16px; |
| 574 | padding: 7px; |
| 575 | cursor: pointer; |
| 576 | margin-left: 10px; |
| 577 | color: $color__primary; |
| 578 | transition: all 0.2s ease 0s; |
| 579 | |
| 580 | &:hover { |
| 581 | color: darken($color__primary, 10%); |
| 582 | } |
| 583 | } |
| 584 | } |
| 585 | |
| 586 | // Select2 control. |
| 587 | .select2-container { |
| 588 | width: 100% !important; |
| 589 | |
| 590 | &.select2-container--default { |
| 591 | .select2-selection--single, |
| 592 | .select2-selection--multiple { |
| 593 | outline: none; |
| 594 | border-radius: 0; |
| 595 | border-color: #e1e1e1; |
| 596 | box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.07); |
| 597 | |
| 598 | .select2-selection__clear { |
| 599 | line-height: 24px; |
| 600 | } |
| 601 | } |
| 602 | |
| 603 | .select2-selection--multiple { |
| 604 | ul { |
| 605 | &.select2-selection__rendered { |
| 606 | display: block; |
| 607 | |
| 608 | .select2-selection__clear { |
| 609 | margin-top: 2px; |
| 610 | } |
| 611 | |
| 612 | li { |
| 613 | border-radius: 3px; |
| 614 | } |
| 615 | } |
| 616 | } |
| 617 | } |
| 618 | } |
| 619 | } |
| 620 | } |
| 621 | |
| 622 | /** |
| 623 | * Section styling. |
| 624 | */ |
| 625 | #customize-controls { |
| 626 | .customize-info { |
| 627 | .customize-section-description { |
| 628 | margin: 0; |
| 629 | } |
| 630 | } |
| 631 | } |
| 632 | |
| 633 | /** |
| 634 | * Select2 Dropdown. |
| 635 | */ |
| 636 | .wp-customizer { |
| 637 | .select2-dropdown { |
| 638 | z-index: 900000; |
| 639 | border-color: $color__gray; |
| 640 | } |
| 641 | |
| 642 | .select2-container--default { |
| 643 | .select2-results__option { |
| 644 | &[area-selected]], |
| 645 | &[data-selected]], |
| 646 | &[aria-selected='true']='true'], |
| 647 | &[data-selected='true']='true'] { |
| 648 | &:focus { |
| 649 | outline: none; |
| 650 | } |
| 651 | } |
| 652 | |
| 653 | &.select2-results__option--highlighted { |
| 654 | &[area-selected]], |
| 655 | &[data-selected]] { |
| 656 | background-color: $color__blue; |
| 657 | } |
| 658 | } |
| 659 | } |
| 660 | |
| 661 | .select2-search--dropdown { |
| 662 | .select2-search__field { |
| 663 | border-color: #e1e1e1; |
| 664 | } |
| 665 | } |
| 666 | } |
| 667 | } |
| 668 |