Badged/badged/admin/assets/less/badged.less

51 lines
1.1 KiB
Plaintext

/////////////////////////////////////
//
// Badged
// ------------------------
// by Matthias Kretschmann
// mkretschmann.com
//
/////////////////////////////////////
@import 'scaffolding.less';
// Select all instances of the WP notification bubble
// using the same selectors WP uses
#adminmenu .awaiting-mod,
#adminmenu span.update-plugins,
#sidemenu li a span.update-plugins,
#sidemenu a .update-plugins,
#rightnow .reallynow,
#wp-admin-bar-updates .ab-label,
#wp-admin-bar-comments .ab-label {
font-size: @font-size;
font-weight: @font-weight;
font-family: @font-family;
line-height: @line-height;
color: @font-color;
text-align: center;
// WP defaults overwrites, need to be rude for these
background: #ff0000 !important;
box-shadow: 0 1px 0 rgba(0,0,0,.2) !important;
text-shadow: none !important;
min-width: 20px;
height: 20px;
.border-radius(20px);
display: inline-block;
margin-top: -2px;
vertical-align: baseline;
}
//
// Don't style comments badge with 0 comments
//
#wp-admin-bar-comments .ab-label.count-0 {
background: none !important;
min-width: 0;
}