Skip to:
Content

bbPress.org

Changeset 4051


Ignore:
Timestamp:
07/03/2012 07:21:59 PM (13 years ago)
Author:
johnjamesjacoby
Message:

HiDPI:

  • Add 2x icons for icon32's.
  • Fixes #1839.
Location:
branches/plugin/bbp-admin
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbp-admin/bbp-admin.php

    r4018 r4051  
    539539
    540540            /* Icon 32 */
    541             #icon-edit.icon32-posts-<?php echo $forum_class; ?> {
    542                 background: url('<?php echo $icon32_url; ?>') no-repeat -4px 0px;
     541            #icon-edit.icon32-posts-<?php echo $forum_class; ?>,
     542            #icon-edit.icon32-posts-<?php echo $topic_class; ?>,
     543            #icon-edit.icon32-posts-<?php echo $reply_class; ?> {
     544                background: url('<?php echo $icon32_url; ?>');
     545                background-repeat: no-repeat;
     546            }
     547
     548            /* Icon Positions */
     549            #icon-edit.icon32-posts-<?php echo $reply_class; ?> {
     550                background-position: -4px 0px;
    543551            }
    544552
    545553            #icon-edit.icon32-posts-<?php echo $topic_class; ?> {
    546                 background: url('<?php echo $icon32_url; ?>') no-repeat -4px -90px;
     554                background-position: -4px -90px;
    547555            }
    548556
    549557            #icon-edit.icon32-posts-<?php echo $reply_class; ?> {
    550                 background: url('<?php echo $icon32_url; ?>') no-repeat -4px -180px;
     558                background-position: -4px -180px;
     559            }
     560
     561            /* Icon 32 2x */
     562            @media only screen and (-webkit-min-device-pixel-ratio: 1.5) {
     563                #icon-edit.icon32-posts-<?php echo $forum_class; ?>,
     564                #icon-edit.icon32-posts-<?php echo $topic_class; ?>,
     565                #icon-edit.icon32-posts-<?php echo $reply_class; ?> {
     566                    background: url('<?php echo $icon32_url_2x; ?>');
     567                    background-size: 45px 255px;
     568                }
    551569            }
    552570
Note: See TracChangeset for help on using the changeset viewer.