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