@jdcfe/yep-react
Version:
一套移动端的React组件库
118 lines (117 loc) • 2.41 kB
CSS
.Yep-carousel-root {
outline: none;
align-items: center;
display: flex;
}
.Yep-carousel {
position: relative;
width: 100%;
}
.Yep-carousel img {
width: 100%;
display: inline-block;
pointer-events: none;
}
.Yep-carousel.Yep-carousel-slider {
position: relative;
margin: 0;
overflow: hidden;
}
.Yep-carousel .Yep-slider-wrapper {
overflow: hidden;
margin: auto;
width: 100%;
transition: height 0.15s ease-in;
}
.Yep-carousel .Yep-slider-wrapper.axis-horizontal .Yep-slider {
display: flex;
}
.Yep-carousel .Yep-slider-wrapper.axis-horizontal .Yep-slider .Yep-slide {
flex-direction: column;
flex-flow: column;
}
.Yep-carousel .Yep-slider-wrapper.axis-vertical {
display: flex;
}
.Yep-carousel .Yep-slider-wrapper.axis-vertical .Yep-slider {
flex-direction: column;
}
.Yep-carousel .Yep-slider {
margin: 0;
padding: 0;
position: relative;
list-style: none;
width: 100%;
}
.Yep-carousel .Yep-slider.animated {
transition: all 0.35s ease-in-out;
}
.Yep-carousel .Yep-slide {
min-width: 100%;
margin: 0;
position: relative;
text-align: center;
}
.Yep-carousel .Yep-slide img {
width: 100%;
vertical-align: top;
border: 0;
}
.Yep-carousel .Yep-slide iframe {
display: inline-block;
width: calc(100% - 80px);
margin: 0 40px 40px;
border: 0;
}
.Yep-carousel .Yep-slide .legend {
transition: all 0.5s ease-in-out;
position: absolute;
bottom: 40px;
left: 50%;
margin-left: -45%;
width: 90%;
border-radius: 10px;
background: #000;
color: #fff;
padding: 10px;
font-size: 12px;
text-align: center;
opacity: 0.25;
transition: opacity 0.35s ease-in-out;
}
.Yep-carousel .Yep-control-dots {
position: absolute;
bottom: 0;
margin: 10px 0;
text-align: center;
width: 100%;
}
.Yep-carousel .Yep-control-dots .Yep-dot {
transition: opacity 0.25s ease-in;
opacity: 0.3;
box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9);
background: #fff;
border-radius: 50%;
width: 8px;
height: 8px;
cursor: pointer;
display: inline-block;
margin: 0 8px;
}
.Yep-carousel .Yep-control-dots .Yep-dot.selected {
opacity: 1;
}
.Yep-carousel .Yep-carousel-status {
position: absolute;
display: flex;
justify-content: center;
align-items: center;
right: 30px;
bottom: 60px;
width: 80px;
height: 40px;
background: rgba(0, 0, 0, 0.3);
border-radius: 22px;
font-size: 28px;
color: rgb(255, 255, 255);
}