WordPress.org

Plugin Directory

Changeset 568235


Ignore:
Timestamp:
07/06/12 11:06:54 (22 months ago)
Author:
hugobaeta
Message:

updated jetpack.php to include retinized version of the menu icon

File:
1 edited

Legend:

Unmodified
Added
Removed
  • jetpack/trunk/jetpack.php

    r567947 r568235  
    12461246    function admin_menu_css() { ?> 
    12471247        <style type="text/css" id="jetpack-menu-css"> 
    1248             #toplevel_page_jetpack .wp-menu-image img { visibility: hidden; } 
    1249             #toplevel_page_jetpack .wp-menu-image { background: url( <?php echo plugins_url( basename( dirname( __FILE__ ) ) . '/_inc/images/jp-icon.png' ) ?> ) 0 90% no-repeat; } 
    1250             #toplevel_page_jetpack.current .wp-menu-image, #toplevel_page_jetpack.wp-has-current-submenu .wp-menu-image, #toplevel_page_jetpack:hover .wp-menu-image { background-position: top left; } 
     1248            #toplevel_page_jetpack .wp-menu-image img {  
     1249                visibility: hidden;  
     1250            } 
     1251            #toplevel_page_jetpack .wp-menu-image {  
     1252                background: url( <?php echo plugins_url( basename( dirname( __FILE__ ) ) . '/_inc/images/menuicon-sprite.png' ) ?> ) 0 90% no-repeat;  
     1253            } 
     1254            /* Retina Jetpack Menu Icon */ 
     1255            @media only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-device-pixel-ratio: 1.5) { 
     1256                #toplevel_page_jetpack .wp-menu-image {  
     1257                    background: url( <?php echo plugins_url( basename( dirname( __FILE__ ) ) . '/_inc/images/menuicon-sprite-2x.png' ) ?> ) 0 90% no-repeat; 
     1258                    background-size:30px 64px; 
     1259                } 
     1260            } 
     1261            #toplevel_page_jetpack.current .wp-menu-image,  
     1262            #toplevel_page_jetpack.wp-has-current-submenu .wp-menu-image,  
     1263            #toplevel_page_jetpack:hover .wp-menu-image {  
     1264                background-position: top left;  
     1265            } 
    12511266        </style><?php 
    12521267    } 
Note: See TracChangeset for help on using the changeset viewer.