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

Commit 0f81773

Browse files
committed
Form elements now span entire container width and behave as display: block, outside of field containers.
1 parent fbec0e3 commit 0f81773

File tree

4 files changed

+18
-16
lines changed

4 files changed

+18
-16
lines changed

themes/default/jquery.mobile.controlgroup.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
.ui-controlgroup, fieldset.ui-controlgroup { padding: 0; margin: .5em 0 1em; }
77
.ui-bar .ui-controlgroup { margin: 0 .3em; }
88
.ui-controlgroup-label { font-size: 16px; line-height: 1.4; font-weight: normal; margin: 0 0 .3em; }
9-
.ui-controlgroup-controls { display: block; width: 95%;}
9+
.ui-controlgroup-controls { display: block; width: 100%;}
1010
.ui-controlgroup li { list-style: none; }
1111
.ui-controlgroup-vertical .ui-btn,
1212
.ui-controlgroup-vertical .ui-checkbox, .ui-controlgroup-vertical .ui-radio { margin: 0; border-bottom-width: 0; }
@@ -24,6 +24,6 @@
2424
*/
2525

2626
@media all and (min-width: 450px){
27-
.ui-controlgroup-label { vertical-align: top; display: inline-block; width: 20%; margin: 0 2% 0 0; }
28-
.ui-controlgroup-controls { width: 60%; display: inline-block; }
27+
.ui-field-contain .ui-controlgroup-label { vertical-align: top; display: inline-block; width: 20%; margin: 0 2% 0 0; }
28+
.ui-field-contain .ui-controlgroup-controls { width: 60%; display: inline-block; }
2929
}

themes/default/jquery.mobile.forms.select.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ label.ui-select { font-size: 16px; line-height: 1.4; font-weight: normal; margi
3131
.ui-selectmenu .ui-header .ui-title { margin: 0.6em 46px 0.8em; }
3232

3333
@media all and (min-width: 450px){
34-
label.ui-select { vertical-align: top; display: inline-block; width: 20%; margin: 0 2% 0 0; }
35-
.ui-select { width: 60%; display: inline-block; }
34+
.ui-field-contain label.ui-select { vertical-align: top; display: inline-block; width: 20%; margin: 0 2% 0 0; }
35+
.ui-field-contain .ui-select { width: 60%; display: inline-block; }
3636
}
3737

3838
/* when no placeholder is defined in a multiple select, the header height doesn't even extend past the close button. this shim's content in there */

themes/default/jquery.mobile.forms.slider.css

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,16 @@
44
* Dual licensed under the MIT (MIT-LICENSE.txt) or GPL (GPL-LICENSE.txt) licenses.
55
*/
66
label.ui-slider { display: block; }
7-
input.ui-slider-input { display: inline-block; width: 50px; }
7+
input.ui-slider-input,
8+
.ui-field-contain input.ui-slider-input { display: inline-block; width: 50px; }
89
select.ui-slider-switch { display: none; }
9-
div.ui-slider { position: relative; display: inline-block; overflow: visible; height: 15px; padding: 0; margin: 0 2% 0 20px; top: 4px; width: 66%; }
10+
div.ui-slider { position: relative; display: inline-block; overflow: visible; height: 15px; padding: 0; margin: 0 2% 0 20px; top: 4px; width: 70%; }
11+
div.ui-slider-switch { width: 99.8%; }
1012
a.ui-slider-handle { position: absolute; z-index: 10; top: 50%; width: 28px; height: 28px; margin-top: -15px; margin-left: -15px; }
1113
a.ui-slider-handle .ui-btn-inner { padding-left: 0; padding-right: 0; }
1214
@media all and (min-width: 480px){
13-
label.ui-slider { vertical-align: top; display: inline-block; width: 20%; margin: 0 2% 0 0; }
14-
div.ui-slider { width: 45%; }
15+
.ui-field-contain label.ui-slider { vertical-align: top; display: inline-block; width: 20%; margin: 0 2% 0 0; }
16+
.ui-field-contain div.ui-slider { width: 45%; }
1517
}
1618

1719
div.ui-slider-switch { height: 32px; overflow: hidden; margin-left: 0; }

themes/default/jquery.mobile.forms.textinput.css

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,21 @@
44
* Dual licensed under the MIT (MIT-LICENSE.txt) or GPL (GPL-LICENSE.txt) licenses.
55
*/
66
label.ui-input-text { font-size: 16px; line-height: 1.4; display: block; font-weight: normal; margin: 0 0 .3em; }
7-
input.ui-input-text, textarea.ui-input-text { background-image: none; padding: .4em; line-height: 1.4; font-size: 16px; display: block; width: 95%; }
7+
input.ui-input-text, textarea.ui-input-text { background-image: none; padding: .4em 1.5%; line-height: 1.4; font-size: 16px; display: block; width: 97%; }
88
input.ui-input-text { -webkit-appearance: none; }
99
textarea.ui-input-text { height: 50px; -webkit-transition: height 200ms linear; -moz-transition: height 200ms linear; -o-transition: height 200ms linear; transition: height 200ms linear; }
10-
.ui-input-search { padding: 0 30px; width: 77%; background-image: none; position: relative; }
10+
.ui-input-search { padding: 0 30px; background-image: none; position: relative; }
1111
.ui-icon-searchfield:after { position: absolute; left: 7px; top: 50%; margin-top: -9px; content: ""; width: 18px; height: 18px; opacity: .5; }
1212
.ui-input-search input.ui-input-text { border: none; width: 98%; padding: .4em 0; margin: 0; display: block; background: transparent none; outline: 0 !important; }
1313
.ui-input-search .ui-input-clear { position: absolute; right: 0; top: 50%; margin-top: -13px; }
1414
.ui-input-search .ui-input-clear-hidden { display: none; }
1515

1616
/* orientation adjustments - incomplete!*/
1717
@media all and (min-width: 450px){
18-
label.ui-input-text { vertical-align: top; display: inline-block; width: 20%; margin: 0 2% 0 0 }
19-
input.ui-input-text,
20-
textarea.ui-input-text,
21-
.ui-input-search { width: 60%; display: inline-block; }
22-
.ui-input-search { width: 50%; }
18+
.ui-field-contain label.ui-input-text { vertical-align: top; display: inline-block; width: 20%; margin: 0 2% 0 0 }
19+
.ui-field-contain input.ui-input-text,
20+
.ui-field-contain textarea.ui-input-text,
21+
.ui-field-contain .ui-input-search { width: 60%; display: inline-block; }
22+
.ui-field-contain .ui-input-search { width: 50%; }
2323
.ui-input-search input.ui-input-text { width: 98%; /*echos rule from above*/ }
2424
}

0 commit comments

Comments
 (0)