Make WordPress Core

Changeset 53731


Ignore:
Timestamp:
07/20/2022 02:37:26 PM (22 months ago)
Author:
desrosj
Message:

Administration: Remove unused CSS selectors related to old format menu icons.

This removes all CSS definitions related to the .icon16 class. Research shows that current ecosystem usage of this class is extremely minimal.

This selector was used for the Welcome Panel and Welcome Screen in WordPress 3.3 (see [19163] and [19197]. The icons were removed for WordPress 3.5 in [22018], but the related CSS remained, and were also included when the MP6 admin re-skinning was merged in [26072].

Props afercia, mmaumio, isabel_brison, sabernhardt, audrasjb, desrosj.
Fixes #35717.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/admin-menu.css

    r51727 r53731  
    3737}
    3838
    39 .icon16 {
    40     height: 18px;
    41     width: 18px;
    42     padding: 6px;
    43     margin: -6px 0 0 -8px;
    44     float: left;
    45 }
    46 
    4739/* New Menu icons */
    4840
    49 .icon16:before {
    50     color: #8c8f94; /* same as new icons */
    51     font: normal 20px/1 dashicons;
    52     speak: never;
    53     padding: 6px 0;
    54     height: 34px;
    55     width: 20px;
    56     display: inline-block;
    57     -webkit-font-smoothing: antialiased;
    58     -moz-osx-font-smoothing: grayscale;
    59     transition: all .1s ease-in-out;
    60 }
    61 
    62 .icon16.icon-dashboard:before {
    63     content: "\f226";
    64 }
    65 
    66 .icon16.icon-post:before {
    67     content: "\f109";
    68 }
    69 
    70 .icon16.icon-media:before {
    71     content: "\f104";
    72 }
    73 
    74 .icon16.icon-links:before {
    75     content: "\f103";
    76 }
    77 
    78 .icon16.icon-page:before {
    79     content: "\f105";
    80 }
    81 
    82 .icon16.icon-comments:before {
    83     content: "\f101";
    84     margin-top: 1px;
    85 }
    86 
    87 .icon16.icon-appearance:before {
    88     content: "\f100";
    89 }
    90 
    91 .icon16.icon-plugins:before {
    92     content: "\f106";
    93 }
    94 
    95 .icon16.icon-users:before {
    96     content: "\f110";
    97 }
    98 
    99 .icon16.icon-tools:before {
    100     content: "\f107";
    101 }
    102 
    103 .icon16.icon-settings:before {
    104     content: "\f108";
    105 }
    106 
    107 .icon16.icon-site:before {
    108     content: "\f541";
    109 }
    110 
    111 .icon16.icon-generic:before {
    112     content: "\f111";
    113 }
    114 
    11541/* hide background-image for icons above */
    116 .icon16.icon-dashboard,
    11742.menu-icon-dashboard div.wp-menu-image,
    118 .icon16.icon-post,
    11943.menu-icon-post div.wp-menu-image,
    120 .icon16.icon-media,
    12144.menu-icon-media div.wp-menu-image,
    122 .icon16.icon-links,
    12345.menu-icon-links div.wp-menu-image,
    124 .icon16.icon-page,
    12546.menu-icon-page div.wp-menu-image,
    126 .icon16.icon-comments,
    12747.menu-icon-comments div.wp-menu-image,
    128 .icon16.icon-appearance,
    12948.menu-icon-appearance div.wp-menu-image,
    130 .icon16.icon-plugins,
    13149.menu-icon-plugins div.wp-menu-image,
    132 .icon16.icon-users,
    13350.menu-icon-users div.wp-menu-image,
    134 .icon16.icon-tools,
    13551.menu-icon-tools div.wp-menu-image,
    136 .icon16.icon-settings,
    13752.menu-icon-settings div.wp-menu-image,
    138 .icon16.icon-site,
    13953.menu-icon-site div.wp-menu-image,
    140 .icon16.icon-generic,
    14154.menu-icon-generic div.wp-menu-image {
    14255    background-image: none !important;
Note: See TracChangeset for help on using the changeset viewer.