zent
Version:
一套前端设计语言和基于React的实现
128 lines (127 loc) • 3.44 kB
CSS
.zent-swiper {
position: relative;
overflow: hidden;
}
.zent-swiper__container {
height: 100%;
position: relative;
transition: cubic-bezier(0.65, 0, 0.35, 1);
}
.zent-swiper__arrow {
cursor: pointer;
position: absolute;
top: 50%;
transform: translateY(-50%);
z-index: 2;
}
.zent-swiper__arrow-icon {
color: #000;
font-size: 24px;
opacity: 0.2;
transition: opacity 100ms cubic-bezier(0, 0, 0.1, 0.1);
}
.zent-swiper__arrow-icon:hover {
opacity: 0.7;
}
.zent-swiper__arrow--disabled {
cursor: not-allowed;
}
.zent-swiper__arrow--disabled .zent-swiper__arrow-icon {
opacity: 0.1;
}
.zent-swiper__arrow--disabled .zent-swiper__arrow-icon:hover {
opacity: 0.1;
}
.zent-swiper__arrow-left {
left: 14px;
}
.zent-swiper__arrow-left .zent-swiper__arrow-icon {
transform: rotate(180deg);
}
.zent-swiper__arrow-right {
right: 14px;
}
.zent-swiper--arrow-large .zent-swiper__arrow-icon {
font-size: 40px;
}
.zent-swiper--hover-show-arrow .zent-swiper__arrow-icon {
display: none;
}
.zent-swiper--hover-show-arrow:hover .zent-swiper__arrow-icon {
display: inline-block;
}
.zent-swiper-light .zent-swiper__arrow-icon {
color: #fff;
color: var(--theme-section-bg, var(--theme-stroke-9, #fff));
}
.zent-swiper__dots {
list-style: none;
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
z-index: 1;
}
.zent-swiper__dots-item {
background-color: #fff;
background-color: var(--theme-section-bg, var(--theme-stroke-9, #fff));
display: inline-block;
border: 0;
cursor: pointer;
outline: none;
}
.zent-swiper__dots--line .zent-swiper__dots-item {
margin: 8px 3px;
height: 4px;
width: 16px;
border-radius: 2px;
transition: all 300ms cubic-bezier(0.65, 0, 0.35, 1);
}
.zent-swiper__dots--line .zent-swiper__dots-item.zent-swiper__dots-item-active {
width: 24px;
}
.zent-swiper__dots--round .zent-swiper__dots-item {
height: 12px;
width: 12px;
margin: 12px 5px;
border-radius: 100%;
}
.zent-swiper__dots--round .zent-swiper__dots-large .zent-swiper__dots-item {
height: 15px;
width: 15px;
}
.zent-swiper__dots--round .zent-swiper__dots-small .zent-swiper__dots-item {
height: 15px;
width: 15px;
}
.zent-swiper__dots .zent-swiper__dots-item {
background-color: rgba(0, 0, 0, 0.2);
}
.zent-swiper__dots--dark .zent-swiper__dots-item-active {
background-color: #fff;
background-color: var(--theme-section-bg, var(--theme-stroke-9, #fff));
}
.zent-swiper__dots--light .zent-swiper__dots-item-active {
background-color: #356fd4;
background-color: var(--theme-primary-hover-bg, var(--theme-primary-5, #356fd4));
}
.zent-swiper__dots-white .zent-swiper__dots-item-active {
background-color: #fff;
background-color: var(--theme-section-bg, var(--theme-stroke-9, #fff));
}
.zent-swiper__dots-black .zent-swiper__dots-item-active {
background-color: #333;
background-color: var(--theme-title-color, var(--theme-stroke-1, #333));
}
.zent-swiper__dots-blue .zent-swiper__dots-item-active {
background-color: #155bd4;
background-color: var(--theme-primary-bg, var(--theme-primary-4, #155bd4));
}
.zent-swiper__dots-red .zent-swiper__dots-item-active {
background-color: #d42f15;
background-color: var(--theme-danger-color, var(--theme-error-2, #d42f15));
}
.zent-swiper__dots-green .zent-swiper__dots-item-active {
background-color: #45a110;
background-color: var(--theme-success-color, var(--theme-success-2, #45a110));
}