From ac730d6086d6a4272fbb001105527fc1c7654854 Mon Sep 17 00:00:00 2001 From: MaysWind Date: Sat, 8 Jul 2023 22:56:16 +0800 Subject: [PATCH] remove number input stepper --- src/styles/desktop/global.scss | 11 +++++++++++ src/styles/mobile/global.css | 10 ++++++++++ 2 files changed, 21 insertions(+) diff --git a/src/styles/desktop/global.scss b/src/styles/desktop/global.scss index d8a2968e..4206f0b9 100644 --- a/src/styles/desktop/global.scss +++ b/src/styles/desktop/global.scss @@ -1,3 +1,14 @@ +/** Global style **/ +input::-webkit-outer-spin-button, +input::-webkit-inner-spin-button { + -webkit-appearance: none; + margin: 0; +} + +input[type=number] { + -moz-appearance: textfield; +} + /** Common class **/ .disabled { opacity: 0.55 !important; diff --git a/src/styles/mobile/global.css b/src/styles/mobile/global.css index 1289af48..13a9e141 100644 --- a/src/styles/mobile/global.css +++ b/src/styles/mobile/global.css @@ -10,6 +10,16 @@ body { user-select: none; } +input::-webkit-outer-spin-button, +input::-webkit-inner-spin-button { + -webkit-appearance: none; + margin: 0; +} + +input[type=number] { + -moz-appearance: textfield; +} + /** Common class **/ .no-right-border { border-right: 0;