74 lines
1.3 KiB
SCSS
74 lines
1.3 KiB
SCSS
@mixin reset-button {
|
|
border: 0;
|
|
padding: 0;
|
|
margin: 0;
|
|
background: none transparent;
|
|
|
|
&:focus {
|
|
outline: 2px solid $core-grey-light-600;
|
|
}
|
|
}
|
|
|
|
.wc-block-quantity-selector {
|
|
display: flex;
|
|
min-width: 100px;
|
|
border: 1px solid $core-grey-light-600;
|
|
background: #fff;
|
|
border-radius: 4px;
|
|
|
|
.wc-block-quantity-selector__input {
|
|
order: 2;
|
|
min-width: 40px;
|
|
flex: 1 1 auto;
|
|
border: 0;
|
|
padding: 0.4em 0;
|
|
margin: 0;
|
|
text-align: center;
|
|
background: transparent;
|
|
box-shadow: none;
|
|
color: #000;
|
|
line-height: 1;
|
|
vertical-align: middle;
|
|
-moz-appearance: textfield;
|
|
|
|
&:focus {
|
|
background: $core-grey-light-200;
|
|
outline: 1px solid $core-grey-light-600;
|
|
}
|
|
&:disabled {
|
|
color: $core-grey-dark-100;
|
|
}
|
|
}
|
|
input::-webkit-outer-spin-button,
|
|
input::-webkit-inner-spin-button {
|
|
-webkit-appearance: none;
|
|
margin: 0;
|
|
}
|
|
.wc-block-quantity-selector__button {
|
|
@include reset-button;
|
|
min-width: 30px;
|
|
cursor: pointer;
|
|
color: $core-grey-dark-700;
|
|
font-style: normal;
|
|
font-size: 1em;
|
|
text-align: center;
|
|
|
|
&:hover,
|
|
&:focus {
|
|
@include reset-button;
|
|
color: $core-grey-dark-900;
|
|
}
|
|
&:disabled {
|
|
color: $core-grey-dark-100;
|
|
cursor: default;
|
|
@include reset-button;
|
|
}
|
|
}
|
|
.wc-block-quantity-selector__button--minus {
|
|
order: 1;
|
|
}
|
|
.wc-block-quantity-selector__button--plus {
|
|
order: 3;
|
|
}
|
|
}
|