tzcloud-best-ui
Version:
A super practical component library that developed by vue2.x and element-ui
152 lines (132 loc) • 2.71 kB
CSS
.best-puzzler {
position: relative;
width: 100%;
}
.best-puzzler__inner {
position: relative;
margin-bottom: 10px;
min-height: 200px;
background: #ccc;
}
.best-puzzler__img1 {
width: 100%;
height: auto;
}
.best-puzzler__img2 {
position: absolute;
top: 0;
left: 0;
height: auto;
z-index: 2;
}
.best-puzzler__tips {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: rgba(0, 0, 0, 0.7);
z-index: 3;
}
.best-puzzler__tips-wrap {
position: absolute;
top: 50%;
left: 0;
width: 100%;
transform: translateY(-50%);
color: #fff;
font-size: 14px;
text-align: center;
line-height: initial;
}
.best-puzzler__tips-icon {
font-size: 24px;
}
.best-puzzler__slider {
background: #f4f5f6;
border-radius: 3px;
color: #909399;
padding-right: 64px;
position: relative;
}
.best-puzzler__slider-text {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
color: #909399;
font-size: 14px;
line-height: 44px;
padding-left: 64px;
text-align: center;
}
.best-puzzler__slider .el-slider__runway {
background: transparent;
border-radius: 0;
height: 44px;
margin: 0;
}
.best-puzzler__slider .el-slider__bar {
height: 44px;
}
.best-puzzler__slider.is-success .el-slider__bar {
background: #e1f3d8;
}
.best-puzzler__slider.is-fail .el-slider__bar {
background: #fde2e2;
}
.best-puzzler__slider .el-slider__bar {
height: 44px;
}
.best-puzzler__slider .el-slider__button-wrapper {
position: absolute;
top: 2px;
left: 0;
width: auto;
height: auto;
transform: none;
}
.best-puzzler__slider .el-slider__button {
background-color: white;
border: none;
border-radius: 3px;
box-sizing: border-box;
box-shadow: 0px 0px 2px 0px rgba(0, 0, 0, 0.2);
width: 64px;
height: 40px;
cursor: pointer;
}
.best-puzzler__slider .el-slider__button.dragging,
.best-puzzler__slider .el-slider__button.hover,
.best-puzzler__slider .el-slider__button:hover {
transform: none;
}
.best-puzzler__slider .el-slider__button::after {
content: ">>";
position: absolute;
left: 0;
top: 50%;
width: 100%;
height: 20px;
line-height: 20px;
margin-top: -10px;
text-align: center;
font-size: 16px;
font-weight: bold;
color: inherit;
}
.best-puzzler .fade-enter-active,
.best-puzzler .fade-leave-active {
transition: all .28s ease-in-out;
}
.best-puzzler .fade-enter,
.best-puzzler .fade-leave-to {
opacity: 0;
}
.best-dialog-puzzler__title {
color: #303133;
font-size: 16px;
line-height: 22px;
margin-bottom: 10px;
}