diff --git a/src/wp-admin/css/common.css b/src/wp-admin/css/common.css
index d06bebe..5f0fe3b 100644
|
a
|
b
|
img { |
| 3086 | 3086 | /* Metabox collapse arrow indicators */ |
| 3087 | 3087 | .js .sidebar-name .sidebar-name-arrow:before, |
| 3088 | 3088 | .js .meta-box-sortables .postbox .toggle-indicator:before, |
| 3089 | | .bulk-action-notice .toggle-indicator:before { |
| 3090 | | content: "\f142"; |
| | 3089 | .bulk-action-notice .toggle-indicator:before, |
| | 3090 | .js .accordion-section .handlediv .sidebar-name-arrow:before { |
| 3091 | 3091 | display: inline-block; |
| 3092 | 3092 | font: normal 20px/1 dashicons; |
| 3093 | 3093 | speak: none; |
| … |
… |
img { |
| 3096 | 3096 | text-decoration: none !important; |
| 3097 | 3097 | } |
| 3098 | 3098 | |
| | 3099 | /* Open state */ |
| | 3100 | .js .sidebar-name .sidebar-name-arrow:before, |
| | 3101 | .js .meta-box-sortables .postbox .toggle-indicator:before, |
| | 3102 | .bulk-action-notice .toggle-indicator:before, |
| | 3103 | .js .accordion-section.open .handlediv .sidebar-name-arrow:before { |
| | 3104 | content: "\f142"; |
| | 3105 | } |
| | 3106 | |
| | 3107 | /* Closed state */ |
| 3099 | 3108 | .js .widgets-holder-wrap.closed .sidebar-name-arrow:before, |
| 3100 | 3109 | .js .meta-box-sortables .postbox.closed .handlediv .toggle-indicator:before, |
| 3101 | | .bulk-action-notice .bulk-action-errors-collapsed .toggle-indicator:before { |
| | 3110 | .bulk-action-notice .bulk-action-errors-collapsed .toggle-indicator:before, |
| | 3111 | .js .accordion-section .handlediv .sidebar-name-arrow:before { |
| 3102 | 3112 | content: "\f140"; |
| 3103 | 3113 | } |
| 3104 | 3114 | |
| 3105 | | .js .sidebar-name .sidebar-name-arrow:before { |
| 3106 | | padding: 10px; |
| 3107 | | left: 0; |
| 3108 | | } |
| 3109 | | |
| 3110 | 3115 | .js #widgets-left .sidebar-name .sidebar-name-arrow { |
| 3111 | 3116 | display: none; |
| 3112 | 3117 | } |
| … |
… |
img { |
| 3149 | 3154 | 0 0 2px 1px rgba(30, 140, 190, .8); |
| 3150 | 3155 | } |
| 3151 | 3156 | |
| | 3157 | .js .metabox-holder .accordion-section .accordion-section-title:after { |
| | 3158 | content: none; |
| | 3159 | } |
| | 3160 | |
| | 3161 | .js .metabox-holder .accordion-section .handlediv { |
| | 3162 | float: right; |
| | 3163 | position: relative; |
| | 3164 | top: 11px; |
| | 3165 | margin-right: 11px; |
| | 3166 | z-index: 2; |
| | 3167 | } |
| | 3168 | |
| | 3169 | .js .metabox-holder .accordion-section .handlediv .sidebar-name-arrow:before { |
| | 3170 | width: 20px; |
| | 3171 | border-radius: 50%; |
| | 3172 | text-indent: -1px; /* account for the dashicon alignment */ |
| | 3173 | } |
| | 3174 | |
| | 3175 | .js .metabox-holder .accordion-section .handlediv:focus { |
| | 3176 | outline: none; |
| | 3177 | border: none; |
| | 3178 | box-shadow: none; |
| | 3179 | } |
| | 3180 | |
| | 3181 | .js .metabox-holder .accordion-section .handlediv:focus .sidebar-name-arrow:before { |
| | 3182 | box-shadow: |
| | 3183 | 0 0 0 1px #5b9dd9, |
| | 3184 | 0 0 2px 1px rgba(30, 140, 190, .8); |
| | 3185 | } |
| | 3186 | |
| 3152 | 3187 | /* @todo: appears to be Press This only and overridden */ |
| 3153 | 3188 | #photo-add-url-div input[type="text"] { |
| 3154 | 3189 | width: 300px; |
| … |
… |
img { |
| 3246 | 3281 | .nav-menus-php .item-edit:before, |
| 3247 | 3282 | .widget-top a.widget-action:after, |
| 3248 | 3283 | .control-section .accordion-section-title:after, |
| 3249 | | .accordion-section-title:after { |
| | 3284 | .accordion-section-title:after, |
| | 3285 | .accordion-section-arrow:after { |
| 3250 | 3286 | right: 0; |
| 3251 | 3287 | content: "\f140"; |
| 3252 | 3288 | border: none; |
| … |
… |
img { |
| 3315 | 3351 | .control-section.open .accordion-section-title:after, |
| 3316 | 3352 | #customize-info.open .accordion-section-title:after, |
| 3317 | 3353 | .nav-menus-php .menu-item-edit-active .item-edit:before, |
| 3318 | | .widget.open .widget-top a.widget-action:after { |
| | 3354 | .widget.open .widget-top a.widget-action:after, |
| | 3355 | .open .accordion-section-arrow:after { |
| 3319 | 3356 | content: "\f142"; |
| 3320 | 3357 | } |
| 3321 | 3358 | |
diff --git a/src/wp-admin/css/widgets.css b/src/wp-admin/css/widgets.css
index f0be076..ceea163 100644
|
a
|
b
|
|
| 91 | 91 | box-sizing: border-box; |
| 92 | 92 | } |
| 93 | 93 | |
| 94 | | .sidebar-name-arrow { |
| 95 | | position: absolute; |
| 96 | | top: 0; |
| 97 | | right: 0; |
| 98 | | bottom: 0; |
| | 94 | .js .sidebar-name .handlediv { |
| | 95 | float: right; |
| | 96 | width: 32px; |
| | 97 | height: 32px; |
| | 98 | padding: 0; |
| | 99 | } |
| | 100 | |
| | 101 | .js .sidebar-name .handlediv:focus { |
| | 102 | box-shadow: none; |
| | 103 | outline: none; |
| | 104 | } |
| | 105 | |
| | 106 | .js #widgets-left .sidebar-name .handlediv:focus .sidebar-name-arrow { |
| | 107 | display: block; |
| | 108 | } |
| | 109 | |
| | 110 | .js .sidebar-name .handlediv:focus .sidebar-name-arrow:before { |
| | 111 | box-shadow: |
| | 112 | 0 0 0 1px #5b9dd9, |
| | 113 | 0 0 2px 1px rgba(30, 140, 190, .8); |
| | 114 | } |
| | 115 | |
| | 116 | .js .sidebar-name .sidebar-name-arrow:before { |
| | 117 | margin-top: 14px; |
| | 118 | width: 20px; |
| | 119 | border-radius: 50%; |
| | 120 | text-indent: -1px; /* account for the dashicon alignment */ |
| | 121 | } |
| | 122 | |
| | 123 | .js .widget-liquid-left .sidebar-name .sidebar-name-arrow:before { |
| | 124 | margin-top: 7px; |
| 99 | 125 | } |
| 100 | 126 | |
| 101 | 127 | .js .sidebar-name { |
| … |
… |
div#widgets-left .sidebar-name h3 { |
| 156 | 182 | margin: 0 10px 0 0; |
| 157 | 183 | } |
| 158 | 184 | |
| 159 | | #widgets-left .sidebar-name .sidebar-name-arrow:before { |
| 160 | | padding: 9px; |
| 161 | | } |
| 162 | | |
| 163 | 185 | #widgets-left .widgets-holder-wrap, |
| 164 | 186 | div#widgets-left .widget-holder { |
| 165 | 187 | background: transparent; |
| … |
… |
div#widgets-right .sidebar-name h3 { |
| 249 | 271 | padding: 15px 7px; |
| 250 | 272 | } |
| 251 | 273 | |
| 252 | | div#widgets-right .sidebar-name .sidebar-name-arrow:before { |
| 253 | | top: 2px; |
| 254 | | } |
| 255 | | |
| 256 | 274 | div#widgets-right .widget-top { |
| 257 | 275 | padding: 0; |
| 258 | 276 | } |
diff --git a/src/wp-admin/includes/template.php b/src/wp-admin/includes/template.php
index a4672fd..f568e39 100644
|
a
|
b
|
function do_accordion_sections( $screen, $context, $object ) { |
| 1161 | 1161 | } |
| 1162 | 1162 | ?> |
| 1163 | 1163 | <li class="control-section accordion-section <?php echo $hidden_class; ?> <?php echo $open_class; ?> <?php echo esc_attr( $box['id'] ); ?>" id="<?php echo esc_attr( $box['id'] ); ?>"> |
| 1164 | | <h3 class="accordion-section-title hndle" tabindex="0"> |
| | 1164 | <button type="button" class="handlediv button-link" aria-expanded="true"> |
| | 1165 | <span class="screen-reader-text"><?php echo sprintf( __( 'Toggle panel: %s' ), esc_html( $box['title'] ) ); ?></span> |
| | 1166 | <span class="sidebar-name-arrow" aria-hidden="true"></span> |
| | 1167 | </button> |
| | 1168 | <h3 class="accordion-section-title hndle"> |
| 1165 | 1169 | <?php echo esc_html( $box['title'] ); ?> |
| 1166 | | <span class="screen-reader-text"><?php _e( 'Press return or enter to open this section' ); ?></span> |
| 1167 | 1170 | </h3> |
| 1168 | 1171 | <div class="accordion-section-content <?php postbox_classes( $box['id'], $page ); ?>"> |
| 1169 | 1172 | <div class="inside"> |
diff --git a/src/wp-admin/includes/widgets.php b/src/wp-admin/includes/widgets.php
index fe2a957..1949045 100644
|
a
|
b
|
function wp_list_widget_controls( $sidebar, $sidebar_name = '' ) { |
| 80 | 80 | if ( $sidebar_name ) { |
| 81 | 81 | ?> |
| 82 | 82 | <div class="sidebar-name"> |
| 83 | | <div class="sidebar-name-arrow"><br /></div> |
| | 83 | <button type="button" class="handlediv button-link" aria-expanded="true"> |
| | 84 | <span class="screen-reader-text"><?php echo sprintf( __( 'Toggle panel: %s' ), $sidebar_name ); ?></span> |
| | 85 | <span class="sidebar-name-arrow" aria-hidden="true"></span> |
| | 86 | </button> |
| 84 | 87 | <h2><?php echo esc_html( $sidebar_name ); ?> <span class="spinner"></span></h2> |
| 85 | 88 | </div> |
| 86 | 89 | <?php |
diff --git a/src/wp-admin/js/accordion.js b/src/wp-admin/js/accordion.js
index af62815..6eb919a 100644
|
a
|
b
|
|
| 33 | 33 | $( document ).ready( function () { |
| 34 | 34 | |
| 35 | 35 | // Expand/Collapse accordion sections on click. |
| 36 | | $( '.accordion-container' ).on( 'click keydown', '.accordion-section-title', function( e ) { |
| | 36 | $( '.accordion-container' ).on( 'click keydown', '.accordion-section-title, .handlediv', function( e ) { |
| 37 | 37 | if ( e.type === 'keydown' && 13 !== e.which ) { // "return" key |
| 38 | 38 | return; |
| 39 | 39 | } |
diff --git a/src/wp-admin/widgets.php b/src/wp-admin/widgets.php
index db4459b..ade84bb 100644
|
a
|
b
|
|
| 387 | 387 | <div id="widgets-left"> |
| 388 | 388 | <div id="available-widgets" class="widgets-holder-wrap"> |
| 389 | 389 | <div class="sidebar-name"> |
| 390 | | <div class="sidebar-name-arrow"><br /></div> |
| | 390 | <button type="button" class="handlediv button-link" aria-expanded="true"> |
| | 391 | <span class="screen-reader-text">Toggle panel: <?php _e( 'Available Widgets' ); ?></span> |
| | 392 | <span class="sidebar-name-arrow" aria-hidden="true"></span> |
| | 393 | </button> |
| 391 | 394 | <h2><?php _e( 'Available Widgets' ); ?> <span id="removing-widget"><?php _ex( 'Deactivate', 'removing-widget' ); ?> <span></span></span></h2> |
| 392 | 395 | </div> |
| 393 | 396 | <div class="widget-holder"> |