Ticket #29466: 29466.diff
| File 29466.diff, 3.2 KB (added by , 12 years ago) |
|---|
-
src/wp-admin/css/list-tables.css
1302 1302 } 1303 1303 1304 1304 .plugin-card-top { 1305 position: relative; 1305 1306 padding: 20px 20px 10px; 1306 min-height: 1 15px; /* 2 lines for the description + author */1307 min-height: 135px; 1307 1308 } 1308 1309 1309 1310 div.action-links, … … 1316 1317 font-size: 18px; 1317 1318 } 1318 1319 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 1319 1333 .plugin-action-buttons { 1320 1334 clear: right; 1321 1335 float: right; … … 1380 1394 text-decoration: none !important; 1381 1395 color: #444; 1382 1396 } 1397 1383 1398 .plugin-card .compatibility-incompatible:before { 1384 1399 content: '\f158'; 1385 1400 } … … 1393 1408 } 1394 1409 1395 1410 .plugin-icon { 1411 position: absolute; 1412 top: 20px; 1413 left: 20px; 1396 1414 width: 128px; 1397 1415 height: 128px; 1398 float: left;1399 1416 margin: 0 20px 20px 0; 1400 1417 } 1401 1418 1419 .plugin-icon img { 1420 width: 128px; 1421 height: 128px; 1422 } 1423 1402 1424 .no-plugin-results { 1403 1425 color: #999; 1404 1426 font-size: 18px; … … 1426 1448 /* =Media Queries 1427 1449 -------------------------------------------------------------- */ 1428 1450 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 1432 1483 @media screen and ( max-width: 782px ) { 1433 1484 /* WP List Table Options & Filters */ 1434 1485 .tablenav { -
src/wp-admin/includes/class-wp-plugin-install-list-table.php
435 435 ?> 436 436 <div class="plugin-card"> 437 437 <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> 439 442 <div class="action-links"> 440 443 <?php 441 444 if ( $action_links ) { … … 443 446 } 444 447 ?> 445 448 </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>449 449 <div class="desc column-description"> 450 450 <p><?php echo $description; ?></p> 451 451 <p class="authors"><?php echo $author; ?></p>