.mk-btn-counter {
|
position: relative;
|
display: inline-block;
|
white-space: nowrap;
|
border: 1px solid #d9d9d9;
|
font-size: 14px;
|
border-radius: 2px;
|
width: auto!important;
|
max-width: auto!important;
|
background: #ffffff;
|
overflow: hidden;
|
|
>span {
|
display: inline-block;
|
height: 20px;
|
line-height: 22px;
|
vertical-align: top;
|
text-align: center;
|
}
|
>span:first-child {
|
position: relative;
|
width: 22px;
|
text-align: center;
|
font-size: 12px;
|
cursor: pointer;
|
}
|
>span:first-child:after {
|
content: ' ';
|
display: inline-block;
|
width: 1px;
|
height: 26px;
|
background-color: #d9d9d9;
|
position: absolute;
|
right: 0px;
|
}
|
>span:nth-child(2) {
|
width: 42px;
|
.ant-input-number {
|
border: none;
|
border-radius: 0;
|
height: auto;
|
box-shadow: none!important;
|
.ant-input-number-handler-wrap {
|
display: none;
|
}
|
.ant-input-number-input {
|
padding: 0;
|
height: auto;
|
text-align: center;
|
}
|
}
|
}
|
>span:last-child {
|
position: relative;
|
width: 22px;
|
text-align: center;
|
font-size: 12px;
|
cursor: pointer;
|
}
|
>span:last-child::before {
|
content: ' ';
|
display: inline-block;
|
width: 1px;
|
height: 26px;
|
background-color: #d9d9d9;
|
position: absolute;
|
left: 0px;
|
}
|
}
|
.mk-btn-counter.mk-disabled .ant-input-number-input {
|
color: #bcbcbc !important;
|
}
|
.mk-btn-counter.mk-disabled::after {
|
content: ' ';
|
display: block;
|
position: absolute;
|
left: 0;
|
right: 0;
|
top: 0;
|
bottom: 0;
|
}
|
.mk-btn-counter.small {
|
font-size: 12px;
|
>span {
|
height: 18px;
|
line-height: 19px;
|
}
|
>span:first-child {
|
width: 20px;
|
font-size: 10px;
|
}
|
>span:nth-child(2) {
|
width: 38px;
|
}
|
>span:last-child {
|
width: 20px;
|
font-size: 10px;
|
}
|
}
|
.mk-btn-counter.large {
|
font-size: 16px;
|
>span {
|
height: 24px;
|
line-height: 25px;
|
}
|
>span:first-child {
|
width: 26px;
|
font-size: 13px;
|
}
|
>span:nth-child(2) {
|
width: 48px;
|
}
|
>span:last-child {
|
width: 26px;
|
font-size: 13px;
|
}
|
}
|