Ticket #23119: 23119.12.diff
File 23119.12.diff, 22.1 KB (added by , 11 years ago) |
---|
-
wp-admin/includes/nav-menu.php
80 80 } 81 81 82 82 $title = empty( $item->label ) ? $title : $item->label; 83 84 $submenu_text = ''; 85 if (0 == $depth) 86 $submenu_text = 'style="display: none;"'; 83 87 84 88 ?> 85 89 <li id="menu-item-<?php echo $item_id; ?>" class="<?php echo implode(' ', $classes ); ?>"> 86 90 <dl class="menu-item-bar"> 87 91 <dt class="menu-item-handle"> 88 <span class="item-title"><?php echo esc_html( $title ); ?> </span>92 <span class="item-title"><?php echo esc_html( $title ); ?> <span class="is-submenu" <?php echo $submenu_text; ?>><?php _e( 'sub item' ); ?></span></span> 89 93 <span class="item-controls"> 90 94 <span class="item-type"><?php echo esc_html( $item->type_label ); ?></span> 91 95 <span class="item-order hide-if-js"> … … 382 386 **/ 383 387 function wp_nav_menu_setup() { 384 388 // Register meta boxes 385 if ( wp_get_nav_menus() ) 386 add_meta_box( 'nav-menu-theme-locations', __( 'Theme Locations' ), 'wp_nav_menu_locations_meta_box' , 'nav-menus', 'side', 'default' ); 387 add_meta_box( 'add-custom-links', __('Custom Links'), 'wp_nav_menu_item_link_meta_box', 'nav-menus', 'side', 'default' ); 388 wp_nav_menu_post_type_meta_boxes(); 389 wp_nav_menu_taxonomy_meta_boxes(); 389 if ( wp_get_nav_menus() && ! isset( $_POST['menu-name'] ) && ! isset( $_GET['action'] ) || isset( $_GET['_wpnonce'] ) ) 390 add_meta_box( 'nav-menu-theme-locations', __( 'Menus within your theme' ), 'wp_nav_menu_locations_meta_box' , 'nav-menus', 'side', 'default' ); 391 392 $nav_menus = wp_get_nav_menus( array('orderby' => 'name') ); 393 394 if ( empty( $nav_menus ) || isset( $_POST['menu-name'] ) || isset( $_GET['action'] ) && ! isset( $_GET['_wpnonce'] ) ) { 395 add_meta_box( 'add-custom-links', __('Custom Links'), 'wp_nav_menu_item_link_meta_box', 'nav-menus', 'side', 'default' ); 396 wp_nav_menu_post_type_meta_boxes(); 397 wp_nav_menu_taxonomy_meta_boxes(); 398 } 390 399 391 400 // Register advanced menu items (columns) 392 401 add_filter( 'manage_nav-menus_columns', 'wp_nav_menu_manage_columns'); … … 489 498 $menu_locations = get_nav_menu_locations(); 490 499 $num_locations = count( array_keys($locations) ); 491 500 492 echo '<p class="howto">' . sprintf( _n('Your theme supports %s menu. Select which menu you would like to use.', 'Your theme supports %s menus. Select which menu appears in each location.', $num_locations ), number_format_i18n($num_locations)) . '</p>';501 echo '<p class="howto">' . _n('Select a menu to use within your theme.', 'Select the menus you will use in your theme.', $num_locations ) . '</p>'; 493 502 494 503 foreach ( $locations as $location => $description ) { 495 504 ?> … … 512 521 } 513 522 ?> 514 523 <p class="button-controls"> 515 <?php submit_button( __( 'Save' ), 'primary right', 'nav-menu-locations', false , disabled( $nav_menu_selected_id, 0, false )); ?>524 <?php submit_button( __( 'Save' ), 'primary right', 'nav-menu-locations', false ); ?> 516 525 <span class="spinner"></span> 517 526 </p> 518 527 <?php … … 1086 1095 $menu_items = wp_get_nav_menu_items( $menu->term_id, array('post_status' => 'any') ); 1087 1096 $result = '<div id="menu-instructions" class="post-body-plain'; 1088 1097 $result .= ( ! empty($menu_items) ) ? ' menu-instructions-inactive">' : '">'; 1089 $result .= '<p>' . __(' Select menu items (pages, categories, links) from the boxes at left to begin building your custom menu.') . '</p>';1098 $result .= '<p>' . __('Next, add menu items (i.e. pages, links, categories) from the column on the left.') . '</p>'; 1090 1099 $result .= '</div>'; 1091 1100 1092 1101 if( empty($menu_items) ) … … 1158 1167 foreach( (array) $menu_items_to_delete as $menu_item_id ) 1159 1168 wp_delete_post( $menu_item_id, true ); 1160 1169 } 1161 1162 add_action('admin_head-nav-menus.php', '_wp_delete_orphaned_draft_menu_items'); 1170 add_action('admin_head-nav-menus.php', '_wp_delete_orphaned_draft_menu_items'); 1171 No newline at end of file -
wp-admin/js/nav-menu.js
46 46 this.initSortables(); 47 47 48 48 this.initToggles(); 49 50 this. initTabManager();49 50 this.messageFadeIn(); 51 51 }, 52 52 53 53 jQueryExtensions : function() { … … 222 222 } 223 223 }); 224 224 }, 225 226 messageFadeIn : function() { 227 var messages = $('#message'); 228 229 // Visual change when users save menus multiple times in a row 230 messages.slideDown('slow'); 231 }, 225 232 226 233 initToggles : function() { 227 234 // init postboxes … … 245 252 menuEdge = api.menuList.offset().left, 246 253 body = $('body'), maxChildDepth, 247 254 menuMaxDepth = initialMenuMaxDepth(); 255 256 if( 0 != $('#menu-to-edit li').length ) 257 $('.drag-instructions').show(); 248 258 249 259 // Use the right edge if RTL. 250 260 menuEdge += api.isRTL ? api.menuList.width() : 0; … … 307 317 308 318 // Return child elements to the list 309 319 children = transport.children().insertAfter(ui.item); 320 321 // Add "sub menu" description 322 var subMenuTitle = ui.item.find('.item-title .is-submenu'); 323 if (0 < currentDepth) 324 subMenuTitle.show(); 325 else 326 subMenuTitle.hide(); 310 327 311 328 // Update depth classes 312 329 if( depthChange != 0 ) { … … 327 344 ui.item[0].style.left = 'auto'; 328 345 ui.item[0].style.right = 0; 329 346 } 330 331 // The width of the tab bar might have changed. Just in case.332 api.refreshMenuTabs( true );333 347 }, 334 348 change: function(e, ui) { 335 349 // Make sure the placeholder is inside the menu. … … 461 475 if( '' == $t.val() ) 462 476 $t.addClass( name ).val( $t.data(name) ); 463 477 }); 478 479 $('.blank-slate .input-with-default-title').focus(); 464 480 }, 465 481 466 482 attachThemeLocationsListeners : function() { … … 572 588 $.post( ajaxurl, params, function(menuMarkup) { 573 589 var ins = $('#menu-instructions'); 574 590 processMethod(menuMarkup, params); 591 // Make it stand out a bit more visually, by adding a fadeIn 592 $('li.pending').hide().fadeIn('slow'); 593 $('.drag-instructions').show(); 575 594 if( ! ins.hasClass('menu-instructions-inactive') && ins.siblings().length ) 576 595 ins.addClass('menu-instructions-inactive'); 577 596 callback(); … … 604 623 }; 605 624 } else { 606 625 // Make the post boxes read-only, as they can't be used yet 607 $('#menu-settings-column').find('input,select'). prop('disabled', true).end().find('a').attr('href', '#').unbind('click');626 $('#menu-settings-column').find('input,select').end().find('a').attr('href', '#').unbind('click'); 608 627 } 609 628 }, 610 629 … … 688 707 }); 689 708 }, 690 709 691 initTabManager : function() {692 var fixed = $('.nav-tabs-wrapper'),693 fluid = fixed.children('.nav-tabs'),694 active = fluid.children('.nav-tab-active'),695 tabs = fluid.children('.nav-tab'),696 tabsWidth = 0,697 fixedRight, fixedLeft,698 arrowLeft, arrowRight, resizeTimer, css = {},699 marginFluid = api.isRTL ? 'margin-right' : 'margin-left',700 marginFixed = api.isRTL ? 'margin-left' : 'margin-right',701 msPerPx = 2;702 703 /**704 * Refreshes the menu tabs.705 * Will show and hide arrows where necessary.706 * Scrolls to the active tab by default.707 *708 * @param savePosition {boolean} Optional. Prevents scrolling so709 * that the current position is maintained. Default false.710 **/711 api.refreshMenuTabs = function( savePosition ) {712 var fixedWidth = fixed.width(),713 margin = 0, css = {};714 fixedLeft = fixed.offset().left;715 fixedRight = fixedLeft + fixedWidth;716 717 if( !savePosition )718 active.makeTabVisible();719 720 // Prevent space from building up next to the last tab if there's more to show721 if( tabs.last().isTabVisible() ) {722 margin = fixed.width() - tabsWidth;723 margin = margin > 0 ? 0 : margin;724 css[marginFluid] = margin + 'px';725 fluid.animate( css, 100, "linear" );726 }727 728 // Show the arrows only when necessary729 if( fixedWidth > tabsWidth )730 arrowLeft.add( arrowRight ).hide();731 else732 arrowLeft.add( arrowRight ).show();733 }734 735 $.fn.extend({736 makeTabVisible : function() {737 var t = this.eq(0), left, right, css = {}, shift = 0;738 739 if( ! t.length ) return this;740 741 left = t.offset().left;742 right = left + t.outerWidth();743 744 if( right > fixedRight )745 shift = fixedRight - right;746 else if ( left < fixedLeft )747 shift = fixedLeft - left;748 749 if( ! shift ) return this;750 751 css[marginFluid] = "+=" + api.negateIfRTL * shift + 'px';752 fluid.animate( css, Math.abs( shift ) * msPerPx, "linear" );753 return this;754 },755 isTabVisible : function() {756 var t = this.eq(0),757 left = t.offset().left,758 right = left + t.outerWidth();759 return ( right <= fixedRight && left >= fixedLeft ) ? true : false;760 }761 });762 763 // Find the width of all tabs764 tabs.each(function(){765 tabsWidth += $(this).outerWidth(true);766 });767 768 // Set up fixed margin for overflow, unset padding769 css['padding'] = 0;770 css[marginFixed] = (-1 * tabsWidth) + 'px';771 fluid.css( css );772 773 // Build tab navigation774 arrowLeft = $('<div class="nav-tabs-arrow nav-tabs-arrow-left"><a>«</a></div>');775 arrowRight = $('<div class="nav-tabs-arrow nav-tabs-arrow-right"><a>»</a></div>');776 // Attach to the document777 fixed.wrap('<div class="nav-tabs-nav"/>').parent().prepend( arrowLeft ).append( arrowRight );778 779 // Set the menu tabs780 api.refreshMenuTabs();781 // Make sure the tabs reset on resize782 $(window).resize(function() {783 if( resizeTimer ) clearTimeout(resizeTimer);784 resizeTimer = setTimeout( api.refreshMenuTabs, 200);785 });786 787 // Build arrow functions788 $.each([{789 arrow : arrowLeft,790 next : "next",791 last : "first",792 operator : "+="793 },{794 arrow : arrowRight,795 next : "prev",796 last : "last",797 operator : "-="798 }], function(){799 var that = this;800 this.arrow.mousedown(function(){801 var marginFluidVal = Math.abs( parseInt( fluid.css(marginFluid) ) ),802 shift = marginFluidVal,803 css = {};804 805 if( "-=" == that.operator )806 shift = Math.abs( tabsWidth - fixed.width() ) - marginFluidVal;807 808 if( ! shift ) return;809 810 css[marginFluid] = that.operator + shift + 'px';811 fluid.animate( css, shift * msPerPx, "linear" );812 }).mouseup(function(){813 var tab, next;814 fluid.stop(true);815 tab = tabs[that.last]();816 while( (next = tab[that.next]()) && next.length && ! next.isTabVisible() ) {817 tab = next;818 }819 tab.makeTabVisible();820 });821 });822 },823 824 710 eventOnClickEditLink : function(clickedEl) { 825 711 var settings, item, 826 712 matchedSection = /#(.*)$/.exec(clickedEl.href); … … 945 831 var ins = $('#menu-instructions'); 946 832 el.remove(); 947 833 children.shiftDepthClass(-1).updateParentMenuItemDBId(); 948 if( ! ins.siblings().length ) 834 if( 0 == $('#menu-to-edit li').length ) { 835 $('.drag-instructions').hide(); 949 836 ins.removeClass('menu-instructions-inactive'); 837 } 950 838 }); 951 839 }, 952 840 -
wp-admin/nav-menus.php
460 460 ?> 461 461 <div class="wrap"> 462 462 <?php screen_icon(); ?> 463 <h2><?php esc_html_e('Menus'); ?></h2> 463 <h2 class="nav-tab-wrapper"> 464 <a href="<?php echo admin_url( 'nav-menus.php' ); ?>" class="nav-tab<?php if ( ! isset( $_POST['menu-name'] ) && ! isset( $_GET['action'] ) || isset( $_GET['_wpnonce'] ) ) echo ' nav-tab-active'; ?>"><?php esc_html_e('Manage Menus'); ?></a> 465 <a href="<?php echo esc_url( add_query_arg( array( 'action' => 'edit', 'menu' => 0, ), admin_url( 'nav-menus.php' ) ) ); ?>" class="nav-tab<?php if ( isset( $_GET['menu'] ) && '0' == $_GET['menu'] ) echo ' nav-tab-active'; ?>"><?php esc_html_e('Add Menu'); ?></a> 466 </h2> 464 467 <?php 465 468 foreach( $messages as $message ) : 466 469 echo $message . "\n"; 467 470 endforeach; 468 471 ?> 469 472 <div id="nav-menus-frame"> 470 <div id="menu-settings-column" class="metabox-holder<?php if ( !$nav_menu_selected_id) { echo ' metabox-holder-disabled'; } ?>">473 <div id="menu-settings-column" class="metabox-holder<?php if ( isset( $_GET['menu'] ) && '0' == $_GET['menu'] || empty( $nav_menus ) ) { echo ' metabox-holder-disabled'; } ?>"> 471 474 472 475 <form id="nav-menu-meta" action="<?php echo admin_url( 'nav-menus.php' ); ?>" class="nav-menu-meta" method="post" enctype="multipart/form-data"> 473 476 <input type="hidden" name="menu" id="nav-menu-meta-object-id" value="<?php echo esc_attr( $nav_menu_selected_id ); ?>" /> … … 479 482 </div><!-- /#menu-settings-column --> 480 483 <div id="menu-management-liquid"> 481 484 <div id="menu-management"> 482 <div id="select-nav-menu-container" class="hide-if-js"> 483 <form id="select-nav-menu" action=""> 484 <strong><label for="select-nav-menu"><?php esc_html_e( 'Select Menu:' ); ?></label></strong> 485 <select class="select-nav-menu" name="menu"> 485 <?php if ( ! isset( $_POST['menu-name'] ) && ! empty( $nav_menus ) && ! isset( $_GET['action'] ) || ( isset( $_GET['_wpnonce'] ) && 0 != count( $nav_menus ) ) ) : ?> 486 <div id="select-nav-menu-container"> 487 488 <!-- Temporary (throw away) code just to test users on this concept --> 489 <table cellspacing="0" class="wp-list-table widefat fixed tags"> 490 <thead> 491 <tr> 492 <th style="" class="manage-column column-name desc" id="name" scope="col"><span>Menu Name</span></th> 493 </tr> 494 </thead> 495 <tfoot> 496 <tr> 497 <th style="" class="manage-column column-name desc" scope="col"><span>Menu Name</span></th> 498 </tr> 499 </tfoot> 500 <tbody data-wp-lists="list:tag" id="the-list"> 486 501 <?php foreach( (array) $nav_menus as $_nav_menu ) : ?> 487 <option value="<?php echo esc_attr($_nav_menu->term_id) ?>" <?php selected($nav_menu_selected_id, $_nav_menu->term_id); ?>> 488 <?php echo esc_html( $_nav_menu->truncated_name ); ?> 489 </option> 502 <tr> 503 <td style="text-align: left;"> 504 <strong><a title="<?php echo esc_html( $_nav_menu->truncated_name ); ?>" href="<?php echo admin_url('nav-menus.php?action=edit&menu=' . esc_attr($_nav_menu->term_id)); ?>" class="row-title"><?php echo esc_html( $_nav_menu->truncated_name ); ?></a></strong><br /> 505 <div class="row-actions"> 506 <span class="edit"><a href="<?php echo admin_url('nav-menus.php?action=edit&menu=' . esc_attr($_nav_menu->term_id)); ?>">Edit</a> | </span> 507 <span class="trash"><a class="submitdelete" title="Delete this menu" href="<?php echo esc_url( wp_nonce_url( admin_url('nav-menus.php?action=delete&menu=' . esc_attr($_nav_menu->term_id)), 'delete-nav_menu-' . esc_attr($_nav_menu->term_id) ) ); ?>">Delete</a></span> 508 </div> 509 </td> 510 </tr> 490 511 <?php endforeach; ?> 491 <option value="0"><?php esc_html_e('Add New Menu'); ?></option> 492 </select> 493 <input type="hidden" name="action" value="edit" /> 494 <?php submit_button( __( 'Select' ), 'secondary', 'select_menu', false ); ?> 495 </form> 512 </tbody> 513 </table> 496 514 </div> 497 <div class="nav-tabs-wrapper"> 498 <div class="nav-tabs"> 499 <?php 500 foreach( (array) $nav_menus as $_nav_menu ) : 501 if ( $nav_menu_selected_id == $_nav_menu->term_id ) : ?><span class="nav-tab nav-tab-active"> 502 <?php echo esc_html( $_nav_menu->truncated_name ); ?> 503 </span><?php else : ?><a href="<?php 504 echo esc_url(add_query_arg( 505 array( 506 'action' => 'edit', 507 'menu' => $_nav_menu->term_id, 508 ), 509 admin_url( 'nav-menus.php' ) 510 )); 511 ?>" class="nav-tab hide-if-no-js"> 512 <?php echo esc_html( $_nav_menu->truncated_name ); ?> 513 </a><?php endif; 514 endforeach; 515 if ( 0 == $nav_menu_selected_id ) : ?><span class="nav-tab menu-add-new nav-tab-active"> 516 <?php printf( '<abbr title="%s">+</abbr>', esc_html__( 'Add menu' ) ); ?> 517 </span><?php else : ?><a href="<?php 518 echo esc_url(add_query_arg( 519 array( 520 'action' => 'edit', 521 'menu' => 0, 522 ), 523 admin_url( 'nav-menus.php' ) 524 )); 525 ?>" class="nav-tab menu-add-new"> 526 <?php printf( '<abbr title="%s">+</abbr>', esc_html__( 'Add menu' ) ); ?> 527 </a><?php endif; ?> 528 </div> 529 </div> 515 <?php else : ?> 530 516 <div class="menu-edit"> 531 517 <form id="update-nav-menu" action="<?php echo admin_url( 'nav-menus.php' ); ?>" method="post" enctype="multipart/form-data"> 532 518 <div id="nav-menu-header"> 533 519 <div id="submitpost" class="submitbox"> 534 <div class="major-publishing-actions ">520 <div class="major-publishing-actions <?php if ( isset( $_GET['menu'] ) && 0 == $_GET['menu'] || empty( $nav_menus ) ) echo 'blank-slate'; ?>"> 535 521 <label class="menu-name-label howto open-label" for="menu-name"> 536 522 <span><?php _e('Menu Name'); ?></span> 537 523 <input name="menu-name" id="menu-name" type="text" class="menu-name regular-text menu-item-textbox input-with-default-title" title="<?php esc_attr_e('Enter menu name here'); ?>" value="<?php echo esc_attr( $nav_menu_selected_title ); ?>" /> … … 551 537 <label class="howto"><input type="checkbox"<?php checked( $auto_add ); ?> name="auto-add-pages" value="1" /> <?php printf( __('Automatically add new top-level pages' ), esc_url( admin_url( 'edit.php?post_type=page' ) ) ); ?></label> 552 538 </div> 553 539 <?php endif; ?> 554 <br class="clear" />555 540 <div class="publishing-action"> 556 541 <?php submit_button( empty( $nav_menu_selected_id ) ? __( 'Create Menu' ) : __( 'Save Menu' ), 'button-primary menu-save', 'save_menu', false, array( 'id' => 'save_menu_header' ) ); ?> 557 542 </div><!-- END .publishing-action --> 558 543 559 <?php if ( ! empty( $nav_menu_selected_id ) ) : ?>560 <div class="delete-action">561 <a class="submitdelete deletion menu-delete" href="<?php echo esc_url( wp_nonce_url( admin_url('nav-menus.php?action=delete&menu=' . $nav_menu_selected_id), 'delete-nav_menu-' . $nav_menu_selected_id ) ); ?>"><?php _e('Delete Menu'); ?></a>562 </div><!-- END .delete-action -->563 <?php endif; ?>564 544 </div><!-- END .major-publishing-actions --> 565 545 </div><!-- END #submitpost .submitbox --> 566 546 <?php … … 574 554 <div id="post-body"> 575 555 <div id="post-body-content"> 576 556 <?php 577 if ( isset( $edit_markup ) ) { 557 $drag_instructions = ''; 558 if ( empty( $ordered_menu_items ) ) 559 $drag_instructions = 'style="display: none;"'; 560 561 if ( isset( $edit_markup ) ) { 562 echo '<div class="drag-instructions post-body-plain" ' . $drag_instructions . '>'; 563 echo '<p>' . __('Drag each item into the order you prefer. Click an item to reveal additional configuration options.') . '</p>'; 564 echo '</div>'; 565 578 566 if ( ! is_wp_error( $edit_markup ) ) 579 567 echo $edit_markup; 580 568 } else if ( empty( $nav_menu_selected_id ) ) { 581 569 echo '<div class="post-body-plain">'; 582 echo '<p>' . __('To create a custom menu, give it a name above and click Create Menu. Then choose items like pages, categories or custom links from the left column to add to this menu.') . '</p>'; 583 echo '<p>' . __('After you have added your items, drag and drop to put them in the order you want. You can also click each item to reveal additional configuration options.') . '</p>'; 584 echo '<p>' . __('When you have finished building your custom menu, make sure you click the Save Menu button.') . '</p>'; 570 echo '<p>' . __('Give your custom menu a name above, then click Create Menu.') . '</p>'; 585 571 echo '</div>'; 586 572 } 587 573 ?> … … 599 585 </div><!-- /#nav-menu-footer --> 600 586 </form><!-- /#update-nav-menu --> 601 587 </div><!-- /.menu-edit --> 588 <?php endif; ?> 602 589 </div><!-- /#menu-management --> 603 590 </div><!-- /#menu-management-liquid --> 604 591 </div><!-- /#nav-menus-frame --> -
wp-admin/css/wp-admin.css
6750 6750 6751 6751 /* nav-menu */ 6752 6752 6753 .nav-menus-php #message { 6754 display: none; 6755 } 6756 6757 .nav-menus-php .nav-tab-wrapper { 6758 margin-bottom: 20px; 6759 } 6760 6753 6761 #nav-menus-frame { 6754 6762 margin-left: 300px; 6763 margin-top: 20px; 6755 6764 } 6756 6765 6757 6766 #wpbody-content #menu-settings-column { … … 6760 6769 margin-left: -300px; 6761 6770 clear: both; 6762 6771 float: left; 6763 padding-top: 24px;6772 padding-top: 0; 6764 6773 } 6765 6774 6766 6775 .no-js #wpbody-content #menu-settings-column { … … 6785 6794 position: relative; 6786 6795 } 6787 6796 6797 .blank-slate br { 6798 display: none; 6799 } 6800 6801 .blank-slate .menu-name { 6802 height: 2em; 6803 } 6804 6805 .is-submenu { 6806 color: #999; 6807 font-style: italic; 6808 font-weight: normal; 6809 margin-left: 4px; 6810 } 6811 6788 6812 /* Menu Container */ 6789 6813 #menu-management-liquid { 6790 6814 float: left; 6791 6815 min-width: 100%; 6816 margin-top: 3px; 6792 6817 } 6793 6818 6794 6819 #menu-management { … … 6835 6860 font-weight:bold; 6836 6861 } 6837 6862 6838 /* Menu Tabs */6839 6840 #menu-management .nav-tabs-nav {6841 margin: 0 20px;6842 }6843 6844 #menu-management .nav-tabs-arrow {6845 width: 10px;6846 padding: 0 5px 4px;6847 cursor: pointer;6848 position: absolute;6849 top: 0;6850 line-height: 22px;6851 font-size: 18px;6852 text-shadow: 0 1px 0 #fff;6853 }6854 6855 #menu-management .nav-tabs-arrow-left {6856 left: 0;6857 }6858 6859 #menu-management .nav-tabs-arrow-right {6860 right: 0;6861 text-align: right;6862 }6863 6864 #menu-management .nav-tabs-wrapper {6865 width: 100%;6866 height: 28px;6867 margin-bottom: -1px;6868 overflow: hidden;6869 }6870 6871 #menu-management .nav-tabs {6872 padding-left: 20px;6873 padding-right: 10px;6874 }6875 6876 .js #menu-management .nav-tabs {6877 float: left;6878 margin-left: 0px;6879 margin-right: -400px;6880 }6881 6882 #menu-management .nav-tab {6883 margin-bottom: 0;6884 font-size: 14px;6885 }6886 6887 6863 #select-nav-menu-container { 6888 6864 text-align: right; 6889 6865 padding: 0 10px 3px 10px; … … 6945 6921 } 6946 6922 6947 6923 .nav-menus-php .meta-sep, 6948 .nav-menus-php .submitdelete,6949 6924 .nav-menus-php .submitcancel { 6950 6925 display: block; 6951 6926 float: left; … … 7080 7055 } 7081 7056 7082 7057 #menu-to-edit { 7083 padding: 1em 0;7058 padding: 0.1em 0; 7084 7059 } 7085 7060 7086 7061 .menu ul { … … 7326 7301 margin: 5px 0 1px; 7327 7302 } 7328 7303 7304 .nav-menus-php .blank-slate .publishing-action { 7305 float: left; 7306 margin: 1px 0 0; 7307 } 7308 7329 7309 .nav-menus-php .major-publishing-actions .delete-action { 7330 7310 vertical-align: middle; 7331 7311 text-align: left;