Only disable buttons in number-stepper when they're at min/max

This commit is contained in:
redphx
2024-07-17 06:49:19 +07:00
parent 44083f2469
commit d7dc6931d6
4 changed files with 19 additions and 12 deletions

View File

@@ -111,3 +111,9 @@ a.bx-button {
text-align: center;
}
}
button.bx-inactive {
pointer-events: none;
opacity: 0.2;
background: transparent !important;
}

View File

@@ -6,13 +6,14 @@
min-width: 40px;
font-family: var(--bx-monospaced-font);
font-size: 12px;
margin: 0 4px;
}
button {
border: none;
width: 24px;
height: 24px;
margin: 0 4px;
margin: 0;
line-height: 24px;
background-color: var(--bx-default-button-color);
color: #fff;

View File

@@ -84,12 +84,6 @@
font-size: 12px;
font-family: var(--bx-monospaced-font);
&.bx-inactive {
pointer-events: none;
opacity: 0.2;
background: transparent !important;
}
span {
line-height: unset;
}