Skip to content

Commit b0e8380

Browse files
tcrowleyjzaefferer
authored andcommitted
Menu: Vertically center icons. Fix menu item wiggle and clearing in IE8
Fixes #9995 Closes gh-1235
1 parent 6ef5c38 commit b0e8380

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

themes/base/menu.css

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
position: absolute;
2020
}
2121
.ui-menu .ui-menu-item {
22+
position: relative;
2223
margin: 0;
23-
display: block;
24-
padding: 3px .4em;
24+
padding: 3px 1em 3px .4em;
2525
cursor: pointer;
2626
min-height: 0; /* support: IE7 */
2727
/* support: IE10, see #8844 */
@@ -44,20 +44,20 @@
4444
position: relative;
4545
}
4646
.ui-menu-icons .ui-menu-item {
47-
position: relative;
4847
padding-left: 2em;
4948
}
5049

5150
/* left-aligned */
5251
.ui-menu .ui-icon {
5352
position: absolute;
54-
top: .2em;
53+
top: 0;
54+
bottom: 0;
5555
left: .2em;
56+
margin: auto 0;
5657
}
5758

5859
/* right-aligned */
5960
.ui-menu .ui-menu-icon {
60-
position: relative;
61-
top: -.2em;
62-
float: right;
61+
left: auto;
62+
right: 0;
6363
}

0 commit comments

Comments
 (0)