Changeset 38912
- Timestamp:
- 10/25/2016 05:28:40 PM (8 years ago)
- Location:
- trunk/src/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/css/nav-menus.css
r38770 r38912 110 110 } 111 111 112 .menu-settings dl{112 .menu-settings-group { 113 113 margin: 0 0 10px; 114 114 overflow: hidden; 115 padding-left: 18%; 116 } 117 118 .menu-settings dd { 115 padding-left: 20%; 116 } 117 118 .menu-settings-group:last-of-type { 119 margin-bottom: 0; 120 } 121 122 .menu-settings-input { 119 123 float: left; 120 124 margin: 0; … … 122 126 } 123 127 124 .menu-settings dt{128 .menu-settings-group-name { 125 129 float: left; 126 130 clear: both; 127 width: 2 1.951%;131 width: 25%; 128 132 padding: 3px 0 0; 129 margin-left: -2 1.951%;133 margin-left: -25%; /* 20 container left padding x ( 100 container % width / 80 this % width ) */ 130 134 } 131 135 … … 870 874 } 871 875 872 .menu-settings dl{876 .menu-settings-group { 873 877 padding-left: 0; 874 878 } 875 879 876 .menu-settings dd { 877 float: none; 878 width: 100%; 879 margin-bottom: 15px; 880 } 881 882 .menu-settings dt { 880 .menu-settings-group-name { 883 881 float: none; 884 882 width: auto; … … 887 885 } 888 886 887 .menu-settings-input { 888 float: none; 889 margin-bottom: 15px; 890 } 891 892 .menu-edit .checkbox-input { 893 margin-top: 0; 894 } 895 889 896 .manage-menus select { 890 897 margin: 0.5em 0; -
trunk/src/wp-admin/nav-menus.php
r38725 r38912 799 799 } ?> 800 800 801 <dl class="auto-add-pages"> 802 <dt class="howto"><?php _e( 'Auto add pages' ); ?></dt> 803 <dd class="checkbox-input"><input type="checkbox"<?php checked( $auto_add ); ?> name="auto-add-pages" id="auto-add-pages" value="1" /> <label for="auto-add-pages"><?php printf( __('Automatically add new top-level pages to this menu' ), esc_url( admin_url( 'edit.php?post_type=page' ) ) ); ?></label></dd> 804 </dl> 801 <fieldset class="menu-settings-group auto-add-pages"> 802 <legend class="menu-settings-group-name howto"><?php _e( 'Auto add pages' ); ?></legend> 803 <div class="menu-settings-input checkbox-input"> 804 <input type="checkbox"<?php checked( $auto_add ); ?> name="auto-add-pages" id="auto-add-pages" value="1" /> <label for="auto-add-pages"><?php printf( __('Automatically add new top-level pages to this menu' ), esc_url( admin_url( 'edit.php?post_type=page' ) ) ); ?></label> 805 </div> 806 </fieldset> 805 807 806 808 <?php if ( current_theme_supports( 'menus' ) ) : ?> 807 809 808 < dl class="menu-theme-locations">809 < dt class="howto"><?php _e( 'Theme locations' ); ?></dt>810 <fieldset class="menu-settings-group menu-theme-locations"> 811 <legend class="menu-settings-group-name howto"><?php _e( 'Theme locations' ); ?></legend> 810 812 <?php foreach ( $locations as $location => $description ) : ?> 811 <d d class="checkbox-input">813 <div class="menu-settings-input checkbox-input"> 812 814 <input type="checkbox"<?php checked( isset( $menu_locations[ $location ] ) && $menu_locations[ $location ] == $nav_menu_selected_id ); ?> name="menu-locations[<?php echo esc_attr( $location ); ?>]" id="locations-<?php echo esc_attr( $location ); ?>" value="<?php echo esc_attr( $nav_menu_selected_id ); ?>" /> 813 815 <label for="locations-<?php echo esc_attr( $location ); ?>"><?php echo $description; ?></label> … … 820 822 ?></span> 821 823 <?php endif; ?> 822 </d d>824 </div> 823 825 <?php endforeach; ?> 824 </ dl>826 </fieldset> 825 827 826 828 <?php endif; ?>
Note: See TracChangeset
for help on using the changeset viewer.