input: add numeric property (allows numeric values only and displays numeric keyboard on mobile devices)

This commit is contained in:
bordun 2021-05-05 18:01:33 +02:00
parent ab6ea54528
commit 99cd75c83f
3 changed files with 22 additions and 3 deletions

View file

@ -597,6 +597,16 @@
color: var(--color-text);
}
&::-webkit-outer-spin-button,
&::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
&[type="number"] {
-moz-appearance: textfield;
}
}
}