Making WordPress.org

Changeset 4514


Ignore:
Timestamp:
12/12/2016 03:57:52 AM (8 years ago)
Author:
tellyworth
Message:

Plugin directory: fix high res banners and icons in Firefox. Thanks @jsmoriss.

Fixes #2322.

File:
1 edited

Legend:

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

    r4505 r4514  
    268268                $html .= "#{$id} { background-image: url('{$icon}'); } .plugin-icon { background-size: cover; height: 128px; width: 128px; }";
    269269                if ( ! empty( $icon_2x ) && ! $generated ) {
    270                     $html .= "@media only screen and (-webkit-min-device-pixel-ratio: 1.5) { #{$id} { background-image: url('{$icon_2x}'); } }";
     270                    $html .= "@media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-resolution: 144dpi) { #{$id} { background-image: url('{$icon_2x}'); } }";
    271271                }
    272272                $html .= "</style>";
     
    340340                $html .= "#{$id} { background-image: url('{$banner}'); }";
    341341                if ( ! empty( $banner_2x ) ) {
    342                     $html .= "@media only screen and (-webkit-min-device-pixel-ratio: 1.5) { #{$id} { background-image: url('{$banner_2x}'); } }";
     342                    $html .= "@media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-resolution: 144dpi) { #{$id} { background-image: url('{$banner_2x}'); } }";
    343343                }
    344344                $html .= "</style>";
Note: See TracChangeset for help on using the changeset viewer.