diff options
author | Kris Borchers <kris.borchers@gmail.com> | 2013-09-17 23:22:33 -0500 |
---|---|---|
committer | Kris Borchers <kris.borchers@gmail.com> | 2013-10-05 21:52:30 -0500 |
commit | 3a61627a501cb7ba1ce80046bfabbff0f7f2f517 (patch) | |
tree | c52dcac93224fb2258633f481533318376d8c698 /themes | |
parent | e14f75ed480e5b036bb47ab3398d1e0df28a128a (diff) | |
download | jquery-ui-3a61627a501cb7ba1ce80046bfabbff0f7f2f517.tar.gz jquery-ui-3a61627a501cb7ba1ce80046bfabbff0f7f2f517.zip |
Menu: Remove the requirement to use anchors in menu items
Diffstat (limited to 'themes')
-rw-r--r-- | themes/base/jquery.ui.menu.css | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/themes/base/jquery.ui.menu.css b/themes/base/jquery.ui.menu.css index 8a61d1b69..cc390cec4 100644 --- a/themes/base/jquery.ui.menu.css +++ b/themes/base/jquery.ui.menu.css @@ -21,8 +21,11 @@ } .ui-menu .ui-menu-item { margin: 0; - padding: 0; - width: 100%; + display: block; + padding: 2px .4em; + line-height: 1.5; + min-height: 0; /* support: IE7 */ + font-weight: normal; /* support: IE10, see #8844 */ list-style-image: url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7); } @@ -33,16 +36,8 @@ line-height: 0; border-width: 1px 0 0 0; } -.ui-menu .ui-menu-item a { - text-decoration: none; - display: block; - padding: 2px .4em; - line-height: 1.5; - min-height: 0; /* support: IE7 */ - font-weight: normal; -} -.ui-menu .ui-menu-item a.ui-state-focus, -.ui-menu .ui-menu-item a.ui-state-active { +.ui-menu .ui-state-focus, +.ui-menu .ui-state-active { font-weight: normal; margin: -1px; } @@ -60,7 +55,7 @@ .ui-menu-icons { position: relative; } -.ui-menu-icons .ui-menu-item a { +.ui-menu-icons .ui-menu-item { position: relative; padding-left: 2em; } |