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

Commit 287d379

Browse files
Button: Adjustments to selectors ui-btn-left and -right CSS rules. Fixes #5869.
1 parent 47af5b2 commit 287d379

File tree

2 files changed

+31
-22
lines changed

2 files changed

+31
-22
lines changed

css/structure/jquery.mobile.button.css

Lines changed: 30 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,6 @@ button.ui-btn-icon-notext {
8282
margin-right: 5px;
8383
margin-left: 5px;
8484
}
85-
.ui-btn-left,
86-
.ui-btn-right,
87-
.ui-btn-left > .ui-btn,
88-
.ui-btn-right > .ui-btn {
89-
margin: 0;
90-
}
9185
.ui-header .ui-btn-icon-top,
9286
.ui-footer .ui-btn-icon-top,
9387
.ui-header .ui-btn-icon-bottom,
@@ -96,6 +90,36 @@ button.ui-btn-icon-notext {
9690
padding-right: 3px;
9791
}
9892

93+
.ui-btn-left,
94+
.ui-btn-right {
95+
position: absolute;
96+
top: 3px;
97+
}
98+
.ui-btn-left,
99+
.ui-btn-right,
100+
.ui-btn-left > .ui-btn,
101+
.ui-btn-right > .ui-btn {
102+
margin: 0;
103+
}
104+
.ui-btn-left {
105+
left: 5px;
106+
}
107+
.ui-btn-right {
108+
right: 5px;
109+
}
110+
.ui-btn-left.ui-btn-icon-notext,
111+
.ui-btn-right.ui-btn-icon-notext {
112+
top: 6px;
113+
}
114+
.ui-header-fixed:not(.ui-fixed-hidden) .ui-btn-left,
115+
.ui-header-fixed:not(.ui-fixed-hidden) .ui-btn-right {
116+
top: 4px;
117+
}
118+
.ui-header-fixed:not(.ui-fixed-hidden) .ui-btn-left.ui-btn-icon-notext,
119+
.ui-header-fixed:not(.ui-fixed-hidden) .ui-btn-right.ui-btn-icon-notext {
120+
top: 7px;
121+
}
122+
99123
/*hiding native inputs */
100124
.ui-btn-hidden {
101125
position: absolute;

css/structure/jquery.mobile.core.css

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -46,22 +46,7 @@ div.ui-mobile-viewport { overflow-x: hidden; }
4646

4747
.ui-header, .ui-footer { position: relative; zoom: 1; }
4848
.ui-mobile .ui-header, .ui-mobile .ui-footer { border-left-width: 0; border-right-width: 0; }
49-
.ui-header .ui-btn-left,
50-
.ui-header .ui-btn-right,
51-
.ui-footer .ui-btn-left,
52-
.ui-footer .ui-btn-right,
53-
.ui-header-fixed.ui-fixed-hidden .ui-btn-left,
54-
.ui-header-fixed.ui-fixed-hidden .ui-btn-right { position: absolute; top: 3px; }
55-
.ui-header-fixed .ui-btn-left,
56-
.ui-header-fixed .ui-btn-right { top: 4px;}
57-
.ui-header .ui-btn-left,
58-
.ui-footer .ui-btn-left { left: 5px; }
59-
.ui-header .ui-btn-right,
60-
.ui-footer .ui-btn-right { right: 5px; }
61-
.ui-footer > .ui-btn-icon-notext,
62-
.ui-header > .ui-btn-icon-notext,
63-
.ui-header-fixed.ui-fixed-hidden > .ui-btn-icon-notext { top: 6px; }
64-
.ui-header-fixed > .ui-btn-icon-notext { top: 7px;}
49+
6550
.ui-header .ui-title, .ui-footer .ui-title { min-height: 1.1em; text-align: center; font-size: 16px; display: block; margin: .6em 30% .8em; padding: 0; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; outline: 0 !important; }
6651
.ui-footer .ui-title { margin: .6em 15px .8em; }
6752

0 commit comments

Comments
 (0)