62 lines
1013 B
CSS
62 lines
1013 B
CSS
{2b6ac774f6544fc09f626e1a4d1f495bce05582a true 1013 styles.css 0xc002a84bd0}
*, *::before, *::after {
|
|
box-sizing: border-box;
|
|
}
|
|
body {
|
|
margin: 0;
|
|
}
|
|
.carousel {
|
|
width: 100vw;
|
|
height: 100vh;
|
|
position: relative;
|
|
}
|
|
.carousel > ul {
|
|
margin: 0;
|
|
padding: 0;
|
|
list-style: none;
|
|
}
|
|
.slide {
|
|
position: absolute;
|
|
inset: 0;
|
|
opacity: 0;
|
|
transition: 200ms opacity ease-in-out;
|
|
transition-delay: 200ms;
|
|
}
|
|
.slide > img {
|
|
display: block;
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
object-position: center;
|
|
}
|
|
.slide[data-active] {
|
|
opacity: 1;
|
|
z-index: 1;
|
|
transition-delay: 0ms;
|
|
}
|
|
.carousel-button {
|
|
position: absolute;
|
|
z-index: 2;
|
|
background: none;
|
|
border: none;
|
|
font-size: 50px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
color:#FFF;
|
|
cursor: pointer;
|
|
padding:0 5px;
|
|
background-color: rgba(0, 0, 0, .3);
|
|
}
|
|
.carousel-button:hover,
|
|
.carousel-button:focus {
|
|
color: white;
|
|
background-color: rgba(0, 0, 0, .2);
|
|
}
|
|
.carousel-button:focus {
|
|
outline: 1px solid black;
|
|
}
|
|
.carousel-button.prev {
|
|
left: 1rem;
|
|
}
|
|
.carousel-button.next {
|
|
right: 1rem;
|
|
} |