Changeset 1249
- Timestamp:
- 02/10/2015 10:16:17 PM (10 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/content-single.php
r1240 r1249 67 67 <span class="counter-bar" style="width: <?php echo 92 * ( $rate_count / $theme->num_ratings ); ?>px;"></span> 68 68 </span> 69 <span class="counter-count"><?php echo $rate_count; ?></span> 69 70 </a> 70 <span class="counter-count"><?php echo $rate_count; ?></span>71 71 </div> 72 72 <?php -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/js/theme.js
r1247 r1249 357 357 }); 358 358 }); 359 }, 360 361 // Keeps :focus within the theme details elements. 362 containFocus: function( $el ) { 363 var $target; 364 365 // Move focus to the primary action 366 _.delay( function() { 367 $( '.theme-wrap a.button-primary:visible' ).focus(); 368 }, 500 ); 369 370 $el.on( 'keydown.wp-themes', function( event ) { 371 372 // Tab key 373 if ( event.which === 9 ) { 374 $target = $( event.target ); 375 376 // Keep focus within the overlay by making the last link on theme actions 377 // switch focus to button.left on tabbing and vice versa 378 if ( $target.is( 'button.close' ) && event.shiftKey ) { 379 $el.find( '.theme-tags a:last-child' ).focus(); 380 event.preventDefault(); 381 } else if ( $target.is( '.theme-tags a:last-child' ) ) { 382 $el.find( 'button.close' ).focus(); 383 event.preventDefault(); 384 } 385 } 386 }); 359 387 } 360 388 }); -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/style.css
r1248 r1249 191 191 margin-right: 7%; 192 192 } 193 193 .theme-wrap .theme-ratings .counter-container, 194 .theme-wrap .theme-ratings .counter-container a { 195 display: inline-block; 196 } 197 .theme-wrap .theme-ratings .counter-label, 198 .theme-wrap .theme-ratings .counter-count { 199 line-height: 1.75; 200 } 194 201 .theme-wrap .theme-ratings .counter-label { 195 202 float: left; … … 209 216 } 210 217 .theme-wrap .theme-ratings .counter-count { 218 float: right; 211 219 margin-left: 5px; 212 220 } -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/view-templates/theme-single.php
r1238 r1249 61 61 <span class="counter-bar" style="width: {{ 92 * data.ratings[5] / data.num_ratings }}px;"></span> 62 62 </span> 63 <span class="counter-count">{{ data.ratings[5] }}</span> 63 64 </a> 64 <span class="counter-count">{{ data.ratings[5] }}</span>65 65 </div> 66 66 <div class="counter-container"> … … 70 70 <span class="counter-bar" style="width: {{ 92 * data.ratings[4] / data.num_ratings }}px;"></span> 71 71 </span> 72 <span class="counter-count">{{ data.ratings[4] }}</span> 72 73 </a> 73 <span class="counter-count">{{ data.ratings[4] }}</span>74 74 </div> 75 75 <div class="counter-container"> … … 88 88 <span class="counter-bar" style="width: {{ 92 * data.ratings[2] / data.num_ratings }}px;"></span> 89 89 </span> 90 <span class="counter-count">{{ data.ratings[2] }}</span> 90 91 </a> 91 <span class="counter-count">{{ data.ratings[2] }}</span>92 92 </div> 93 93 <div class="counter-container"> … … 97 97 <span class="counter-bar" style="width: {{ 92 * data.ratings[1] / data.num_ratings }}px;"></span> 98 98 </span> 99 <span class="counter-count">{{ data.ratings[1] }}</span> 99 100 </a> 100 <span class="counter-count">{{ data.ratings[1] }}</span>101 101 </div> 102 102 <# } #>
Note: See TracChangeset
for help on using the changeset viewer.