WordPress.org

Making WordPress.org


Ignore:
Timestamp:
06/17/2016 09:04:33 AM (3 years ago)
Author:
obenland
Message:

Plugin Directory: Make icon size easier to override.

See #1719.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-template.php

    r3395 r3399  
    238238                $id   = "plugin-icon-{$plugin_slug}";
    239239                $html = "<style type='text/css'>";
    240                 $html .= "#{$id} { width:128px; height:128px; background-image: url('{$icon}'); background-size:128px 128px; }";
     240                $html .= "#{$id} { background-image: url('{$icon}'); } .plugin-icon { background-size: 128px 128px; height: 128px; width: 128px; }";
    241241                if ( ! empty( $icon_2x ) && ! $generated ) {
    242242                    $html .= "@media only screen and (-webkit-min-device-pixel-ratio: 1.5) { #{$id} { background-image: url('{$icon_2x}'); } }";
Note: See TracChangeset for help on using the changeset viewer.