Make WordPress Core

Ticket #29372: masonry.diff

File masonry.diff, 1.9 KB (added by MikeHansenMe, 11 years ago)
  • src/wp-admin/plugin-install.php

     
    2929$title = __('Install Plugins');
    3030$parent_file = 'plugins.php';
    3131
     32wp_enqueue_script( 'masonry' );
    3233wp_enqueue_script( 'plugin-install' );
    3334if ( 'plugin-information' != $tab )
    3435        add_thickbox();
  • src/wp-admin/css/list-tables.css

     
    12341234        float: left;
    12351235        margin: 0 8px 16px;
    12361236        width: 48.5%;
    1237         width: -webkit-calc( 50% - 8px );
    1238         width: calc( 50% - 8px );
     1237        width: -webkit-calc( 49.3% - 8px );
     1238        width: calc( 49.3% - 8px );
    12391239        background-color: #fff;
    12401240        border: 1px solid #dedede;
    12411241        -webkit-box-sizing: border-box;
    12421242        -moz-box-sizing: border-box;
    12431243        box-sizing: border-box;
    12441244}
    1245 
     1245/*
    12461246.plugin-card:nth-child(odd) {
    12471247        clear: both;
    12481248        margin-left: 0;
     
    12511251.plugin-card:nth-child(even) {
    12521252        margin-right: 0;
    12531253}
    1254 
     1254*/
    12551255@media screen and ( min-width: 1600px ) {
    12561256        .plugin-card {
    12571257                width: 30%;
    1258                 width: -webkit-calc( 33.1% - 8px );
    1259                 width: calc( 33.1% - 8px );
     1258                width: -webkit-calc( 32.8% - 8px );
     1259                width: calc( 32.8% - 8px );
    12601260        }
    1261 
     1261/*
    12621262        .plugin-card:nth-child(odd) {
    12631263                clear: none;
    12641264                margin-left: 8px;
     
    12761276        .plugin-card:nth-child(3n) {
    12771277                margin-right: 0;
    12781278        }
     1279*/
    12791280}
    12801281
    12811282@media screen and ( max-width: 782px ) {
  • src/wp-admin/js/plugin-install.js

     
    7373        $( 'a.install-now' ).click( function() {
    7474                return confirm( plugininstallL10n.ays );
    7575        });
     76
     77        $( '#the-list' ).masonry( {
     78                itemSelector: '.plugin-card',
     79        } );
     80
    7681});