87 lines
1.5 KiB
CSS
87 lines
1.5 KiB
CSS
#video-container {
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex-wrap: wrap;
|
|
justify-content: center;
|
|
gap: var(--video-card-gap);
|
|
padding: var(--video-card-gap);
|
|
}
|
|
|
|
.video-item {
|
|
width: var(--video-card-width);
|
|
max-width: 100%;
|
|
position: relative;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.video-image {
|
|
display: block;
|
|
width: 100%;
|
|
}
|
|
|
|
.video-image:not(.shown-on-display) {
|
|
filter: brightness(50%);
|
|
}
|
|
|
|
.video-bottom {
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
background-color: rgba(0, 0, 0, 0.5);
|
|
color: white;
|
|
}
|
|
|
|
.video-title {
|
|
user-select: none;
|
|
padding: 0.5em;
|
|
}
|
|
|
|
.video-progress {
|
|
height: 3px;
|
|
background-color: rgba(0, 0, 0, 0.5);
|
|
position: relative;
|
|
}
|
|
|
|
.video-progress .primary {
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
z-index: 10;
|
|
height: 100%;
|
|
background-color: #ee1111;
|
|
}
|
|
|
|
.video-progress .secondary {
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
height: 100%;
|
|
background-color: #994444;
|
|
}
|
|
|
|
.video-close {
|
|
color: white;
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
font-size: 1.75rem;
|
|
padding: 0.1em;
|
|
text-shadow: 0px 0px 0.5em black;
|
|
transition: all 0.1s ease-in-out;
|
|
}
|
|
|
|
.video-close:hover {
|
|
transform: scale(1.2);
|
|
text-shadow: 0px 0px 0.25em black;
|
|
transition: all 0.1s ease-in-out;
|
|
}
|
|
|
|
/* var(--video-card-width) * 2 + var(--video-card-gap) * 3 */
|
|
@media (max-width: 51.5em) {
|
|
.video-item {
|
|
width: 100%;
|
|
}
|
|
} |