Skip to content

Commit 3d04cc3

Browse files
committed
Administration: Admin menu: Improve vertical spacing and alignment of menu items with counters.
Props pauldechov, JDTrower. Fixes #41317. git-svn-id: https://develop.svn.wordpress.org/trunk@41362 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 6327832 commit 3d04cc3

2 files changed

Lines changed: 14 additions & 16 deletions

File tree

src/wp-admin/css/admin-menu.css

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -280,9 +280,9 @@
280280

281281
#adminmenu .wp-submenu a {
282282
font-size: 13px;
283-
line-height: 1.2;
283+
line-height: 18px;
284284
margin: 0;
285-
padding: 6px 0;
285+
padding: 5px 0;
286286
}
287287

288288
#adminmenu .wp-submenu li.current,
@@ -303,7 +303,7 @@
303303

304304
#adminmenu .wp-has-current-submenu ul > li > a,
305305
.folded #adminmenu li.menu-top .wp-submenu > li > a {
306-
padding: 6px 12px;
306+
padding: 5px 12px;
307307
}
308308

309309
#adminmenu a.menu-top,
@@ -510,28 +510,26 @@ ul#adminmenu > li.current > a.current:after {
510510
border: 0 none;
511511
}
512512

513+
/* @todo: consider to use a single rule for these counters and the list table comments counters. */
513514
#adminmenu .awaiting-mod,
514515
#adminmenu .update-plugins {
515516
display: inline-block;
516-
background-color: #d54e21;
517+
vertical-align: top;
518+
margin: 1px 0 0 2px;
519+
padding: 0 5px;
520+
min-width: 7px;
521+
height: 17px;
522+
border-radius: 11px;
523+
background-color: #ca4a1f;
517524
color: #fff;
518525
font-size: 9px;
519526
line-height: 17px;
520-
font-weight: 600;
521-
margin: 1px 0 0 2px;
522-
vertical-align: top;
523-
border-radius: 10px;
527+
text-align: center;
524528
z-index: 26;
525529
}
526530

527-
#adminmenu li .awaiting-mod span,
528-
#adminmenu li span.update-plugins span {
529-
display: block;
530-
padding: 0 6px;
531-
}
532-
533531
#adminmenu li.current a .awaiting-mod,
534-
#adminmenu li a.wp-has-current-submenu .update-plugins {
532+
#adminmenu li a.wp-has-current-submenu .update-plugins {
535533
background-color: #00b9eb;
536534
color: #fff;
537535
}

src/wp-admin/css/list-tables.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
border-top-color: #0073aa;
9797
}
9898

99-
/* comments bubble pending */
99+
/* @todo: consider to use a single rule for these counters and the admin menu counters. */
100100
.column-response .post-com-count-pending,
101101
.column-comments .post-com-count-pending {
102102
position: relative;

0 commit comments

Comments
 (0)