mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-04 04:58:16 +08:00
121 lines
2.0 KiB
Plaintext
Executable File
121 lines
2.0 KiB
Plaintext
Executable File
@inputNumberPrefixCls: rc-input-number;
|
|
|
|
.@{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;
|
|
box-sizing: content-box;
|
|
|
|
&-handler {
|
|
text-align: center;
|
|
line-height: 12px;
|
|
height: 12px;
|
|
overflow: hidden;
|
|
display: block;
|
|
touch-action: none;
|
|
|
|
&-active {
|
|
background: #ddd;
|
|
}
|
|
}
|
|
|
|
&-handler-up-inner,
|
|
&-handler-down-inner {
|
|
color: #666666;
|
|
user-select: none;
|
|
-webkit-user-select: none;
|
|
}
|
|
|
|
&:hover {
|
|
border-color: #23c0fa;
|
|
|
|
.@{inputNumberPrefixCls}-handler-up,
|
|
.@{inputNumberPrefixCls}-handler-wrap {
|
|
border-color: #23c0fa;
|
|
}
|
|
}
|
|
|
|
&-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: 26px;
|
|
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;
|
|
}
|
|
|
|
&-handler-up {
|
|
border-bottom: 1px solid #d9d9d9;
|
|
padding-top: 1px;
|
|
&-inner {
|
|
&:after {
|
|
content: '+';
|
|
}
|
|
}
|
|
}
|
|
|
|
&-handler-down {
|
|
&-inner {
|
|
&:after {
|
|
content: '-';
|
|
}
|
|
}
|
|
}
|
|
|
|
.handler-disabled() {
|
|
opacity: 0.72;
|
|
&:hover {
|
|
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();
|
|
}
|
|
}
|
|
}
|