From 9bd740f6165f26ee44f8bd19a3a8a565c640742b Mon Sep 17 00:00:00 2001 From: Mark Jaquith Date: Sat, 16 Mar 2013 04:47:19 +0000 Subject: [PATCH] Accessibility revamp for nav menus. props lessbloat. fixes #14045 git-svn-id: http://core.svn.wordpress.org/trunk@23727 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/css/colors-fresh.css | 4 - wp-admin/css/wp-admin.css | 10 +- wp-admin/includes/nav-menu.php | 13 +- wp-admin/js/nav-menu.js | 314 ++++++++++++++++++++++++--------- wp-admin/nav-menus.php | 13 +- 5 files changed, 265 insertions(+), 89 deletions(-) diff --git a/wp-admin/css/colors-fresh.css b/wp-admin/css/colors-fresh.css index e20d6d499e..d5088678ec 100644 --- a/wp-admin/css/colors-fresh.css +++ b/wp-admin/css/colors-fresh.css @@ -1789,10 +1789,6 @@ div.widgets-sortables, background: #fbfbfb; } -.menu-settings { - border-top: 1px solid #eeeeee; -} - .theme-location-set { color: #999999; } diff --git a/wp-admin/css/wp-admin.css b/wp-admin/css/wp-admin.css index 61dc531008..b2512f5505 100644 --- a/wp-admin/css/wp-admin.css +++ b/wp-admin/css/wp-admin.css @@ -7305,9 +7305,12 @@ a.rsswidget { margin: .3em 0 .6em; } +.menu-edit #post-body-content h3 { + margin: 0 0 10px; +} + .menu-settings { margin-top: 2em; - padding-top: 16px; overflow: hidden; } @@ -7801,6 +7804,11 @@ body.menu-max-depth-11 { min-width: 1280px !important; } border-bottom-right-radius: 3px; } +.menu-item-settings .field-move a { + display: none; + margin: 0 2px; +} + .menu-item-edit-active .menu-item-settings { display: block; } diff --git a/wp-admin/includes/nav-menu.php b/wp-admin/includes/nav-menu.php index 27729b9be6..11b19a867e 100644 --- a/wp-admin/includes/nav-menu.php +++ b/wp-admin/includes/nav-menu.php @@ -89,7 +89,7 @@ class Walker_Nav_Menu_Edit extends Walker_Nav_Menu {