Skip to content

Commit d1f456c

Browse files
Icons: Use margin instead of bottom offset for vertical icon position
Fixes jquery-archivegh-8503 Closes jquery-archivegh-8516
1 parent f160d16 commit d1f456c

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

css/structure/jquery.mobile.core.css

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -277,8 +277,7 @@ div.ui-mobile-viewport {
277277
height: 22px;
278278
line-height: inherit;
279279
vertical-align: middle;
280-
position: relative;
281-
bottom: 2px;
280+
margin-top: -2px;
282281
}
283282
.ui-widget-icon-block {
284283
display: block;
@@ -290,7 +289,6 @@ div.ui-mobile-viewport {
290289
text-indent: 100%;
291290
white-space: nowrap;
292291
overflow: hidden;
293-
bottom: auto;
294292
top: 50%;
295293
left: 50%;
296294
}
@@ -303,14 +301,12 @@ div.ui-mobile-viewport {
303301

304302
/* Float icons helper classes */
305303
.ui-widget-icon-floatbeginning {
306-
bottom: auto;
307304
float: left;
308-
margin-right: 1em;
305+
margin: 1px 1em 0 0;
309306
}
310307
.ui-widget-icon-floatend {
311-
bottom: auto;
312308
float: right;
313-
margin-left: 1em;
309+
margin: 1px 0 0 1em;
314310
}
315311

316312
/* Button elements and input buttons */

0 commit comments

Comments
 (0)