Make WordPress Core

Changeset 29021


Ignore:
Timestamp:
07/08/2014 12:32:29 AM (10 years ago)
Author:
johnbillion
Message:

Narrower layout and loading spinner for the install screen language selector. See #28577

Location:
trunk/src/wp-admin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/install.css

    r29020 r29021  
    314314
    315315body.language-chooser {
    316     max-width: 450px;
     316    max-width: 300px;
    317317}
    318318
     
    382382}
    383383
    384 }
     384.spinner {
     385    background: url(../images/spinner.gif) no-repeat;
     386    -webkit-background-size: 20px 20px;
     387    background-size: 20px 20px;
     388    visibility: hidden;
     389    opacity: 0.7;
     390    filter: alpha(opacity=70);
     391    width: 20px;
     392    height: 20px;
     393    margin: 2px 5px 0;
     394}
     395
     396.step .spinner {
     397    display: inline-block;
     398    margin-right: 15px;
     399}
     400
     401/**
     402 * HiDPI Displays
     403 */
     404@media print,
     405  (-o-min-device-pixel-ratio: 5/4),
     406  (-webkit-min-device-pixel-ratio: 1.25),
     407  (min-resolution: 120dpi) {
     408
     409    .spinner {
     410        background-image: url(../images/spinner-2x.gif);
     411    }
     412
     413}
  • trunk/src/wp-admin/includes/upgrade.php

    r29020 r29021  
    21802180    }
    21812181    echo "</fieldset>\n";
    2182     echo '<p class="step"><input type="submit" class="button button-primary button-hero" value="&raquo;" /></p>';
     2182    echo '<p class="step"><span class="spinner"></span><input type="submit" class="button button-primary button-hero" value="&raquo;" /></p>';
    21832183}
    21842184
  • trunk/src/wp-admin/js/language-chooser.js

    r29020 r29021  
    3737    });
    3838
     39    $('form').submit(function(){
     40        $(this).find('.step .spinner').css('visibility','visible');
     41    });
     42
    3943})(jQuery);
Note: See TracChangeset for help on using the changeset viewer.