Remove number picker's increase/decrease buttons

We can't style them, and they don't fit the noVNC CSS style - we are
better off without them.
This commit is contained in:
Samuel Mannehed 2025-01-13 00:05:35 +01:00
parent deb76f97cd
commit 28e1717cf9
1 changed files with 14 additions and 0 deletions

View File

@ -88,6 +88,20 @@ textarea {
vertical-align: baseline; /* Firefox gives "text-bottom" by default */
}
/* ------- NUMBER PICKERS ------- */
/* We can't style the number spinner buttons:
https://github.com/w3c/csswg-drafts/issues/8777 */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
/* Get rid of increase/decrease buttons in WebKit */
appearance: none;
}
input[type=number] {
/* Get rid of increase/decrease buttons in Firefox */
appearance: textfield;
}
/* ------- BUTTON ACTIVATIONS -------- */
/* A color overlay that depends on the activation level. The level can then be