Ticket #26527: 26527.diff
File 26527.diff, 3.1 KB (added by , 11 years ago) |
---|
-
src/wp-admin/css/wp-admin.css
6483 6483 padding: 15px 12px; 6484 6484 text-align: center; 6485 6485 border-radius: 3px; 6486 text-decoration:none; 6486 6487 -webkit-transition: opacity 0.1s ease-in-out; 6487 6488 transition: opacity 0.1s ease-in-out; 6488 6489 } 6489 6490 6490 .theme-browser.rendered .theme:hover .more-details { 6491 .theme-browser.rendered .theme:hover .more-details, 6492 .theme-browser.rendered .theme .more-details:focus { 6491 6493 opacity: 1; 6492 6494 } 6493 6495 6496 6494 6497 /** 6495 6498 * Displays a theme update notice 6496 6499 * when an update is available. -
src/wp-admin/js/theme.js
188 188 189 189 events: { 190 190 'click': 'expand', 191 'click': 'preventDefault', 191 192 'touchend': 'expand', 192 193 'touchmove': 'preventExpand' 193 194 }, … … 235 236 this.trigger( 'theme:expand', self.model.cid ); 236 237 }, 237 238 239 preventDefault: function( event ) { 240 event.preventDefault(); 241 this.expand(); 242 243 }, 244 238 245 preventExpand: function() { 239 246 this.touchDrag = true; 240 247 } … … 487 494 // Binds to theme:expand to show the modal box 488 495 // with the theme details 489 496 self.listenTo( self.theme, 'theme:expand', self.expand, self ); 497 self.listenTo( self.theme, 'theme:expand', self.expand, self ); 490 498 }); 491 499 492 500 // 'Add new theme' element shown at the end of the grid … … 735 743 }; 736 744 737 745 $(window).resize(function(){ tb_position(); }); 746 747 748 // Hacky Hack to make theme actions available via keyboard navigation 749 $('.theme-browser .theme .theme-actions a').on('focus', function(){ 750 if ( $(this).parent().parent().hasClass('active') === false ) { 751 $(this).parent().css('opacity', '1') 752 } 753 }); 754 $('.theme-browser .theme .theme-actions a').on('blur', function(){ 755 console.log( $(this).parent().parent().hasClass('active') ) 756 if ( $(this).parent().parent().hasClass('active') === false ) { 757 $(this).parent().css('opacity', '0') 758 } 759 }); 760 738 761 }); -
src/wp-admin/themes.php
200 200 <?php } else { ?> 201 201 <div class="theme-screenshot blank"></div> 202 202 <?php } ?> 203 < span class="more-details"><?php _e( 'Theme Details' ); ?></span>203 <a class="more-details" href="#"><?php _e( 'Theme Details' ); ?></a> 204 204 <div class="theme-author"><?php printf( __( 'By %s' ), $theme['author'] ); ?></div> 205 205 206 206 <?php if ( $theme['active'] ) { ?> … … 277 277 <# } else { #> 278 278 <div class="theme-screenshot blank"></div> 279 279 <# } #> 280 < span class="more-details"><?php _e( 'Theme Details' ); ?></span>280 <a class="more-details" href="#"><?php _e( 'Theme Details' ); ?></a> 281 281 <div class="theme-author"><?php printf( __( 'By %s' ), '{{{ data.author }}}' ); ?></div> 282 282 283 283 <# if ( data.active ) { #>