From fc90260e0536bd82f3559874d74b19359ec74867 Mon Sep 17 00:00:00 2001 From: Nate Jones Date: Wed, 11 Mar 2015 23:20:18 +0000 Subject: [PATCH] Enhanced/Minimized Themes: Hide number input spinners. --- themes/enhanced/template.php | 5 +++++ themes/minimized/template.php | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/themes/enhanced/template.php b/themes/enhanced/template.php index 4dbd9168b4..935b18c58b 100644 --- a/themes/enhanced/template.php +++ b/themes/enhanced/template.php @@ -292,6 +292,11 @@ input.txt:focus, .formfld:focus { box-shadow: 0 0 5px #cddaf0; } +/* removes spinners (increment/decrement controls) inside input fields */ +input[type=number] { -moz-appearance: textfield; } +::-webkit-inner-spin-button { -webkit-appearance: none; } +::-webkit-outer-spin-button { -webkit-appearance: none; } + select.formfld { height: 27px; padding: 4px; diff --git a/themes/minimized/template.php b/themes/minimized/template.php index 4cd62c3d92..24ab156a1f 100644 --- a/themes/minimized/template.php +++ b/themes/minimized/template.php @@ -284,7 +284,7 @@ input.txt, .formfld { -moz-transition: width 0.25s; -webkit-transition: width 0.25s; max-width: 500px; -} + } input.txt:focus, .formfld:focus { -webkit-box-shadow: 0 0 5px #cddaf0; @@ -292,6 +292,11 @@ input.txt:focus, .formfld:focus { box-shadow: 0 0 5px #cddaf0; } +/* removes spinners (increment/decrement controls) inside input fields */ +input[type=number] { -moz-appearance: textfield; } +::-webkit-inner-spin-button { -webkit-appearance: none; } +::-webkit-outer-spin-button { -webkit-appearance: none; } + select.formfld { height: 27px; padding: 4px;