index.scss
537 lines
| 1 | @import "./menu.scss"; |
| 2 | |
| 3 | .components-modal__screen-overlay.presto-modal { |
| 4 | z-index: 999999; |
| 5 | } |
| 6 | .plyr--full-ui.plyr--video .plyr__control--overlaid { |
| 7 | color: #fff; |
| 8 | } |
| 9 | .components-placeholder { |
| 10 | .components-notice { |
| 11 | margin-left: 0; |
| 12 | margin-bottom: 15px; |
| 13 | } |
| 14 | } |
| 15 | |
| 16 | .presto-playlist__block-editor--video-list { |
| 17 | padding: 15px 20px; |
| 18 | border: 1px solid #ddd; |
| 19 | max-height: 200px; |
| 20 | overflow-y: scroll; |
| 21 | } |
| 22 | |
| 23 | progress.presto-progress { |
| 24 | -webkit-appearance: none; |
| 25 | -moz-appearance: none; |
| 26 | appearance: none; |
| 27 | |
| 28 | border: none; |
| 29 | |
| 30 | width: 100%; |
| 31 | height: 3px; |
| 32 | border-radius: 999px; |
| 33 | } |
| 34 | progress.presto-progress::-webkit-progress-bar { |
| 35 | background-color: #f3f3f3; |
| 36 | border-radius: 9999px; |
| 37 | } |
| 38 | progress.presto-progress::-moz-progress-bar { |
| 39 | background-color: #f3f3f3; |
| 40 | border-radius: 9999px; |
| 41 | } |
| 42 | progress.presto-progress::-webkit-progress-value { |
| 43 | background: var(--wp-admin-theme-color); |
| 44 | transition: 2s width ease; |
| 45 | } |
| 46 | |
| 47 | // let alignment be visible in admin |
| 48 | .editor-styles-wrapper [data-type="presto-player/reusable-display"]="presto-player/reusable-display""] .wp-block { |
| 49 | max-width: none; |
| 50 | margin: 8px 0; |
| 51 | } |
| 52 | |
| 53 | .components-card__body .presto-player__inner-tabs .components-tab-panel__tabs { |
| 54 | margin: 0 -24px 20px -24px; |
| 55 | border-bottom: 1px solid #dcdcdc; |
| 56 | } |
| 57 | |
| 58 | .presto-player { |
| 59 | &__placeholder-control { |
| 60 | flex: 1 0 100%; |
| 61 | margin: 10px 0; |
| 62 | padding: 12px; |
| 63 | background: #f3f3f3; |
| 64 | |
| 65 | .components-base-control, |
| 66 | .components-base-control__field { |
| 67 | margin-bottom: 0; |
| 68 | } |
| 69 | |
| 70 | p.components-base-control__help { |
| 71 | margin: 0; |
| 72 | } |
| 73 | } |
| 74 | |
| 75 | &__media-modal { |
| 76 | .components-modal__content { |
| 77 | display: flex; |
| 78 | flex-direction: column; |
| 79 | } |
| 80 | |
| 81 | // &-upload { |
| 82 | // display: flex; |
| 83 | // align-items: center; |
| 84 | |
| 85 | // > * { |
| 86 | // margin-right: 10px; |
| 87 | // } |
| 88 | // } |
| 89 | |
| 90 | &-content { |
| 91 | grid-area: main; |
| 92 | padding: 24px 24px 12px 24px; |
| 93 | display: grid; |
| 94 | overflow: hidden; |
| 95 | |
| 96 | .components-drop-zone__provider { |
| 97 | overflow: hidden; |
| 98 | display: grid; |
| 99 | } |
| 100 | |
| 101 | .presto-player { |
| 102 | &__media-not-found, |
| 103 | &__media-loading { |
| 104 | height: 100%; |
| 105 | display: flex; |
| 106 | justify-content: center; |
| 107 | text-align: center; |
| 108 | } |
| 109 | |
| 110 | &__media-list { |
| 111 | display: grid; |
| 112 | grid-template-rows: auto 1fr; |
| 113 | overflow: hidden; |
| 114 | |
| 115 | h1, |
| 116 | h2, |
| 117 | h3, |
| 118 | h4, |
| 119 | h5 { |
| 120 | margin-top: 0; |
| 121 | } |
| 122 | } |
| 123 | &__media-list-items { |
| 124 | border-radius: 3px; |
| 125 | overflow: auto; |
| 126 | border: 1px solid rgb(221, 221, 221); |
| 127 | } |
| 128 | |
| 129 | &__media-list-item { |
| 130 | background: #fff; |
| 131 | display: grid; |
| 132 | grid-template-columns: 50px 8fr 1fr 2fr; |
| 133 | grid-template-rows: auto; |
| 134 | margin-bottom: -1px; |
| 135 | align-items: center; |
| 136 | cursor: pointer; |
| 137 | transition: background-color 0.35s ease, color 0.35s ease; |
| 138 | |
| 139 | &.is-selected, |
| 140 | &:nth-child(even).is-selected { |
| 141 | color: #fff; |
| 142 | background: var(--wp-admin-theme-color); |
| 143 | |
| 144 | .presto-player__media-list-item-icon { |
| 145 | color: #fff; |
| 146 | } |
| 147 | } |
| 148 | |
| 149 | > * { |
| 150 | padding: 1em; |
| 151 | } |
| 152 | |
| 153 | &:hover:not(.is-selected) { |
| 154 | background: #f3f3f3; |
| 155 | } |
| 156 | &:nth-child(even) { |
| 157 | background: #f9f9f9; |
| 158 | &:hover:not(.is-selected) { |
| 159 | background: #f3f3f3; |
| 160 | } |
| 161 | } |
| 162 | |
| 163 | &-icon { |
| 164 | color: var(--wp-admin-theme-color); |
| 165 | } |
| 166 | |
| 167 | &-title { |
| 168 | font-size: 14px; |
| 169 | font-weight: 500; |
| 170 | } |
| 171 | } |
| 172 | } |
| 173 | |
| 174 | .components-drop-zone { |
| 175 | z-index: 99; |
| 176 | } |
| 177 | } |
| 178 | |
| 179 | &-sidebar { |
| 180 | display: none; |
| 181 | grid-area: sidebar; |
| 182 | padding: 0 16px; |
| 183 | z-index: 75; |
| 184 | background: #f3f3f3; |
| 185 | border-left: 1px solid #ddd; |
| 186 | overflow: auto; |
| 187 | |
| 188 | &-content { |
| 189 | padding: 16px 0; |
| 190 | } |
| 191 | } |
| 192 | |
| 193 | &-header { |
| 194 | grid-area: header; |
| 195 | padding: 24px 24px 12px 24px; |
| 196 | |
| 197 | .components-notice { |
| 198 | margin: 15px 0 0; |
| 199 | } |
| 200 | } |
| 201 | &-footer { |
| 202 | grid-area: footer; |
| 203 | border-top: 1px solid #ddd; |
| 204 | display: flex; |
| 205 | align-items: center; |
| 206 | justify-content: flex-end; |
| 207 | padding: 8px; |
| 208 | } |
| 209 | |
| 210 | @media screen and (min-width: 780px) { |
| 211 | &-sidebar { |
| 212 | display: block; |
| 213 | } |
| 214 | &-layout { |
| 215 | margin: -24px; |
| 216 | display: grid; |
| 217 | flex: 1; |
| 218 | max-height: calc(100vh - 68px); |
| 219 | grid-template-columns: 1fr 1fr minmax(0px, 267px); |
| 220 | grid-template-rows: minmax(50px, auto) 1fr 60px; |
| 221 | grid-template-areas: |
| 222 | "header header sidebar" |
| 223 | "main main sidebar" |
| 224 | "footer footer footer"; |
| 225 | overflow: hidden; |
| 226 | } |
| 227 | } |
| 228 | } |
| 229 | |
| 230 | &__media-modal-item { |
| 231 | width: 200px; |
| 232 | height: 200px; |
| 233 | margin: 8px; |
| 234 | display: flex; |
| 235 | flex-direction: column; |
| 236 | cursor: pointer; |
| 237 | border: 3px solid transparent; |
| 238 | box-shadow: inset 0 0 0 1px rgb(0 0 0 / 10%); |
| 239 | user-select: none; |
| 240 | |
| 241 | &.is-selected { |
| 242 | border-color: var(--wp-admin-theme-color); |
| 243 | } |
| 244 | |
| 245 | &:before { |
| 246 | padding-top: 100%; |
| 247 | } |
| 248 | |
| 249 | &-media-area { |
| 250 | flex: 1; |
| 251 | display: flex; |
| 252 | align-items: center; |
| 253 | justify-content: center; |
| 254 | overflow: hidden; |
| 255 | padding: 10px; |
| 256 | box-shadow: inset 0 0 0 1px rgb(0 0 0 / 20%); |
| 257 | background: #eee; |
| 258 | margin-bottom: -1px; |
| 259 | } |
| 260 | |
| 261 | &-title { |
| 262 | text-align: center; |
| 263 | font-weight: bold; |
| 264 | padding: 10px; |
| 265 | margin-top: auto; |
| 266 | box-shadow: inset 0 0 0 1px rgb(0 0 0 / 20%); |
| 267 | white-space: nowrap; |
| 268 | overflow: hidden; |
| 269 | text-overflow: ellipsis; |
| 270 | } |
| 271 | } |
| 272 | |
| 273 | &__panel-grid-list { |
| 274 | .components-button.block-editor-block-types-list__item { |
| 275 | width: 50%; |
| 276 | } |
| 277 | } |
| 278 | |
| 279 | &__style-name input[type="text"]="text""] { |
| 280 | padding: 3px 8px; |
| 281 | font-size: 1.7em; |
| 282 | line-height: 100%; |
| 283 | height: 1.7em; |
| 284 | width: 100%; |
| 285 | outline: none; |
| 286 | margin: 0 0 3px; |
| 287 | background-color: #fff; |
| 288 | } |
| 289 | |
| 290 | &__modal-modal-overlay, |
| 291 | &__modal-overlay { |
| 292 | z-index: 999999 !important; |
| 293 | } |
| 294 | |
| 295 | &__modal-presets-overlay { |
| 296 | z-index: 999999 !important; |
| 297 | } |
| 298 | |
| 299 | &__modal-presets { |
| 300 | width: 100%; |
| 301 | height: 100%; |
| 302 | max-width: calc(100% - 16px - 16px); |
| 303 | max-height: calc(100% - 16px - 16px); |
| 304 | |
| 305 | .presto-player__style-sidebar { |
| 306 | overflow: auto; |
| 307 | width: 300px; |
| 308 | padding-right: 2em; |
| 309 | margin: 0 -1px 0 0; |
| 310 | |
| 311 | .components-tab-panel__tab-content { |
| 312 | overflow: auto; |
| 313 | height: calc(100% - 49px); |
| 314 | } |
| 315 | .components-panel__body { |
| 316 | padding: 0; |
| 317 | height: 100%; |
| 318 | overflow: hidden; |
| 319 | |
| 320 | > div { |
| 321 | height: 100%; |
| 322 | overflow: hidden; |
| 323 | } |
| 324 | } |
| 325 | } |
| 326 | |
| 327 | .presto-player__style-preview-panel { |
| 328 | margin: 0px -1px; |
| 329 | overflow: auto; |
| 330 | background: #f3f3f3; |
| 331 | height: 100%; |
| 332 | border: 1px solid #e0e0e0; |
| 333 | display: grid; |
| 334 | margin: 0; |
| 335 | place-items: center center; |
| 336 | padding: 60px; |
| 337 | position: relative; |
| 338 | |
| 339 | .components-disabled { |
| 340 | width: 100%; |
| 341 | } |
| 342 | } |
| 343 | |
| 344 | .presto-player { |
| 345 | &__wrapper { |
| 346 | max-width: 600px; |
| 347 | width: 100%; |
| 348 | margin: auto; |
| 349 | } |
| 350 | } |
| 351 | |
| 352 | .components-modal__content { |
| 353 | display: flex; |
| 354 | flex-direction: column; |
| 355 | > :nth-child(2) { |
| 356 | display: contents; |
| 357 | } |
| 358 | } |
| 359 | |
| 360 | .components-tab-panel__tabs { |
| 361 | border-bottom: 1px solid #dcdcdc; |
| 362 | } |
| 363 | .components-tab-panel__tab-content { |
| 364 | width: 100%; |
| 365 | padding: 16px; |
| 366 | } |
| 367 | |
| 368 | .presto-player__preset-options { |
| 369 | flex: 1; |
| 370 | display: flex; |
| 371 | flex-direction: column; |
| 372 | } |
| 373 | |
| 374 | .presto-player__style-preview-area { |
| 375 | flex: 1 1 1px; |
| 376 | overflow: hidden; |
| 377 | |
| 378 | .components-panel { |
| 379 | height: 100%; |
| 380 | } |
| 381 | } |
| 382 | } |
| 383 | |
| 384 | &__placeholder { |
| 385 | .components-spinner { |
| 386 | margin: auto; |
| 387 | } |
| 388 | } |
| 389 | |
| 390 | &__preset-options { |
| 391 | .components-base-control { |
| 392 | margin-bottom: 24px; |
| 393 | } |
| 394 | |
| 395 | .components-notice { |
| 396 | margin: 0; |
| 397 | } |
| 398 | } |
| 399 | } |
| 400 | |
| 401 | .block-editor-block-styles { |
| 402 | &__item { |
| 403 | position: relative; |
| 404 | &:hover { |
| 405 | .block-editor-block-styles__item-edit { |
| 406 | visibility: visible; |
| 407 | } |
| 408 | } |
| 409 | } |
| 410 | &__item-edit-icon { |
| 411 | background: #333; |
| 412 | border-radius: 999px; |
| 413 | width: 24px; |
| 414 | height: 24px; |
| 415 | margin: 0 1px; |
| 416 | display: flex; |
| 417 | align-items: center; |
| 418 | justify-content: center; |
| 419 | } |
| 420 | |
| 421 | &__item-edit { |
| 422 | z-index: 9; |
| 423 | top: 0; |
| 424 | right: 0; |
| 425 | position: absolute; |
| 426 | text-align: center; |
| 427 | display: flex; |
| 428 | align-items: center; |
| 429 | justify-content: center; |
| 430 | color: #fff; |
| 431 | visibility: hidden; |
| 432 | |
| 433 | .dashicon { |
| 434 | width: 16px; |
| 435 | height: 16px; |
| 436 | font-size: 16px; |
| 437 | } |
| 438 | |
| 439 | // visibility: hidden; |
| 440 | } |
| 441 | } |
| 442 | |
| 443 | .presto-player__pro-badge { |
| 444 | margin: 0 4px; |
| 445 | line-height: 1; |
| 446 | background: var(--wp-admin-theme-color); |
| 447 | color: white; |
| 448 | padding: 3px 6px; |
| 449 | border-radius: 9999px; |
| 450 | font-size: 10px; |
| 451 | display: inline-block; |
| 452 | } |
| 453 | |
| 454 | .ph-chapter { |
| 455 | &.is-new { |
| 456 | input { |
| 457 | border: 1px dashed #999; |
| 458 | &:disabled { |
| 459 | background: #e3e3e3; |
| 460 | } |
| 461 | } |
| 462 | } |
| 463 | |
| 464 | &__handle { |
| 465 | cursor: move; |
| 466 | opacity: 0.35; |
| 467 | } |
| 468 | &__remove { |
| 469 | visibility: hidden; |
| 470 | opacity: 0; |
| 471 | transition: opacity 0.3s ease, visibility 0.3s ease; |
| 472 | } |
| 473 | |
| 474 | &:hover .ph-chapter__remove { |
| 475 | visibility: visible; |
| 476 | opacity: 1; |
| 477 | } |
| 478 | } |
| 479 | |
| 480 | svg.presto-block-icon { |
| 481 | fill: none !important; |
| 482 | stroke: var(--wp-admin-theme-color, #007cba) !important; |
| 483 | } |
| 484 | |
| 485 | svg.playlist-block-icon { |
| 486 | color: var(--wp-admin-theme-color, #007cba); |
| 487 | } |
| 488 | |
| 489 | .block-editor-list-view-leaf.is-selected { |
| 490 | svg.playlist-block-icon { |
| 491 | color: #fff; |
| 492 | } |
| 493 | svg.presto-block-icon { |
| 494 | stroke: #fff !important; |
| 495 | } |
| 496 | } |
| 497 | |
| 498 | .presto-link-placeholder-input { |
| 499 | input { |
| 500 | min-height: 36px; |
| 501 | } |
| 502 | } |
| 503 | |
| 504 | .wp-block-video { |
| 505 | position: relative; |
| 506 | .presto-player__search-bar { |
| 507 | position: unset; |
| 508 | } |
| 509 | } |
| 510 | |
| 511 | .wp-block-presto-player-playlist-list { |
| 512 | gap: 16px; |
| 513 | display: flex; |
| 514 | flex-direction: column; |
| 515 | |
| 516 | .block-list-appender.wp-block { |
| 517 | position: unset; |
| 518 | width: 100%; |
| 519 | } |
| 520 | .playlist__item-is--active { |
| 521 | .block-editor-rich-text__editable { |
| 522 | color: var(--playlist-highlight-text-color, #fff); |
| 523 | } |
| 524 | } |
| 525 | .block-editor-rich-text__editable.block-editor-block-list__block { |
| 526 | cursor: text; |
| 527 | color: inherit; |
| 528 | } |
| 529 | } |
| 530 | |
| 531 | .wp-block-presto-player-playlist-preview { |
| 532 | figure, |
| 533 | [data-type="presto-player/reusable-display"]="presto-player/reusable-display""] .wp-block { |
| 534 | margin: 0; |
| 535 | } |
| 536 | } |
| 537 |