Changeset 4514
- Timestamp:
- 12/12/2016 03:57:52 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-template.php
r4505 r4514 268 268 $html .= "#{$id} { background-image: url('{$icon}'); } .plugin-icon { background-size: cover; height: 128px; width: 128px; }"; 269 269 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}'); } }"; 271 271 } 272 272 $html .= "</style>"; … … 340 340 $html .= "#{$id} { background-image: url('{$banner}'); }"; 341 341 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}'); } }"; 343 343 } 344 344 $html .= "</style>";
Note: See TracChangeset
for help on using the changeset viewer.