components
1 year ago
data
1 year ago
editor.scss
5 years ago
export.js
1 year ago
icon.js
5 years ago
index.js
5 years ago
editor.scss
666 lines
| 1 | .fl-row-overlay { |
| 2 | .fl-builder-has-submenu { |
| 3 | &.fl-builder-submenu-open > ul.fl-builder-submenu { |
| 4 | width: 200px; |
| 5 | } |
| 6 | } |
| 7 | } |
| 8 | |
| 9 | .tpc-template-cloud-export-modal { |
| 10 | display: flex; |
| 11 | flex-direction: column; |
| 12 | |
| 13 | h1 { |
| 14 | font-size: 16px; |
| 15 | } |
| 16 | |
| 17 | label { |
| 18 | margin-bottom: 10px; |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | .tpc-template-cloud-modal { |
| 23 | z-index: 999999; |
| 24 | .components-modal__frame { |
| 25 | width: 100%; |
| 26 | |
| 27 | .components-modal__content { |
| 28 | padding: 0; |
| 29 | background-color: #ffffff; |
| 30 | |
| 31 | .components-modal__header { |
| 32 | display: none; |
| 33 | } |
| 34 | |
| 35 | .components-placeholder { |
| 36 | box-shadow: none; |
| 37 | } |
| 38 | |
| 39 | .modal-header { |
| 40 | display: flex; |
| 41 | border-bottom: 1px solid #e0e0e0; |
| 42 | |
| 43 | .left { |
| 44 | display: flex; |
| 45 | flex-basis: 20%; |
| 46 | justify-content: flex-start; |
| 47 | |
| 48 | .tpc-template-cloud-icon { |
| 49 | width: 60px; |
| 50 | height: 60px; |
| 51 | padding: 10px; |
| 52 | } |
| 53 | } |
| 54 | |
| 55 | .center { |
| 56 | display: flex; |
| 57 | flex-basis: 60%; |
| 58 | justify-content: center; |
| 59 | |
| 60 | .tabs { |
| 61 | height: 60px; |
| 62 | font-size: 14px; |
| 63 | color: #616161; |
| 64 | font-weight: 500; |
| 65 | border-radius: 0; |
| 66 | padding-left: 25px; |
| 67 | padding-right: 25px; |
| 68 | |
| 69 | &.is-active { |
| 70 | box-shadow: inset 0 0 0 1.5px transparent, inset 0 -4px 0 0 #0073aa; |
| 71 | } |
| 72 | |
| 73 | &:hover { |
| 74 | background: transparent; |
| 75 | } |
| 76 | } |
| 77 | } |
| 78 | |
| 79 | .right { |
| 80 | display: flex; |
| 81 | flex-basis: 20%; |
| 82 | justify-content: flex-end; |
| 83 | |
| 84 | .components-button { |
| 85 | width: 60px; |
| 86 | height: 60px; |
| 87 | border-left: 1px solid #e6e9ec; |
| 88 | |
| 89 | &:hover { |
| 90 | background: #f1f1f1; |
| 91 | } |
| 92 | |
| 93 | svg { |
| 94 | width: 32px; |
| 95 | height: 32px; |
| 96 | fill: #616161; |
| 97 | } |
| 98 | } |
| 99 | |
| 100 | .components-button-group { |
| 101 | display: flex; |
| 102 | justify-content: center; |
| 103 | align-items: center; |
| 104 | height: 60px; |
| 105 | |
| 106 | .components-button { |
| 107 | border-left: 0; |
| 108 | box-shadow: none; |
| 109 | width: 38px; |
| 110 | height: 38px; |
| 111 | margin: 5px 10px; |
| 112 | padding: 5px; |
| 113 | border-radius: 6px; |
| 114 | |
| 115 | &.is-sync { |
| 116 | background: #f1f1f1; |
| 117 | border: 1px solid #d9d9d9; |
| 118 | |
| 119 | &:hover { |
| 120 | color: #f1f1f1; |
| 121 | background: #0073aa; |
| 122 | width: auto; |
| 123 | border: 1px solid #0073aa; |
| 124 | |
| 125 | &:before { |
| 126 | content: 'Sync'; |
| 127 | padding: 0 10px; |
| 128 | font-weight: 500; |
| 129 | } |
| 130 | |
| 131 | svg { |
| 132 | fill: #f1f1f1; |
| 133 | } |
| 134 | } |
| 135 | |
| 136 | svg { |
| 137 | fill: #0073aa; |
| 138 | } |
| 139 | } |
| 140 | |
| 141 | svg { |
| 142 | width: 26px; |
| 143 | height: 26px; |
| 144 | padding: 0; |
| 145 | } |
| 146 | } |
| 147 | } |
| 148 | } |
| 149 | } |
| 150 | |
| 151 | .tpc-modal-content { |
| 152 | background: #f1f1f1; |
| 153 | padding: 20px 40px; |
| 154 | |
| 155 | .notices { |
| 156 | .components-notice { |
| 157 | margin: 0 0 20px 0; |
| 158 | padding: 10px; |
| 159 | } |
| 160 | } |
| 161 | |
| 162 | .filters { |
| 163 | display: flex; |
| 164 | justify-content: space-between; |
| 165 | padding-bottom: 20px; |
| 166 | |
| 167 | .display-sorting { |
| 168 | display: flex; |
| 169 | align-items: center; |
| 170 | font-size: 11px; |
| 171 | |
| 172 | .sorting-label { |
| 173 | flex-grow: 1; |
| 174 | text-align: left; |
| 175 | padding-right: 20px; |
| 176 | border-right: 1px solid #d5dadf; |
| 177 | text-transform: uppercase; |
| 178 | } |
| 179 | |
| 180 | .sorting-filter { |
| 181 | .components-button { |
| 182 | padding: 0 0 0 20px; |
| 183 | height: auto; |
| 184 | color: inherit; |
| 185 | font-size: inherit; |
| 186 | text-transform: uppercase; |
| 187 | background: transparent; |
| 188 | font-weight: normal; |
| 189 | |
| 190 | &::after { |
| 191 | width: 11px; |
| 192 | content: " "; |
| 193 | margin-left: 3px; |
| 194 | } |
| 195 | |
| 196 | &.is-selected { |
| 197 | &::after { |
| 198 | font-family: dashicons; |
| 199 | content: "\f142"; |
| 200 | margin-left: 3px; |
| 201 | } |
| 202 | |
| 203 | &.is-asc { |
| 204 | &::after { |
| 205 | content: "\f140"; |
| 206 | } |
| 207 | } |
| 208 | } |
| 209 | } |
| 210 | } |
| 211 | } |
| 212 | |
| 213 | .view-filters { |
| 214 | display: flex; |
| 215 | |
| 216 | .search-filters { |
| 217 | width: 200px; |
| 218 | position: relative; |
| 219 | margin-right: 20px; |
| 220 | |
| 221 | input { |
| 222 | width: 100%; |
| 223 | max-height: 36px; |
| 224 | border: none; |
| 225 | border-bottom: 1px solid #d5dadf; |
| 226 | border-radius: 0; |
| 227 | font-size: 11px; |
| 228 | padding: 8px 15px 8px 0; |
| 229 | transition: border .5s; |
| 230 | background: none; |
| 231 | box-shadow: none; |
| 232 | color: #6d7882; |
| 233 | outline: none; |
| 234 | } |
| 235 | |
| 236 | > svg, |
| 237 | .components-button { |
| 238 | position: absolute; |
| 239 | top: 50%; |
| 240 | right: 0; |
| 241 | transform: translateY(-50%); |
| 242 | padding: 0; |
| 243 | min-width: 0; |
| 244 | |
| 245 | > svg { |
| 246 | fill: #101010; |
| 247 | } |
| 248 | } |
| 249 | } |
| 250 | |
| 251 | .components-button { |
| 252 | background: transparent; |
| 253 | |
| 254 | &.is-pressed { |
| 255 | background: transparent; |
| 256 | |
| 257 | svg { |
| 258 | fill: #0073aa; |
| 259 | } |
| 260 | } |
| 261 | |
| 262 | svg { |
| 263 | fill: #d9d9d9; |
| 264 | } |
| 265 | } |
| 266 | } |
| 267 | } |
| 268 | |
| 269 | .table-content { |
| 270 | &.is-grid { |
| 271 | display: grid; |
| 272 | grid-template-columns: 25% 25% 25% 25%; |
| 273 | } |
| 274 | |
| 275 | .table-row { |
| 276 | display: flex; |
| 277 | height: 60px; |
| 278 | width: 100%; |
| 279 | align-items: center; |
| 280 | padding: 0 25px; |
| 281 | background: #fff; |
| 282 | border: 1px solid rgba(0, 0, 0, 0.11); |
| 283 | border-top: none; |
| 284 | |
| 285 | &:first-child { |
| 286 | border-top: 1px solid rgba(0, 0, 0, 0.11); |
| 287 | } |
| 288 | |
| 289 | svg { |
| 290 | height: 24px; |
| 291 | margin-right: 10px; |
| 292 | fill: #b9b9b9; |
| 293 | } |
| 294 | |
| 295 | .row-title { |
| 296 | display: flex; |
| 297 | align-items: center; |
| 298 | |
| 299 | .components-base-control__field { |
| 300 | margin: 0; |
| 301 | } |
| 302 | } |
| 303 | |
| 304 | .row-controls { |
| 305 | display: flex; |
| 306 | align-items: center; |
| 307 | margin-left: auto; |
| 308 | |
| 309 | button { |
| 310 | padding: 6px 30px; |
| 311 | font-weight: 600; |
| 312 | color: #b9b9b9; |
| 313 | background: transparent; |
| 314 | } |
| 315 | } |
| 316 | |
| 317 | .actions { |
| 318 | display: flex; |
| 319 | margin-left: 50px; |
| 320 | justify-content: flex-end; |
| 321 | |
| 322 | &.no-controls { |
| 323 | margin-left: auto; |
| 324 | } |
| 325 | |
| 326 | .components-button { |
| 327 | padding: 6px 30px; |
| 328 | |
| 329 | &.is-primary { |
| 330 | margin-left: 10px; |
| 331 | } |
| 332 | } |
| 333 | } |
| 334 | } |
| 335 | |
| 336 | .table-grid { |
| 337 | border: 1px solid #ccc; |
| 338 | margin: 10px; |
| 339 | min-height: 350px; |
| 340 | |
| 341 | .grid-preview { |
| 342 | display: flex; |
| 343 | width: 100%; |
| 344 | height: 300px; |
| 345 | background-color: #b7c0cc; |
| 346 | background-position: top center; |
| 347 | background-size: cover; |
| 348 | |
| 349 | &:hover { |
| 350 | background-color: #404040; |
| 351 | } |
| 352 | |
| 353 | &.is-loading { |
| 354 | background: #404040; |
| 355 | |
| 356 | .preview-actions { |
| 357 | display: flex; |
| 358 | } |
| 359 | } |
| 360 | |
| 361 | .preview-actions { |
| 362 | opacity: 0; |
| 363 | transition: .3s ease opacity; |
| 364 | width: 100%; |
| 365 | height: auto; |
| 366 | flex-direction: column; |
| 367 | justify-content: center; |
| 368 | align-items: center; |
| 369 | background-color: rgba(0, 0, 0, 0.9); |
| 370 | display: flex; |
| 371 | |
| 372 | > .components-button { |
| 373 | width: 120px; |
| 374 | justify-content: center; |
| 375 | margin-bottom: 10px; |
| 376 | |
| 377 | &.is-secondary { |
| 378 | color: #ffffff; |
| 379 | box-shadow: inset 0 0 0 2px #ffffff; |
| 380 | |
| 381 | &:disabled { |
| 382 | background: transparent; |
| 383 | opacity: 0.5; |
| 384 | } |
| 385 | } |
| 386 | } |
| 387 | |
| 388 | .preview-controls { |
| 389 | .components-button { |
| 390 | width: 20px; |
| 391 | |
| 392 | svg { |
| 393 | fill: #ffffff; |
| 394 | } |
| 395 | } |
| 396 | } |
| 397 | } |
| 398 | |
| 399 | &:hover { |
| 400 | .preview-actions { |
| 401 | opacity: 1; |
| 402 | } |
| 403 | } |
| 404 | } |
| 405 | |
| 406 | .card-footer { |
| 407 | background: #ffffff; |
| 408 | border-top: 1px solid #ccc; |
| 409 | padding: 15px; |
| 410 | |
| 411 | p { |
| 412 | font-weight: 600; |
| 413 | margin: 0; |
| 414 | } |
| 415 | } |
| 416 | } |
| 417 | } |
| 418 | |
| 419 | .pagination { |
| 420 | padding-top: 20px; |
| 421 | |
| 422 | .components-button { |
| 423 | margin-right: 10px; |
| 424 | border-radius: 2px; |
| 425 | box-shadow: none; |
| 426 | |
| 427 | &:focus { |
| 428 | box-shadow: inset 0 0 0 1px #fff, 0 0 0 1.5px #007cba; |
| 429 | } |
| 430 | |
| 431 | &:not( .is-primary ) { |
| 432 | background: #ffffff; |
| 433 | |
| 434 | &:focus { |
| 435 | box-shadow: 0 0 0 1.5px #007cba; |
| 436 | } |
| 437 | } |
| 438 | } |
| 439 | } |
| 440 | |
| 441 | |
| 442 | .preview-header { |
| 443 | display: flex; |
| 444 | align-items: center; |
| 445 | justify-content: space-between; |
| 446 | |
| 447 | .right { |
| 448 | .components-button { |
| 449 | &:last-child { |
| 450 | margin-left: 10px; |
| 451 | } |
| 452 | } |
| 453 | } |
| 454 | } |
| 455 | |
| 456 | .preview-content { |
| 457 | margin: 20px 0; |
| 458 | |
| 459 | .block-editor-block-preview__container { |
| 460 | max-height: 60vh; |
| 461 | overflow: scroll; |
| 462 | |
| 463 | .block-editor-block-list__block { |
| 464 | &:first-child { |
| 465 | margin-top: 0; |
| 466 | margin-bottom: 0; |
| 467 | } |
| 468 | } |
| 469 | } |
| 470 | |
| 471 | iframe { |
| 472 | height: 560px; |
| 473 | position: relative; |
| 474 | z-index: 99; |
| 475 | } |
| 476 | |
| 477 | .is-loading { |
| 478 | position: absolute; |
| 479 | top: 50%; |
| 480 | right: calc( 50% - 12px ); |
| 481 | |
| 482 | svg { |
| 483 | -webkit-animation: icon-spin 2s linear infinite; |
| 484 | animation: icon-spin 2s linear infinite; |
| 485 | } |
| 486 | } |
| 487 | } |
| 488 | |
| 489 | .components-placeholder { |
| 490 | box-shadow: none; |
| 491 | margin: 20px 0; |
| 492 | } |
| 493 | |
| 494 | .tpc-modal-content-export { |
| 495 | padding: 50px 0; |
| 496 | |
| 497 | .tpc-modal-content-export-icon { |
| 498 | display: flex; |
| 499 | justify-content: center; |
| 500 | |
| 501 | svg { |
| 502 | fill: #c2cbd2; |
| 503 | width: 65px; |
| 504 | height: 65px; |
| 505 | } |
| 506 | } |
| 507 | |
| 508 | .tpc-modal-content-export-title { |
| 509 | color: #6d7882; |
| 510 | text-align: center; |
| 511 | font-size: 30px; |
| 512 | font-weight: 500; |
| 513 | margin-top: 20px; |
| 514 | } |
| 515 | |
| 516 | .tpc-modal-content-export-field { |
| 517 | margin-top: 40px; |
| 518 | display: flex; |
| 519 | align-items: center; |
| 520 | justify-content: center; |
| 521 | |
| 522 | .tpc-modal-content-export-field-input { |
| 523 | width: 500px; |
| 524 | background-color: #fff; |
| 525 | font-weight: 300; |
| 526 | color: #a4afb7; |
| 527 | padding-left: 25px; |
| 528 | border-radius: 3px 0 0 3px; |
| 529 | border: none; |
| 530 | height: 55px; |
| 531 | font-size: 16px; |
| 532 | |
| 533 | &:disabled { |
| 534 | cursor: not-allowed; |
| 535 | } |
| 536 | } |
| 537 | |
| 538 | .tpc-modal-content-export-field-submit { |
| 539 | color: #fff; |
| 540 | display: flex; |
| 541 | justify-content: center; |
| 542 | width: 150px; |
| 543 | border-radius: 0 3px 3px 0; |
| 544 | background-color: #39b54a; |
| 545 | height: 55px; |
| 546 | font-size: 16px; |
| 547 | |
| 548 | svg { |
| 549 | animation: a 2s infinite linear; |
| 550 | } |
| 551 | } |
| 552 | |
| 553 | .tpc-modal-content-export-field-input-label { |
| 554 | cursor: pointer; |
| 555 | width: 150px; |
| 556 | display: flex; |
| 557 | justify-content: center; |
| 558 | align-items: center; |
| 559 | } |
| 560 | } |
| 561 | } |
| 562 | } |
| 563 | } |
| 564 | } |
| 565 | } |
| 566 | |
| 567 | .components-toggle-control * { |
| 568 | cursor: pointer; |
| 569 | } |
| 570 | |
| 571 | .components-button { |
| 572 | &.is-loading { |
| 573 | svg { |
| 574 | -webkit-animation: icon-spin 2s linear infinite; |
| 575 | animation: icon-spin 2s linear infinite; |
| 576 | } |
| 577 | } |
| 578 | } |
| 579 | |
| 580 | .components-popover { |
| 581 | z-index: 9999999; |
| 582 | } |
| 583 | |
| 584 | @media (max-width: 1439px) { |
| 585 | .tpc-template-cloud-modal { |
| 586 | .components-modal__frame { |
| 587 | max-width: 990px; |
| 588 | |
| 589 | .components-modal__content { |
| 590 | .tpc-modal-content { |
| 591 | .table-content { |
| 592 | &.is-grid { |
| 593 | grid-template-columns: 33% 33% 33%; |
| 594 | } |
| 595 | } |
| 596 | } |
| 597 | } |
| 598 | } |
| 599 | } |
| 600 | } |
| 601 | |
| 602 | @media (max-width: 1439px) { |
| 603 | .tpc-template-cloud-modal { |
| 604 | .components-modal__frame { |
| 605 | max-width: 990px; |
| 606 | |
| 607 | .components-modal__content { |
| 608 | .tpc-modal-content { |
| 609 | .table-content { |
| 610 | &.is-grid { |
| 611 | grid-template-columns: 33% 33% 33%; |
| 612 | } |
| 613 | } |
| 614 | |
| 615 | .preview-content { |
| 616 | iframe { |
| 617 | width: 1440px; |
| 618 | } |
| 619 | } |
| 620 | } |
| 621 | } |
| 622 | } |
| 623 | } |
| 624 | } |
| 625 | |
| 626 | @media (min-width: 1440px) { |
| 627 | .tpc-template-cloud-modal { |
| 628 | .components-modal__frame { |
| 629 | max-width: 1200px; |
| 630 | |
| 631 | .components-modal__content { |
| 632 | .tpc-modal-content { |
| 633 | .preview-content { |
| 634 | iframe { |
| 635 | width: 1710px; |
| 636 | } |
| 637 | } |
| 638 | } |
| 639 | } |
| 640 | } |
| 641 | } |
| 642 | } |
| 643 | |
| 644 | @-webkit-keyframes icon-spin { |
| 645 | 0% { |
| 646 | -webkit-transform: rotate(0deg); |
| 647 | transform: rotate(0deg) |
| 648 | } |
| 649 | |
| 650 | to { |
| 651 | -webkit-transform: rotate(1turn); |
| 652 | transform: rotate(1turn) |
| 653 | } |
| 654 | } |
| 655 | |
| 656 | @keyframes icon-spin { |
| 657 | 0% { |
| 658 | -webkit-transform: rotate(0deg); |
| 659 | transform: rotate(0deg) |
| 660 | } |
| 661 | |
| 662 | to { |
| 663 | -webkit-transform: rotate(1turn); |
| 664 | transform: rotate(1turn) |
| 665 | } |
| 666 | } |