Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Commit 61938ca

Browse files
Slider: partly fixes an issue on Safari/Mac where the input width is decreased when the browser implements the spinner.
1 parent 74a4378 commit 61938ca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

css/structure/jquery.mobile.forms.slider.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ input.ui-slider-input,
44
input.ui-slider-input.ui-mini,
55
.ui-field-contain input.ui-slider-input.ui-mini { width: 45px; margin: .25em 0; font-size: 14px; }
66
.ui-field-contain input.ui-slider-input { margin: 0; }
7-
/* To do: Exclude ui-slider-input from textinput widget initSelector. The class ui-input-text is added to the slider input and label. When this is fixed, the rule below can be deleted. */
87
input.ui-slider-input, .ui-field-contain input.ui-slider-input { -webkit-box-sizing: content-box; -moz-box-sizing: content-box; -ms-box-sizing: content-box; box-sizing: content-box; }
8+
/* Fixes input fields being to small on Safari/Mac because of the up and down arrows. */
9+
.ui-slider-input::-webkit-outer-spin-button { margin: 0; }
910
select.ui-slider-switch { display: none; }
1011
div.ui-slider { position: relative; display: inline-block; overflow: visible; height: 15px; padding: 0; margin: 0 2% 0 20px; top: 4px; width: 65%; }
1112
div.ui-slider-mini { height: 12px; margin-left: 10px; top: 2px; }

0 commit comments

Comments
 (0)