Files
2025-06-18 08:06:08 +02:00

63 lines
1.1 KiB
CSS

.video-player {
background-image: var(--thumbnail);
background-size: 100%;
background-position: center;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: background-size 0.4s ease;
&:hover {
background-size: 130%;
}
dialog {
padding: 0;
border: none;
border-radius: 8px;
/* box-shadow: 0 4px 32px rgba(0, 0, 0, 0.3); */
/* Center vertically and horizontally */
position: fixed;
right: 0;
left: 0;
top: 0;
bottom: 0;
background-color: black;
opacity: 1;
transform: scale(1);
transition: opacity 0.35s, transform 0.35s;
transform: scale(0);
opacity: 0;
&[open] {
opacity: 1;
transform: scale(1);
@starting-style {
transform: scale(0);
opacity: 0;
}
}
&::backdrop {
background: rgba(0, 0, 0, 0.8);
}
video {
background-color: black;
outline: none;
@media (min-width: 700px) {
width: 100%;
height: 100%;
}
@media (max-width: 700px) {
width: 100%;
height: auto;
}
}
}
}