Ticket #28655: 28655.4.patch
| File 28655.4.patch, 3.1 KB (added by , 12 years ago) |
|---|
-
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' ); ?> 111 <a class="back" href="<?php echo esc_url( $return ? $return : admin_url( 'themes.php' ) ); ?>"></a> 113 112 </a> 114 113 </div> 115 114 -
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 ) ;1048 back.text( api.l10n.cancel ).css("visibility","hidden"); 1049 1049 1050 1050 } else if ( saved() ) { 1051 1051 save.val( api.l10n.saved ).prop( 'disabled', true ); 1052 back.text( api.l10n.close ) ;1052 back.text( api.l10n.close ).css("visibility","hidden"); 1053 1053 1054 1054 } else { 1055 1055 save.val( api.l10n.save ).prop( 'disabled', false ); 1056 back.text( api.l10n.cancel ) ;1056 back.text( api.l10n.cancel ).css("visibility","hidden"); 1057 1057 } 1058 1058 }); 1059 1059 … … 1197 1197 1198 1198 api.trigger( 'ready' ); 1199 1199 1200 // Make sure left column gets focus1201 topFocus = $('.back');1202 topFocus.focus();1203 setTimeout(function () {1204 topFocus.focus();1205 }, 200);1206 1200 1207 1201 }); 1208 1202 -
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 cursor: pointer; 224 -webkit-transition: left ease-in-out .18s, color ease-in .1s; 225 transition: left ease-in-out .18s, color ease-in .1s; 226 } 227 228 229 a.back:hover, 230 a.back:focus { 231 background-color: #0074a2; 232 color: #fff; 233 outline: none; 234 } 235 236 a.back:before { 237 font: normal 45px/1 dashicons; 238 content: "\f335"; 239 position: relative; 240 visibility: visible; 241 border-right: 1px solid #ddd; 242 } 243 244 a.back:hover::before { 245 background-color: #0074a2; 246 color: #fff; 247 outline: none; 248 } 249 250 212 251 #customize-header-actions a.back { 213 252 position: relative; 214 253 left: 0; … … 223 262 .wp-full-overlay-sidebar .wp-full-overlay-header { 224 263 -webkit-transition: padding ease-in-out .18s; 225 264 transition: padding ease-in-out .18s; 265 padding: 0 15px 0 0; 226 266 } 227 267 268 .wp-full-overlay-sidebar .wp-full-overlay-header a.back { 269 margin-top: 0; 270 } 271 228 272 .in-sub-panel .wp-full-overlay-sidebar .wp-full-overlay-header { 229 273 padding-left: 62px; 230 274 }