visual improvements

This commit is contained in:
Chneemann 2024-08-03 18:27:23 +02:00
parent 17cf83a4f2
commit f61ff3c93d
2 changed files with 20 additions and 9 deletions

View file

@ -20,6 +20,13 @@ section {
z-index: 1000;
overflow: hidden; /* Verhindert, dass das Video aus dem Overlay herausragt */
position: relative;
video {
width: 100%;
height: 100%;
}
&:hover .video-header {
opacity: 1;
}
}
.video-header {
@ -37,10 +44,6 @@ section {
transition: opacity 300ms ease-in-out;
}
.video-overlay:hover .video-header {
opacity: 1;
}
.back-button {
cursor: pointer;
background: none;
@ -63,8 +66,3 @@ section {
width: 32px;
height: auto;
}
.video-overlay video {
width: 100%;
height: 100%;
}

View file

@ -12,6 +12,19 @@ section {
height: 100%;
object-fit: cover;
}
&::after {
content: "";
position: absolute;
left: 0;
bottom: 0;
width: 100%;
height: 10%;
background: linear-gradient(
to bottom,
rgba(0, 0, 0, 0) 0%,
rgba(0, 0, 0, 1) 100%
);
}
}
.content {