Make WordPress Core

Ticket #27521: 27521.7.diff

File 27521.7.diff, 5.0 KB (added by jorbin, 11 years ago)
  • src/wp-admin/css/colors/_admin.scss

     
    439439
    440440body.more-filters-opened .more-filters,
    441441body.more-filters-opened .more-filters:before {
     442        color: $menu-text;
     443        background-color: $menu-background;
     444}
     445
     446body.more-filters-opened .more-filters:hover,
     447body.more-filters-opened .more-filters:focus,
     448body.more-filters-opened .more-filters:hover:before,
     449body.more-filters-opened .more-filters:focus:before {
     450        background-color: $menu-highlight-background;
    442451        color: $menu-highlight-text;
    443         background-color: $menu-highlight-background;
    444452}
    445453
     454
    446455/* jQuery UI Slider */
    447456
    448457.wp-slider .ui-slider-handle,
  • src/wp-admin/css/themes.css

     
    4040        top: -3px;
    4141}
    4242
     43.theme-navigation a{
     44        text-decoration:none;
     45}
     46
    4347/* Position admin messages */
    4448.themes-php div.updated,
    4549.themes-php div.error {
     
    11631167}
    11641168body.more-filters-opened .more-filters,
    11651169body.more-filters-opened .more-filters:before {
    1166         background: rgb(46, 162, 204);
     1170        background: #777;
    11671171        -webkit-border-radius: 2px;
    11681172        border-radius: 2px;
    11691173        border: none;
    11701174        color: #fff;
     1175        -moz-transition: color .1s ease-in, background .1s ease-in;
     1176        -webkit-transition: color .1s ease-in, background .1s ease-in;
     1177        transition: color .1s ease-in, background .1s ease-in;
    11711178}
     1179
     1180body.more-filters-opened .more-filters:hover,
     1181body.more-filters-opened .more-filters:focus,
     1182body.more-filters-opened .more-filters:hover:before,
     1183body.more-filters-opened .more-filters:focus:before {
     1184        background: rgb(46, 162, 204);
     1185}
     1186
    11721187.theme-install-php .theme-search {
    11731188        position: absolute;
    11741189        right: 10px;
  • src/wp-admin/js/theme.js

     
    269269        expand: function( event ) {
    270270                var self = this;
    271271
     272
    272273                event = event || window.event;
    273274
    274275                // 'enter' and 'space' keys expand the details view when a theme is :focused
     
    303304                        return this.touchDrag = false;
    304305                }
    305306
     307                // 'enter' and 'space' keys expand the details view when a theme is :focused
     308                if ( event.type === 'keydown' && ( event.which !== 13 && event.which !== 32 ) ) {
     309                        return;
     310                }
     311
    306312                event.preventDefault();
    307313
    308314                event = event || window.event;
     
    799805        search: function( event ) {
    800806                var options = {};
    801807
     808
    802809                // Clear on escape.
    803810                if ( event.type === 'keyup' && event.which === 27 ) {
    804811                        event.target.value = '';
     
    932939
    933940        // Handles Ajax request for searching through themes in public repo
    934941        search: function( event ) {
     942
     943                // Tabbing into the search input shouldn't trigger a search
     944                if ( event.type === 'keyup' && event.which === 9 ) {
     945                        return;
     946                }
     947
    935948                this.collection = this.options.parent.view.collection;
    936949
    937950                // Clear on escape.
     
    10851098                var $el = $( event.target ),
    10861099                        sort = $el.data( 'sort' );
    10871100
     1101                // links that trigger sort have a # as the href, we don't want to add that to the url
     1102                event.preventDefault();
     1103
    10881104                // Bail if this is already active
    10891105                if ( $el.hasClass( this.activeClass ) ) {
    10901106                        return;
  • src/wp-admin/theme-install.php

     
    104104<div class="wrap">
    105105        <h2>
    106106                <?php echo esc_html( $title ); ?>
    107                 <a class="upload add-new-h2"><?php _e( 'Upload Theme' ); ?></a>
    108                 <a class="browse-themes add-new-h2"><?php _ex( 'Browse', 'themes' ); ?></a>
     107                <a href="#" class="upload add-new-h2"><?php _e( 'Upload Theme' ); ?></a>
     108                <a href="#" class="browse-themes add-new-h2"><?php _ex( 'Browse', 'themes' ); ?></a>
    109109        </h2>
    110110
    111111        <div class="upload-theme">
     
    114114
    115115        <div class="theme-navigation">
    116116                <span class="theme-count"></span>
    117                 <span class="theme-section current" data-sort="featured"><?php _ex( 'Featured', 'themes' ); ?></span>
    118                 <span class="theme-section" data-sort="popular"><?php _ex( 'Popular', 'themes' ); ?></span>
    119                 <span class="theme-section" data-sort="new"><?php _ex( 'Latest', 'themes' ); ?></span>
     117                <a class="theme-section current" href="#" data-sort="featured"><?php _ex( 'Featured', 'themes' ); ?></a>
     118                <a class="theme-section" href="#" data-sort="popular"><?php _ex( 'Popular', 'themes' ); ?></a>
     119                <a class="theme-section" href="#" data-sort="new"><?php _ex( 'Latest', 'themes' ); ?></a>
    120120                <div class="theme-top-filters">
    121121                        <!--<span class="theme-filter" data-filter="photoblogging">Photography</span>
    122122                        <span class="theme-filter" data-filter="responsive-layout">Responsive</span>-->
    123                         <span class="more-filters"><?php _e( 'Feature Filter' ); ?></span>
     123                        <a class="more-filters" href="#"><?php _e( 'Feature Filter' ); ?></a>
    124124                </div>
    125125                <div class="more-filters-container">
    126126                <?php