Ticket #28655: 28655.2.patch
File 28655.2.patch, 2.8 KB (added by , 10 years ago) |
---|
-
wp-admin/js/customize-controls.js
1045 1045 1046 1046 if ( ! activated() ) { 1047 1047 save.val( api.l10n.activate ).prop( 'disabled', false ); 1048 back.text( api.l10n.cancel ); 1049 1048 1050 1049 } else if ( saved() ) { 1051 1050 save.val( api.l10n.saved ).prop( 'disabled', true ); 1052 1051 back.text( api.l10n.close ); 1053 1052 1054 1053 } else { 1055 1054 save.val( api.l10n.save ).prop( 'disabled', false ); 1056 back.text( api.l10n.cancel );1057 1055 } 1058 1056 }); 1059 1057 … … 1197 1195 1198 1196 api.trigger( 'ready' ); 1199 1197 1200 // Make sure left column gets focus1201 topFocus = $('.back');1202 topFocus.focus();1203 setTimeout(function () {1204 topFocus.focus();1205 }, 200);1206 1207 1198 }); 1208 1199 1209 1200 })( wp, jQuery ); -
wp-admin/customize.php
108 108 submit_button( $save_text, 'primary save', 'save', false ); 109 109 ?> 110 110 <span class="spinner"></span> 111 <a class="back button" href="<?php echo esc_url( $return ? $return : admin_url( 'themes.php' ) ); ?>"> 112 <?php _e( 'Cancel' ); ?> 113 </a> 111 <a class="back" href="<?php echo esc_url( $return ? $return : admin_url( 'themes.php' ) ); ?>"></a> 114 112 </div> 115 113 116 114 <?php -
wp-admin/css/customize-controls.css
209 209 height: 22px; 210 210 } 211 211 212 a.back { 213 color: #444; 214 display: block; 215 position: fixed; 216 top: 0; 217 z-index: 99; 218 left: -48px; 219 width: 45px; 220 height: 45px; 221 padding-right: 2px; 222 background: #eee; 223 border-right: 1px solid #ddd; 224 cursor: pointer; 225 -webkit-transition: left ease-in-out .18s, color ease-in .1s; 226 transition: left ease-in-out .18s, color ease-in .1s; 227 } 228 229 230 a.back:hover, 231 a.back:focus { 232 background-color: #0074a2; 233 color: #fff; 234 outline: none; 235 } 236 212 237 #customize-header-actions a.back { 213 238 position: relative; 214 239 left: 0; … … 216 241 transition: left ease-in-out .18s; 217 242 } 218 243 244 a.back:before { 245 font: normal 29px/1 dashicons; 246 content: "\f335"; 247 position: relative; 248 top: 9px; 249 left: 9px; 250 } 251 219 252 .in-sub-panel #customize-header-actions a.back { 220 253 left: -120px; 221 254 } … … 223 256 .wp-full-overlay-sidebar .wp-full-overlay-header { 224 257 -webkit-transition: padding ease-in-out .18s; 225 258 transition: padding ease-in-out .18s; 259 padding: 0 15px 0 0; 226 260 } 227 261 262 .wp-full-overlay-sidebar .wp-full-overlay-header a.back { 263 margin-top: 0; 264 } 265 228 266 .in-sub-panel .wp-full-overlay-sidebar .wp-full-overlay-header { 229 267 padding-left: 62px; 230 268 }