jl-frontend/css/components/media_slideshow.css

96 lines
1.8 KiB
CSS
Raw Permalink Normal View History

2023-03-25 17:12:51 +00:00
.media-slideshow-frame {
height: 360px;
width: 100%;
position: relative;
border-radius: 15px;
2023-03-25 17:12:51 +00:00
}
.media-slideshow-photo {
object-fit: cover;
width: 100%;
height: 100%;
display: none;
border-radius: 15px;
2023-03-25 17:12:51 +00:00
}
.media-slideshow-video {
width: 100%;
height: 100%;
display: none;
object-fit: cover;
border-radius: 15px;
2023-03-25 17:12:51 +00:00
}
.media-slideshow-arrow-left {
cursor: pointer;
position: absolute;
top: 50%;
width: auto;
margin-top: -22px;
padding: 16px;
color: white;
font-weight: bold;
font-size: 18px;
transition: 0.6s ease;
border-radius: 0 3px 3px 0;
user-select: none;
transition: 0.6s ease;
}
.media-slideshow-arrow-right {
cursor: pointer;
position: absolute;
top: 50%;
width: auto;
margin-top: -22px;
padding: 16px;
color: white;
font-weight: bold;
font-size: 18px;
transition: 0.6s ease;
border-radius: 0 3px 3px 0;
user-select: none;
right: 0;
border-radius: 3px 0 0 3px;
transition: 0.6s ease;
}
.media-slideshow-arrow-left:hover, .media-slideshow-arrow-right:hover {
background-color: rgba(0,0,0,0.8);
}
/* Number text (1/3 etc) */
.media-slideshow-number-text {
color: #f2f2f2;
font-size: 12px;
padding: 8px 12px;
position: absolute;
top: 10px;
left: 10px;
background-color: rgba(0, 0, 0, 0.633);
border-radius: 5px;
}
2023-03-25 17:12:51 +00:00
/* Fading animation */
.fade {
animation-name: fade;
animation-duration: 1.5s;
}
@keyframes fade {
from {opacity: .4}
to {opacity: 1}
}
/* Desktop view */
@media only screen and (min-width: 750px) {
.media-slideshow-frame {
height: 55vw;
max-height: 550px;
}
}
/* Desktop view */
@media only screen and (min-width: 1200px) {
}