You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

129 lines
2.4 KiB

10 years ago
@inputNumberPrefixCls: ant-input-number;
@import "../mixins/iconfont";
.@{inputNumberPrefixCls} {
margin: 0;
padding: 0;
line-height: 26px;
font-size: 12px;
height: 26px;
display: inline-block;
vertical-align: middle;
border: 1px solid #D9D9D9;
border-radius: 5px;
overflow: hidden;
10 years ago
&-handler {
text-align: center;
line-height: 12px;
height: 12px;
overflow: hidden;
}
&-handler-up-inner, &-handler-down-inner {
color: #666666;
user-select: none;
-webkit-user-select: none;
}
&-handler-up-inner {
margin-left: -1px;
}
10 years ago
&:hover {
10 years ago
border-color: @primary-color;
10 years ago
.@{inputNumberPrefixCls}-handler-up, .@{inputNumberPrefixCls}-handler-wrap {
10 years ago
border-color: @primary-color;
10 years ago
}
}
&-disabled:hover {
border-color: #d9d9d9;
.@{inputNumberPrefixCls}-handler-up, .@{inputNumberPrefixCls}-handler-wrap {
border-color: #d9d9d9;
}
}
&-input-wrap {
overflow: hidden;
height: 26px;
}
&-input {
width: 100%;
text-align: center;
outline: 0;
-moz-appearance: textfield;
line-height: 26px;
height: 22px;
10 years ago
transition: all 0.3s ease;
color: #666666;
border: 0;
border-radius: 5px;
padding: 0;
}
&-handler-wrap {
float: right;
border-left: 1px solid #D9D9D9;
width: 20px;
height: 26px;
10 years ago
margin-top: -1px;
10 years ago
}
&-handler-up {
10 years ago
padding-top: 1px;
10 years ago
border-bottom: 1px solid #D9D9D9;
cursor: pointer;
10 years ago
&-inner {
.iconfont-mixin();
transform: rotate(270deg) scale(0.8);
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
10 years ago
top:-2px;
&:before {
content: "\e611";
}
}
}
&-handler-down {
cursor: pointer;
10 years ago
&-inner {
.iconfont-mixin();
transform: rotate(90deg) scale(0.8);
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1);
10 years ago
&:before {
content: "\e611";
}
}
}
.handler-disabled() {
opacity: 0.72;
cursor: default;
10 years ago
&:hover {
cursor: default;
10 years ago
color: #999;
border-color: #d9d9d9;
}
}
&-handler-down-disabled, &-handler-up-disabled {
.handler-disabled();
}
&-disabled {
.@{inputNumberPrefixCls}-input {
opacity: 0.72;
cursor: not-allowed;
background-color: #f3f3f3;
}
.@{inputNumberPrefixCls}-handler {
.handler-disabled();
}
}
}