// Animation @keyframes pulse { 0% { transform: scale( 1 ); } 50% { transform: scale( 1.1 ); } 100% { transform: scale( 1 ); } } // Classes .video-card__wrapper { --videopress-video-item-max-width: 392px; // VideosGrid: two columns. max-width: var( --videopress-video-item-max-width ); position: relative; &.is-blank { .video-card__background { display: none; } .video-card__quick-actions-section, .video-card__title-section, .video-card__quick-actions-section { visibility: hidden; } } &:not(.disabled):hover { .video-card__background { opacity: 1; z-index: 1; top: calc( var( --spacing-base ) * -2 ); left: calc( var( --spacing-base ) * -2 ); padding: calc( var( --spacing-base ) * 2 ); } .video-card__thumbnail { z-index: 3; } .video-card__quick-actions-section { z-index: 3; opacity: 1; } } } .video-card__background { position: absolute; width: 100%; height: 100%; top: 0; left: 0; padding: 0; background-color: var( --jp-white ); z-index: 0; box-sizing: content-box; border-radius: var( --spacing-base ); border: 1px solid var( --jp-gray-10 ); opacity: 0; transition: opacity 0.2s ease-in-out, padding 0.2s ease-in-out, top 0.2s ease-in-out, left 0.2s ease-in-out; } .video-card__title-section { display: flex; align-items: center; margin-top: calc( var( --spacing-base ) * 2 ); margin-bottom: calc( var( --spacing-base ) * 2 ); justify-content: space-between; gap: var(--spacing-base); } .video-card__title { flex-grow: 2; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; position: relative; z-index: 2; } .video-card__video-plays-counter { display: flex; align-items: center; color: var( --jp-gray-50 ); white-space: nowrap; position: relative; z-index: 2; > svg { fill: var( --jp-gray-50 ); } } .video-card__quick-actions-section { display: flex; justify-content: space-between; &.small { margin-bottom: calc( var( --spacing-base ) * 6 ); } &:not(.small) { opacity: 0; position: relative; transition: opacity 0.2s ease-in-out; } } .chevron { display: flex; } .video-card__custom-thumbnail { // Change spinner color --wp-admin-theme-color: var( --jp-green-50 ); display: flex; justify-content: center; align-items: center; flex-direction: column; gap: var(--spacing-base); .pulse { animation: pulse 1.5s infinite; } }