@mdsfe/mds-ui
Version:
A set of enterprise-class Vue UI components-beta.
392 lines (391 loc) • 8.9 kB
CSS
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
/* stylelint-disable declaration-bang-space-before */
/* stylelint-disable declaration-bang-space-before */
.mds-inputnumber {
display: inline-block;
position: relative;
border: 1px solid #D9D9D9;
overflow: hidden;
}
.mds-inputnumber:hover {
border-color: #0364FF;
cursor: pointer;
}
.mds-inputnumber.disabled:hover {
border: 1px solid #D9D9D9;
cursor: not-allowed;
}
.mds-inputnumber-medium {
width: 120px;
height: 36px;
border-radius: 3px;
}
.mds-inputnumber-medium.is-control-right {
width: 72px;
height: 36px;
position: relative;
}
.mds-inputnumber-medium.is-control-right > .mds-inputnumber_decrease {
width: 32px;
height: 18px;
line-height: 18px;
position: absolute;
z-index: 500;
bottom: 0;
right: 0;
top: auto;
left: auto;
border: none;
border-left: 1px solid #CAD2DD;
}
.mds-inputnumber-medium.is-control-right > .mds-inputnumber_decrease:hover {
color: #0364FF;
}
.mds-inputnumber-medium.is-control-right > .mds-inputnumber_increase {
width: 32px;
height: 18px;
line-height: 18px;
position: absolute;
z-index: 500;
top: 0;
left: auto;
right: 0;
bottom: auto;
border: none;
border-left: 1px solid #CAD2DD;
border-bottom: 1px solid #CAD2DD;
}
.mds-inputnumber-medium.is-control-right > .mds-inputnumber_increase:hover {
color: #0364FF;
}
.mds-inputnumber-medium.is-control-right .mds-inputnumber-input {
padding: 0 32px 0 0;
}
.mds-inputnumber-medium > .mds-inputnumber_decrease,
.mds-inputnumber-medium > .mds-inputnumber_increase {
width: 36px;
height: 36px;
line-height: 36px;
}
.mds-inputnumber-large {
width: 136px;
height: 40px;
border-radius: 4px;
}
.mds-inputnumber-large.is-control-right {
width: 80px;
height: 40px;
position: relative;
}
.mds-inputnumber-large.is-control-right > .mds-inputnumber_decrease {
width: 40px;
height: 20px;
line-height: 20px;
position: absolute;
z-index: 500;
bottom: 0;
right: 0;
top: auto;
left: auto;
border: none;
border-left: 1px solid #CAD2DD;
}
.mds-inputnumber-large.is-control-right > .mds-inputnumber_decrease:hover {
color: #0364FF;
}
.mds-inputnumber-large.is-control-right > .mds-inputnumber_increase {
width: 40px;
height: 20px;
line-height: 20px;
position: absolute;
z-index: 500;
top: 0;
left: auto;
right: 0;
bottom: auto;
border: none;
border-left: 1px solid #CAD2DD;
border-bottom: 1px solid #CAD2DD;
}
.mds-inputnumber-large.is-control-right > .mds-inputnumber_increase:hover {
color: #0364FF;
}
.mds-inputnumber-large.is-control-right .mds-inputnumber-input {
padding: 0 40px 0 0;
}
.mds-inputnumber-large > .mds-inputnumber_decrease,
.mds-inputnumber-large > .mds-inputnumber_increase {
width: 40px;
height: 40px;
line-height: 40px;
}
.mds-inputnumber-large > .mds-inputnumber-input > input {
height: 40px;
}
.mds-inputnumber-small {
width: 104px;
height: 32px;
border-radius: 2px;
}
.mds-inputnumber-small.is-control-right {
width: 64px;
height: 32px;
position: relative;
}
.mds-inputnumber-small.is-control-right > .mds-inputnumber_decrease {
width: 24px;
height: 16px;
line-height: 16px;
position: absolute;
z-index: 500;
bottom: 0;
right: 0;
top: auto;
left: auto;
border: none;
border-left: 1px solid #CAD2DD;
}
.mds-inputnumber-small.is-control-right > .mds-inputnumber_decrease:hover {
color: #0364FF;
}
.mds-inputnumber-small.is-control-right > .mds-inputnumber_increase {
width: 24px;
height: 16px;
line-height: 16px;
position: absolute;
z-index: 500;
top: 0;
left: auto;
right: 0;
bottom: auto;
border: none;
border-left: 1px solid #CAD2DD;
border-bottom: 1px solid #CAD2DD;
}
.mds-inputnumber-small.is-control-right > .mds-inputnumber_increase:hover {
color: #0364FF;
}
.mds-inputnumber-small.is-control-right .mds-inputnumber-input {
padding: 0 24px 0 0;
}
.mds-inputnumber-small > .mds-inputnumber_decrease,
.mds-inputnumber-small > .mds-inputnumber_increase {
width: 32px;
height: 32px;
line-height: 32px;
}
.mds-inputnumber-small > .mds-inputnumber-input {
padding: 0 31px;
}
.mds-inputnumber-small > .mds-inputnumber-input > input {
height: 32px;
padding: 0 0px;
}
.mds-inputnumber-mini {
width: 88px;
height: 28px;
border-radius: 1px;
}
.mds-inputnumber-mini.is-control-right {
width: 55px;
height: 28px;
position: relative;
}
.mds-inputnumber-mini.is-control-right > .mds-inputnumber_decrease {
width: 16px;
height: 14px;
line-height: 14px;
position: absolute;
z-index: 500;
bottom: 0;
right: 0;
top: auto;
left: auto;
border: none;
border-left: 1px solid #CAD2DD;
}
.mds-inputnumber-mini.is-control-right > .mds-inputnumber_decrease:hover {
color: #0364FF;
}
.mds-inputnumber-mini.is-control-right > .mds-inputnumber_increase {
width: 16px;
height: 14px;
line-height: 14px;
position: absolute;
z-index: 500;
top: 0;
left: auto;
right: 0;
bottom: auto;
border: none;
border-left: 1px solid #CAD2DD;
border-bottom: 1px solid #CAD2DD;
}
.mds-inputnumber-mini.is-control-right > .mds-inputnumber_increase:hover {
color: #0364FF;
}
.mds-inputnumber-mini.is-control-right .mds-inputnumber-input {
padding: 0 16px 0 0;
}
.mds-inputnumber-mini > .mds-inputnumber_decrease,
.mds-inputnumber-mini > .mds-inputnumber_increase {
width: 28px;
height: 28px;
line-height: 28px;
}
.mds-inputnumber-mini > .mds-inputnumber-input {
padding: 0 26px;
}
.mds-inputnumber-mini > .mds-inputnumber-input > input {
height: 28px;
padding: 0 0px;
}
.mds-inputnumber_decrease {
position: absolute;
left: 0;
top: 0;
z-index: 10;
text-align: center;
border-right: 1px solid #CAD2DD;
cursor: pointer;
color: #5E6C84;
}
.mds-inputnumber_decrease:hover {
color: #0364FF;
}
.mds-inputnumber_decrease.disabled {
background: #f0f2f5;
cursor: not-allowed;
}
.mds-inputnumber_decrease.disabled:hover {
color: #5E6C84;
}
.mds-inputnumber_increase {
position: absolute;
right: 0;
top: 0;
z-index: 10;
text-align: center;
color: #5E6C84;
border-left: 1px solid #CAD2DD;
cursor: pointer;
}
.mds-inputnumber_increase:hover {
color: #0364FF;
}
.mds-inputnumber_increase.disabled {
background: #f0f2f5;
cursor: not-allowed;
}
.mds-inputnumber_increase.disabled:hover {
color: #5E6C84;
}
.mds-inputnumber-input {
box-sizing: border-box;
border: none;
padding: 0 36px;
}
.mds-inputnumber-input.disabled {
background: #f0f2f5;
}
.mds-inputnumber-input > input {
padding: 0 12px;
font-size: 14px;
border: none;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #354052;
text-align: center;
}
.mds-inputnumber-input > input.mds-input-disabled {
background: #f0f2f5;
}
.mds-inputnumber.is-control-right .mds-inputnumber_decrease,
.mds-inputnumber.is-control-right .mds-inputnumber_increase {
color: #5E6C84;
font-size: 12px;
}
.mds-inputnumber.is-control-right .mds-inputnumber-input > input {
padding: 0 0 0 8px;
text-align: left;
}
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
/* stylelint-disable declaration-bang-space-before */
/* stylelint-disable declaration-bang-space-before */
.mds-slider-wrapper {
display: flex;
align-items: center;
justify-content: center;
}
.mds-slider-input {
margin-left: 30px;
}
.mds-slider-bar {
cursor: pointer;
width: 100%;
height: 4px;
border-radius: 4px;
background: rgba(0, 0, 0, 0.09);
position: relative;
}
.mds-slider-progress {
height: 100%;
border-radius: 4px;
background: #0364ff;
}
.mds-slider-button {
position: absolute;
z-index: 2;
bottom: 50%;
transform: translate(-50%, 50%);
width: 7px;
height: 7px;
box-sizing: content-box;
border-radius: 7px;
background: #0364ff;
border: 3px #fff solid;
box-shadow: 0px 2px 4px 0px rgba(96, 97, 112, 0.16), 0px 0px 1px 0px rgba(40, 41, 61, 0.04);
}
.mds-slider-scale {
position: absolute;
z-index: 1;
top: 50%;
transform: translate(-50%, -50%);
width: 4px;
height: 4px;
box-sizing: content-box;
border-radius: 7px;
background: #0364ff;
border: 2px #fff solid;
}
.vertical.mds-slider-wrapper {
height: 100%;
}
.vertical .mds-slider-bar {
position: relative;
height: 100%;
width: 4px;
display: flex;
align-items: flex-end;
}
.vertical .mds-slider-progress {
width: 100%;
}
.vertical .mds-slider-button {
left: 50%;
}
.vertical .mds-slider-scale {
left: 50%;
}
.disable .mds-slider-bar {
cursor: not-allowed;
}
.disable .mds-slider-progress {
background: rgba(0, 0, 0, 0.25);
}
.disable .mds-slider-button {
background: #b2b2b2;
}
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
/* stylelint-disable declaration-bang-space-before */
/* stylelint-disable declaration-bang-space-before */