zent
Version:
一套前端设计语言和基于React的实现
56 lines (55 loc) • 1.23 kB
CSS
.zent-number-input-wrapper {
position: relative;
}
.zent-number-input-count-wrapper .zent-input {
padding: 0 20px 0 10px;
}
.zent-number-input-arrow {
position: absolute;
right: 1px;
height: 50%;
line-height: 50%;
width: 20px;
text-align: center;
z-index: 10;
cursor: pointer;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
.zent-number-input-arrow i {
cursor: pointer;
color: #666
}
.zent-number-input-arrow i:hover {
color: #38f;
}
.zent-number-input-arrow:hover i {
color: #38f;
}
.zent-number-input-arrow-disable {
cursor: not-allowed;
}
.zent-number-input-arrow-disable i {
cursor: not-allowed;
color: #cacaca;
}
.zent-number-input-arrow-disable:hover i {
color: #cacaca;
}
.zent-number-input-arrowup {
top: 1px;
border-left: 1px solid #e5e5e5;
border-bottom: 1px solid #e5e5e5;
}
.zent-number-input-arrowup i {
-webkit-transform: rotate(-90deg) scale(0.4);
transform: rotate(-90deg) scale(0.4);
}
.zent-number-input-arrowdown {
bottom: 1px;
border-left: 1px solid #e5e5e5;
}
.zent-number-input-arrowdown i {
-webkit-transform: rotate(90deg) scale(0.4);
transform: rotate(90deg) scale(0.4);
}