2015-07-01 14:48:47 +08:00
|
|
|
@inputNumberPrefixCls: ant-input-number;
|
|
|
|
|
|
|
|
@import "../mixins/iconfont";
|
2015-07-09 20:06:03 +08:00
|
|
|
@import "../mixins/input";
|
2015-07-01 14:48:47 +08:00
|
|
|
|
|
|
|
.@{inputNumberPrefixCls} {
|
2015-07-15 15:02:18 +08:00
|
|
|
.input();
|
2015-07-01 14:48:47 +08:00
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
2015-07-09 20:06:03 +08:00
|
|
|
line-height: 29px;
|
2015-07-01 14:48:47 +08:00
|
|
|
font-size: 12px;
|
2015-07-09 20:06:03 +08:00
|
|
|
height: 29px;
|
2015-07-01 14:48:47 +08:00
|
|
|
display: inline-block;
|
|
|
|
vertical-align: middle;
|
|
|
|
border: 1px solid #D9D9D9;
|
|
|
|
border-radius: 5px;
|
2015-07-07 17:30:24 +08:00
|
|
|
overflow: hidden;
|
2015-07-01 14:48:47 +08:00
|
|
|
|
|
|
|
&-handler {
|
|
|
|
text-align: center;
|
2015-07-09 20:06:03 +08:00
|
|
|
line-height: 0;
|
|
|
|
height: 15px;
|
2015-07-01 14:48:47 +08:00
|
|
|
overflow: hidden;
|
2015-07-15 15:50:44 +08:00
|
|
|
color: #999;
|
|
|
|
&:hover {
|
|
|
|
color: #666;
|
|
|
|
}
|
2015-07-01 14:48:47 +08:00
|
|
|
}
|
|
|
|
|
2015-07-09 20:06:03 +08:00
|
|
|
&-handler-down {
|
|
|
|
height: 14px;
|
|
|
|
}
|
|
|
|
|
2015-07-01 14:48:47 +08:00
|
|
|
&-handler-up-inner, &-handler-down-inner {
|
2015-07-09 20:06:03 +08:00
|
|
|
.iconfont-mixin();
|
|
|
|
line-height: 12px;
|
2015-07-01 14:48:47 +08:00
|
|
|
user-select: none;
|
|
|
|
-webkit-user-select: none;
|
2015-07-09 20:06:03 +08:00
|
|
|
position: absolute;
|
|
|
|
width: 12px;
|
|
|
|
height: 12px;
|
2015-07-20 11:46:48 +08:00
|
|
|
.iconfont-size-under-12px(8px);
|
2015-07-09 20:06:03 +08:00
|
|
|
right: 4px;
|
2015-07-07 17:30:24 +08:00
|
|
|
}
|
|
|
|
|
2015-07-01 14:48:47 +08:00
|
|
|
&:hover {
|
2015-07-09 20:06:03 +08:00
|
|
|
.hover();
|
2015-07-01 14:48:47 +08:00
|
|
|
}
|
|
|
|
|
2015-07-09 20:06:03 +08:00
|
|
|
&-focused {
|
|
|
|
.active();
|
|
|
|
}
|
2015-07-01 14:48:47 +08:00
|
|
|
|
2015-07-09 20:06:03 +08:00
|
|
|
&-disabled {
|
|
|
|
.disabled();
|
2015-07-01 14:48:47 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-input-wrap {
|
|
|
|
overflow: hidden;
|
2015-07-09 20:06:03 +08:00
|
|
|
height: 29px;
|
2015-07-01 14:48:47 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-input {
|
|
|
|
width: 100%;
|
|
|
|
text-align: center;
|
|
|
|
outline: 0;
|
|
|
|
-moz-appearance: textfield;
|
2015-07-09 20:06:03 +08:00
|
|
|
line-height: 29px;
|
2015-07-07 17:30:24 +08:00
|
|
|
height: 22px;
|
2015-07-01 14:48:47 +08:00
|
|
|
transition: all 0.3s ease;
|
|
|
|
color: #666666;
|
|
|
|
border: 0;
|
|
|
|
border-radius: 5px;
|
2015-07-09 20:06:03 +08:00
|
|
|
padding: 0 8px;
|
|
|
|
|
|
|
|
&[disabled] {
|
|
|
|
.disabled();
|
|
|
|
}
|
2015-07-01 14:48:47 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-handler-wrap {
|
|
|
|
float: right;
|
|
|
|
border-left: 1px solid #D9D9D9;
|
2015-07-09 20:06:03 +08:00
|
|
|
width: 22px;
|
|
|
|
height: 29px;
|
2015-07-07 17:09:04 +08:00
|
|
|
margin-top: -1px;
|
2015-07-09 20:06:03 +08:00
|
|
|
position: relative;
|
2015-07-01 14:48:47 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-handler-up {
|
|
|
|
border-bottom: 1px solid #D9D9D9;
|
2015-07-07 17:30:24 +08:00
|
|
|
cursor: pointer;
|
2015-07-01 14:48:47 +08:00
|
|
|
&-inner {
|
2015-07-09 20:06:03 +08:00
|
|
|
top: 2px;
|
2015-07-01 14:48:47 +08:00
|
|
|
&:before {
|
2015-07-10 16:16:32 +08:00
|
|
|
content: "\e600";
|
2015-07-11 01:27:34 +08:00
|
|
|
.ie-rotate(2);
|
2015-07-10 16:16:32 +08:00
|
|
|
transform: rotate(180deg);
|
2015-07-01 14:48:47 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-handler-down {
|
2015-07-07 17:30:24 +08:00
|
|
|
cursor: pointer;
|
2015-07-01 14:48:47 +08:00
|
|
|
&-inner {
|
2015-07-09 20:06:03 +08:00
|
|
|
bottom: 2px;
|
2015-07-01 14:48:47 +08:00
|
|
|
&:before {
|
2015-07-10 16:16:32 +08:00
|
|
|
content: "\e600";
|
2015-07-01 14:48:47 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.handler-disabled() {
|
|
|
|
opacity: 0.72;
|
2015-07-09 20:06:03 +08:00
|
|
|
color: #ccc;
|
2015-07-07 17:30:24 +08:00
|
|
|
cursor: default;
|
2015-07-01 14:48:47 +08:00
|
|
|
&:hover {
|
2015-07-09 20:06:03 +08:00
|
|
|
color: #ccc;
|
2015-07-07 17:30:24 +08:00
|
|
|
cursor: default;
|
2015-07-01 14:48:47 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-07-09 20:06:03 +08:00
|
|
|
&-handler-down-disabled, &-handler-up-disabled, &-disabled {
|
|
|
|
.@{inputNumberPrefixCls}-handler-down-inner,
|
|
|
|
.@{inputNumberPrefixCls}-handler-up-inner {
|
|
|
|
.handler-disabled();
|
|
|
|
}
|
2015-07-01 14:48:47 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-disabled {
|
|
|
|
.@{inputNumberPrefixCls}-input {
|
|
|
|
opacity: 0.72;
|
|
|
|
cursor: not-allowed;
|
|
|
|
background-color: #f3f3f3;
|
|
|
|
}
|
|
|
|
.@{inputNumberPrefixCls}-handler {
|
|
|
|
.handler-disabled();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|