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.

git-svn-id: https://develop.svn.wordpress.org/trunk@35894 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrea Fercia 2015-12-13 12:00:12 +00:00
parent 03310b2e22
commit 6e3838503c
1 changed files with 50 additions and 62 deletions

View File

@ -56,10 +56,6 @@
min-height: 0; min-height: 0;
} }
/*------------------------------------------------------------------------------
9.0 - Dashboard
------------------------------------------------------------------------------*/
#dashboard-widgets-wrap { #dashboard-widgets-wrap {
overflow: hidden; overflow: hidden;
margin: 0 -8px; margin: 0 -8px;
@ -203,17 +199,34 @@
color: #464646; color: #464646;
} }
.welcome-panel .welcome-widgets-menus {
line-height: 16px;
}
.welcome-panel .welcome-panel-column ul {
margin: 0.8em 1em 1em 0;
}
.welcome-panel .welcome-panel-column li {
line-height: 16px;
list-style-type: none;
padding: 0 0 8px;
}
.welcome-panel .welcome-icon { .welcome-panel .welcome-icon {
background: transparent !important; background: transparent !important;
} }
.welcome-panel .welcome-icon:before { /* Welcome Panel and Right Now common Icons style */
.welcome-panel .welcome-icon:before,
#dashboard_right_now li a:before,
#dashboard_right_now li span:before {
color: #82878c; color: #82878c;
font: normal 20px/1 dashicons; font: normal 20px/1 dashicons;
speak: none; speak: none;
display: inline-block; display: inline-block;
padding: 0 10px 0 0; padding: 0 10px 0 0;
top: -1px;
position: relative; position: relative;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
@ -221,6 +234,8 @@
vertical-align: top; vertical-align: top;
} }
/* Welcome Panel specific Icons styles */
.welcome-panel .welcome-write-blog:before, .welcome-panel .welcome-write-blog:before,
.welcome-panel .welcome-edit-page:before { .welcome-panel .welcome-edit-page:before {
content: "\f119"; content: "\f119";
@ -229,6 +244,7 @@
.welcome-panel .welcome-add-page:before { .welcome-panel .welcome-add-page:before {
content: "\f132"; content: "\f132";
top: -1px;
} }
.welcome-panel .welcome-view-site:before { .welcome-panel .welcome-view-site:before {
@ -251,18 +267,38 @@
top: -1px; top: -1px;
} }
.welcome-panel .welcome-widgets-menus { /* Right Now specific Icons styles */
line-height: 16px;
#dashboard_right_now li a:before,
#dashboard_right_now li span:before {
content: "\f159"; /* generic icon for items added by CPTs ? */
padding: 0 5px 0 0;
} }
.welcome-panel .welcome-panel-column ul { #dashboard_right_now .page-count a:before,
margin: 0.8em 1em 1em 0; #dashboard_right_now .page-count span:before {
content: "\f105";
} }
.welcome-panel .welcome-panel-column li { #dashboard_right_now .post-count a:before,
line-height: 16px; #dashboard_right_now .post-count span:before {
list-style-type: none; content: "\f109";
padding: 0 0 8px; }
#dashboard_right_now .comment-count a:before {
content: "\f101";
}
#dashboard_right_now .comment-mod-count a:before {
content: "\f125";
}
#dashboard_right_now .storage-count a:before {
content: "\f104";
}
#dashboard_right_now .storage-count.warning a:before {
content: "\f153";
} }
/* Dashboard WordPress news */ /* Dashboard WordPress news */
@ -369,11 +405,6 @@ body #dashboard-widgets .postbox form .submit {
/* Dashboard right now - Colors */ /* Dashboard right now - Colors */
#dashboard_right_now li a:before,
#dashboard_right_now li span:before {
color: #82878c;
}
#dashboard_right_now .sub { #dashboard_right_now .sub {
color: #777; color: #777;
background: #f5f5f5; background: #f5f5f5;
@ -394,49 +425,6 @@ body #dashboard-widgets .postbox form .submit {
color: #d54e21; color: #d54e21;
} }
/* Dashboard right now - Icons */
#dashboard_right_now li a:before,
#dashboard_right_now li span:before {
content: "\f159";
font: normal 20px/1 dashicons;
speak: none;
display: block;
float: left;
margin: 0 5px 0 0;
padding: 0;
text-indent: 0;
text-align: center;
position: relative;
-webkit-font-smoothing: antialiased;
text-decoration: none !important;
}
#dashboard_right_now .page-count a:before,
#dashboard_right_now .page-count span:before {
content: "\f105";
}
#dashboard_right_now .post-count a:before,
#dashboard_right_now .post-count span:before {
content: "\f109";
}
#dashboard_right_now .comment-count a:before {
content: "\f101";
}
#dashboard_right_now .comment-mod-count a:before {
content: "\f125";
}
#dashboard_right_now .storage-count a:before {
content: "\f104";
}
#dashboard_right_now .storage-count.warning a:before {
content: "\f153";
}
/* Dashboard Quick Draft */ /* Dashboard Quick Draft */
#dashboard_quick_press .inside { #dashboard_quick_press .inside {