WordPress.org

Make WordPress Core

Ticket #21368: 21368-welcome-panel-css.diff

File 21368-welcome-panel-css.diff, 3.3 KB (added by TobiasBg, 8 years ago)

Optimize and Shorten welcome panel icon CSS

  • wp-admin/css/wp-admin.css

    html.wp-toolbar { 
    23212321        margin-top: 7px;
    23222322}
    23232323
     2324.welcome-panel .welcome-add-page,
     2325.welcome-panel .welcome-edit-page,
     2326.welcome-panel .welcome-learn-more,
     2327.welcome-panel .welcome-comments,
     2328.welcome-panel .welcome-view-site,
     2329.welcome-panel .welcome-widgets-menus,
     2330.welcome-panel .welcome-write-blog {
     2331        background-image: url(../images/welcome-icons.png);
     2332        background-repeat: no-repeat;
     2333        background-size: 16px;
     2334        display: block;
     2335        padding: 2px 0 8px 32px;
     2336}
     2337
    23242338.welcome-panel .welcome-add-page {
    2325         background: url('../images/welcome-icons.png') no-repeat 0 -1px;
     2339        background-position: 0 -1px;
    23262340}
    23272341
    23282342.welcome-panel .welcome-edit-page {
    2329         background: url('../images/welcome-icons.png') no-repeat 0px -92px;
     2343        background-position: 0px -92px;
    23302344}
    23312345
    23322346.welcome-panel .welcome-learn-more {
    2333         background: url('../images/welcome-icons.png') no-repeat 0px -138px;
     2347        background-position: 0px -138px;
    23342348}
    23352349
    23362350.welcome-panel .welcome-comments {
    2337         background: url('../images/welcome-icons.png') no-repeat 0px -184px;
     2351        background-position: 0px -184px;
    23382352}
    23392353
    23402354.welcome-panel .welcome-view-site {
    2341         background: url('../images/welcome-icons.png') no-repeat 0px -276px;
     2355        background-position: 0px -276px;
    23422356}
    23432357
    23442358.welcome-panel .welcome-widgets-menus {
    2345         background: url('../images/welcome-icons.png') no-repeat 1px -230px;
     2359        background-position: 1px -230px;
    23462360        line-height: 14px;
    23472361}
    23482362
    23492363.welcome-panel .welcome-write-blog {
    2350         background: url('../images/welcome-icons.png') no-repeat 0px -46px;
    2351 }
    2352 
    2353 .welcome-panel .welcome-add-page,
    2354 .welcome-panel .welcome-edit-page,
    2355 .welcome-panel .welcome-learn-more,
    2356 .welcome-panel .welcome-comments,
    2357 .welcome-panel .welcome-view-site,
    2358 .welcome-panel .welcome-widgets-menus,
    2359 .welcome-panel .welcome-write-blog {
    2360         background-size: 16px;
    2361         display: block;
    2362         padding: 2px 0 8px 32px;
     2364        background-position: 0px -46px;
    23632365}
    23642366
    23652367@media only screen and (-webkit-min-device-pixel-ratio: 1.5) {
    2366         .welcome-panel .welcome-add-page {
    2367                 background: url('../images/welcome-icons-2x.png') no-repeat 0 -1px;
    2368                 background-size: 16px;
    2369         }
    2370 
    2371         .welcome-panel .welcome-edit-page {
    2372                 background: url('../images/welcome-icons-2x.png') no-repeat 0px -92px;
    2373                 background-size: 16px;
    2374         }
    2375 
    2376         .welcome-panel .welcome-learn-more {
    2377                 background: url('../images/welcome-icons-2x.png') no-repeat 0px -138px;
    2378                 background-size: 16px;
    2379         }
    2380 
    2381         .welcome-panel .welcome-comments {
    2382                 background: url('../images/welcome-icons-2x.png') no-repeat 0px -184px;
    2383                 background-size: 16px;
    2384         }
    2385 
    2386         .welcome-panel .welcome-view-site {
    2387                 background: url('../images/welcome-icons-2x.png') no-repeat 0px -276px;
    2388                 background-size: 16px;
    2389         }
    2390 
    2391         .welcome-panel .welcome-widgets-menus {
    2392                 background: url('../images/welcome-icons-2x.png') no-repeat 1px -230px;
    2393                 background-size: 16px;
    2394         }
    2395 
     2368        .welcome-panel .welcome-add-page,
     2369        .welcome-panel .welcome-edit-page,
     2370        .welcome-panel .welcome-learn-more,
     2371        .welcome-panel .welcome-comments,
     2372        .welcome-panel .welcome-view-site,
     2373        .welcome-panel .welcome-widgets-menus,
    23962374        .welcome-panel .welcome-write-blog {
    2397                 background: url('../images/welcome-icons-2x.png') no-repeat 0px -46px;
    2398                 background-size: 16px;
     2375                background-image: url(../images/welcome-icons-2x.png);
    23992376        }
    24002377}
    24012378