yqcloud-ui
Version:
An enterprise-class UI design language and React-based implementation
76 lines (75 loc) • 2.02 kB
CSS
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
/* stylelint-disable no-duplicate-selectors */
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors */
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors */
.ant-input-number {
margin: 0;
padding: 0;
display: inline-block;
width: 100%;
}
.ant-input-number-handler {
text-align: center;
line-height: 0;
height: 10px;
overflow: hidden;
position: relative;
-webkit-transition: all 0.1s linear;
transition: all 0.1s linear;
display: block;
width: 100%;
font-weight: bold;
cursor: pointer;
}
.ant-input-number-handler:hover .ant-input-number-handler-up-inner,
.ant-input-number-handler:hover .ant-input-number-handler-down-inner {
color: #4db5ff;
}
.ant-input-number-handler-up-inner,
.ant-input-number-handler-down-inner {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
-webkit-transition: all 0.1s linear;
transition: all 0.1s linear;
cursor: pointer;
}
.ant-input-number-handler-up-inner {
position: absolute;
bottom: -5px;
right: 2px;
}
.ant-input-number-handler-down-inner {
position: absolute;
top: -5px;
right: 2px;
}
.ant-input-number-disabled .ant-input-number-handler-wrap {
display: none;
}
.ant-input-number-handler-wrap {
width: 22px;
height: 100%;
background: #fff;
color: #000;
position: absolute;
top: 0;
right: 0;
opacity: 0;
border-radius: 0 4px 4px 0;
-webkit-transition: opacity 0.24s linear 0.1s;
transition: opacity 0.24s linear 0.1s;
z-index: 2;
}
.ant-input-number:hover .ant-input-number-handler-wrap {
opacity: 1;
}
.ant-input-number-handler-up-disabled,
.ant-input-number-handler-down-disabled {
cursor: not-allowed;
}
.ant-input-number-handler-up-disabled:hover .ant-input-number-handler-up-inner,
.ant-input-number-handler-down-disabled:hover .ant-input-number-handler-down-inner {
color: rgba(0, 0, 0, 0.25);
}