diff options
author | Trisha Crowley <trisha.crowley@gmail.com> | 2014-04-25 13:35:02 -0400 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2014-05-13 11:19:12 +0200 |
commit | b0e8380f023f41cb4a1bd3665177b5f0e795c289 (patch) | |
tree | e6a00990893d790c6bcd598f594482407279dba2 /themes/base | |
parent | 6ef5c3844dd20a5e8160edbd08a78746c3bbc6b3 (diff) | |
download | jquery-ui-b0e8380f023f41cb4a1bd3665177b5f0e795c289.tar.gz jquery-ui-b0e8380f023f41cb4a1bd3665177b5f0e795c289.zip |
Menu: Vertically center icons. Fix menu item wiggle and clearing in IE8
Fixes #9995
Closes gh-1235
Diffstat (limited to 'themes/base')
-rw-r--r-- | themes/base/menu.css | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/themes/base/menu.css b/themes/base/menu.css index f4588b13b..2be35870f 100644 --- a/themes/base/menu.css +++ b/themes/base/menu.css @@ -19,9 +19,9 @@ position: absolute; } .ui-menu .ui-menu-item { + position: relative; margin: 0; - display: block; - padding: 3px .4em; + padding: 3px 1em 3px .4em; cursor: pointer; min-height: 0; /* support: IE7 */ /* support: IE10, see #8844 */ @@ -44,20 +44,20 @@ position: relative; } .ui-menu-icons .ui-menu-item { - position: relative; padding-left: 2em; } /* left-aligned */ .ui-menu .ui-icon { position: absolute; - top: .2em; + top: 0; + bottom: 0; left: .2em; + margin: auto 0; } /* right-aligned */ .ui-menu .ui-menu-icon { - position: relative; - top: -.2em; - float: right; + left: auto; + right: 0; } |