Make WordPress Core

Ticket #29466: 29466.diff

File 29466.diff, 3.2 KB (added by helen, 12 years ago)
  • src/wp-admin/css/list-tables.css

     
    13021302}
    13031303
    13041304.plugin-card-top {
     1305        position: relative;
    13051306        padding: 20px 20px 10px;
    1306         min-height: 115px; /* 2 lines for the description + author */
     1307        min-height: 135px;
    13071308}
    13081309
    13091310div.action-links,
     
    13161317        font-size: 18px;
    13171318}
    13181319
     1320.plugin-card .name,
     1321.plugin-card .desc {
     1322        margin-left: 148px; /* icon + margin */
     1323        margin-right: 120px; /* action links */
     1324}
     1325
     1326.plugin-card .action-links {
     1327        position: absolute;
     1328        top: 20px;
     1329        right: 20px;
     1330        width: 120px;
     1331}
     1332
    13191333.plugin-action-buttons {
    13201334        clear: right;
    13211335        float: right;
     
    13801394        text-decoration: none !important;
    13811395        color: #444;
    13821396}
     1397
    13831398.plugin-card .compatibility-incompatible:before {
    13841399        content: '\f158';
    13851400}
     
    13931408}
    13941409
    13951410.plugin-icon {
     1411        position: absolute;
     1412        top: 20px;
     1413        left: 20px;
    13961414        width: 128px;
    13971415        height: 128px;
    1398         float: left;
    13991416        margin: 0 20px 20px 0;
    14001417}
    14011418
     1419.plugin-icon img {
     1420        width: 128px;
     1421        height: 128px;
     1422}
     1423
    14021424.no-plugin-results {
    14031425        color: #999;
    14041426        font-size: 18px;
     
    14261448/* =Media Queries
    14271449-------------------------------------------------------------- */
    14281450
    1429 /**
    1430  * HiDPI Displays
    1431  */
     1451@media screen and ( max-width: 1100px ) and ( min-width: 782px ), ( max-width: 480px ) {
     1452        .plugin-card .action-links {
     1453                position: static;
     1454                margin-left: 148px;
     1455                width: auto;
     1456        }
     1457
     1458        .plugin-action-buttons {
     1459                float: none;
     1460                margin: 1em 0 0;
     1461                text-align: left;
     1462        }
     1463
     1464        .plugin-action-buttons li {
     1465                display: inline-block;
     1466                vertical-align: middle;
     1467        }
     1468
     1469        .plugin-action-buttons li .button {
     1470                margin-right: 20px;
     1471        }
     1472
     1473        .plugin-card .name,
     1474        .plugin-card .desc {
     1475                margin-right: 0;
     1476        }
     1477
     1478        .plugin-card .desc p:first-of-type {
     1479                margin-top: 0;
     1480        }
     1481}
     1482
    14321483@media screen and ( max-width: 782px ) {
    14331484        /* WP List Table Options & Filters */
    14341485        .tablenav {
  • src/wp-admin/includes/class-wp-plugin-install-list-table.php

     
    435435                ?>
    436436                <div class="plugin-card">
    437437                        <div class="plugin-card-top">
    438                                 <a href="<?php echo esc_url( $details_link ); ?>" class="thickbox"><img src="<?php echo esc_attr( $plugin_icon_url ) ?>" class="plugin-icon" /></a>
     438                                <a href="<?php echo esc_url( $details_link ); ?>" class="thickbox plugin-icon"><img src="<?php echo esc_attr( $plugin_icon_url ) ?>" /></a>
     439                                <div class="name column-name">
     440                                        <h4><a href="<?php echo esc_url( $details_link ); ?>" class="thickbox"><?php echo $title; ?></a></h4>
     441                                </div>
    439442                                <div class="action-links">
    440443                                        <?php
    441444                                                if ( $action_links ) {
     
    443446                                                }
    444447                                        ?>
    445448                                </div>
    446                                 <div class="name column-name">
    447                                         <h4><a href="<?php echo esc_url( $details_link ); ?>" class="thickbox"><?php echo $title; ?></a></h4>
    448                                 </div>
    449449                                <div class="desc column-description">
    450450                                        <p><?php echo $description; ?></p>
    451451                                        <p class="authors"><?php echo $author; ?></p>