Make WordPress Core

Changeset 35894


Ignore:
Timestamp:
12/13/2015 12:00:12 PM (9 years ago)
Author:
afercia
Message:

Dashboard: remove not clickable spaces between icons and links in the "At a Glance" panel. Also, some CSS cleanup.

Props 5um17 for the initial patch.
Fixes #27813.

File:
1 edited

Legend:

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

    r35469 r35894  
    5656    min-height: 0;
    5757}
    58 
    59 /*------------------------------------------------------------------------------
    60   9.0 - Dashboard
    61 ------------------------------------------------------------------------------*/
    6258
    6359#dashboard-widgets-wrap {
     
    204200}
    205201
     202.welcome-panel .welcome-widgets-menus {
     203    line-height: 16px;
     204}
     205
     206.welcome-panel .welcome-panel-column ul {
     207    margin: 0.8em 1em 1em 0;
     208}
     209
     210.welcome-panel .welcome-panel-column li {
     211    line-height: 16px;
     212    list-style-type: none;
     213    padding: 0 0 8px;
     214}
     215
    206216.welcome-panel .welcome-icon {
    207217    background: transparent !important;
    208218}
    209219
    210 .welcome-panel .welcome-icon:before {
     220/* Welcome Panel and Right Now common Icons style */
     221
     222.welcome-panel .welcome-icon:before,
     223#dashboard_right_now li a:before,
     224#dashboard_right_now li span:before {
    211225    color: #82878c;
    212226    font: normal 20px/1 dashicons;
     
    214228    display: inline-block;
    215229    padding: 0 10px 0 0;
    216     top: -1px;
    217230    position: relative;
    218231    -webkit-font-smoothing: antialiased;
     
    222235}
    223236
     237/* Welcome Panel specific Icons styles */
     238
    224239.welcome-panel .welcome-write-blog:before,
    225240.welcome-panel .welcome-edit-page:before {
     
    230245.welcome-panel .welcome-add-page:before {
    231246    content: "\f132";
     247    top: -1px;
    232248}
    233249
     
    252268}
    253269
    254 .welcome-panel .welcome-widgets-menus {
    255     line-height: 16px;
    256 }
    257 
    258 .welcome-panel .welcome-panel-column ul {
    259     margin: 0.8em 1em 1em 0;
    260 }
    261 
    262 .welcome-panel .welcome-panel-column li {
    263     line-height: 16px;
    264     list-style-type: none;
    265     padding: 0 0 8px;
     270/* Right Now specific Icons styles */
     271
     272#dashboard_right_now li a:before,
     273#dashboard_right_now li span:before {
     274    content: "\f159"; /* generic icon for items added by CPTs ? */
     275    padding: 0 5px 0 0;
     276}
     277
     278#dashboard_right_now .page-count a:before,
     279#dashboard_right_now .page-count span:before {
     280    content: "\f105";
     281}
     282
     283#dashboard_right_now .post-count a:before,
     284#dashboard_right_now .post-count span:before {
     285    content: "\f109";
     286}
     287
     288#dashboard_right_now .comment-count a:before {
     289    content: "\f101";
     290}
     291
     292#dashboard_right_now .comment-mod-count a:before {
     293    content: "\f125";
     294}
     295
     296#dashboard_right_now .storage-count a:before {
     297    content: "\f104";
     298}
     299
     300#dashboard_right_now .storage-count.warning a:before {
     301    content: "\f153";
    266302}
    267303
     
    370406/* Dashboard right now - Colors */
    371407
    372 #dashboard_right_now li a:before,
    373 #dashboard_right_now li span:before {
    374     color: #82878c;
    375 }
    376 
    377408#dashboard_right_now .sub {
    378409    color: #777;
     
    393424#dashboard_right_now .warning span:before {
    394425    color: #d54e21;
    395 }
    396 
    397 /* Dashboard right now - Icons */
    398 #dashboard_right_now li a:before,
    399 #dashboard_right_now li span:before {
    400     content: "\f159";
    401     font: normal 20px/1 dashicons;
    402     speak: none;
    403     display: block;
    404     float: left;
    405     margin: 0 5px 0 0;
    406     padding: 0;
    407     text-indent: 0;
    408     text-align: center;
    409     position: relative;
    410     -webkit-font-smoothing: antialiased;
    411     text-decoration: none !important;
    412 }
    413 
    414 #dashboard_right_now .page-count a:before,
    415 #dashboard_right_now .page-count span:before {
    416     content: "\f105";
    417 }
    418 
    419 #dashboard_right_now .post-count a:before,
    420 #dashboard_right_now .post-count span:before {
    421     content: "\f109";
    422 }
    423 
    424 #dashboard_right_now .comment-count a:before {
    425     content: "\f101";
    426 }
    427 
    428 #dashboard_right_now .comment-mod-count a:before {
    429     content: "\f125";
    430 }
    431 
    432 #dashboard_right_now .storage-count a:before {
    433     content: "\f104";
    434 }
    435 
    436 #dashboard_right_now .storage-count.warning a:before {
    437     content: "\f153";
    438426}
    439427
Note: See TracChangeset for help on using the changeset viewer.