1
0
mirror of https://github.com/kremalicious/Badged.git synced 2024-11-22 01:46:50 +01:00

don't style comments badge with 0 comments

This commit is contained in:
Matthias Kretschmann 2014-10-11 14:44:59 +02:00
parent 76c3185e10
commit bf486225bd
4 changed files with 30 additions and 2 deletions

View File

@ -1,6 +1,7 @@
#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:11px;font-weight:normal;font-family:Helvetica,Verdana,Geneva,sans-serif;line-height:17px;color:#fff;text-align:center;text-shadow:0 1px 1px #771717;background-color:#d5231f !important;box-shadow:0px 2px 2px #888 !important;border:2px solid #fff;background-image:-webkit-linear-gradient(top, rgba(255,255,255,0.3), rgba(255,255,255,0));background-image:linear-gradient(top, rgba(255,255,255,0.3), rgba(255,255,255,0));background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#4dffffff', endColorstr='#00ffffff', GradientType=0);-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;border-radius:10px;background-clip:padding-box;min-width:20px;height:20px;padding-left:3px;padding-right:3px;display:inline-block;margin-left:2px;margin-top:-2px;position:relative}#adminmenu .awaiting-mod:before,#adminmenu span.update-plugins:before,#sidemenu li a span.update-plugins:before,#sidemenu a .update-plugins:before,#rightnow .reallynow:before,#wp-admin-bar-updates .ab-label:before,#wp-admin-bar-comments .ab-label:before{content:"";position:absolute;left:0;top:0;width:100%;height:100%;border-radius:10px;background-clip:padding-box;box-shadow:inset 0 0 3px #631212;background:-webkit-radial-gradient(center -5px, circle, rgba(255,255,255,0.3) 0, rgba(255,255,255,0.3) 59%, rgba(255,255,255,0) 65%, rgba(255,255,255,0) 100%);background:radial-gradient(center -5px, circle, rgba(255,255,255,0.3) 0, rgba(255,255,255,0.3) 59%, rgba(255,255,255,0) 65%, rgba(255,255,255,0) 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#4dffffff', endColorstr='#00ffffff', GradientType=1)}
#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:11px;font-weight:normal;font-family:Helvetica,Verdana,Geneva,sans-serif;line-height:17px;color:#fff;text-align:center;text-shadow:0 1px 1px #771717;background-color:#d5231f !important;box-shadow:0px 2px 2px #000 !important;border:2px solid #fff;background-image:-webkit-linear-gradient(top, rgba(255,255,255,0.3), rgba(255,255,255,0));background-image:linear-gradient(top, rgba(255,255,255,0.3), rgba(255,255,255,0));background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#4dffffff', endColorstr='#00ffffff', GradientType=0);-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;border-radius:10px;background-clip:padding-box;min-width:20px;height:20px;padding-left:3px;padding-right:3px;display:inline-block;margin-left:2px;margin-top:-2px;position:relative}#adminmenu .awaiting-mod:before,#adminmenu span.update-plugins:before,#sidemenu li a span.update-plugins:before,#sidemenu a .update-plugins:before,#rightnow .reallynow:before,#wp-admin-bar-updates .ab-label:before,#wp-admin-bar-comments .ab-label:before{content:"";position:absolute;left:0;top:0;width:100%;height:100%;border-radius:10px;background-clip:padding-box;box-shadow:inset 0 0 3px #631212;background:-webkit-radial-gradient(center -5px, circle, rgba(255,255,255,0.3) 0, rgba(255,255,255,0.3) 59%, rgba(255,255,255,0) 65%, rgba(255,255,255,0) 100%);background:radial-gradient(center -5px, circle, rgba(255,255,255,0.3) 0, rgba(255,255,255,0.3) 59%, rgba(255,255,255,0) 65%, rgba(255,255,255,0) 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#4dffffff', endColorstr='#00ffffff', GradientType=1)}
#adminmenu li.current a .awaiting-mod,#adminmenu li a.wp-has-current-submenu .update-plugins{box-shadow:0px 2px 2px #444 !important}
#adminmenu li .awaiting-mod span,#adminmenu li span.update-plugins span,#sidemenu li a span.update-plugins span{padding:0 2px}
#wp-admin-bar-comments .ab-label.count-0{font-size:13px;background:none !important;border:none;box-shadow:none !important;text-shadow:none;min-width:0;margin:0;padding:0}#wp-admin-bar-comments .ab-label.count-0:before{display:none}
.ie8 #adminmenu .awaiting-mod,.ie8 #adminmenu span.update-plugins,.ie8 #sidemenu li a span.update-plugins,.ie8 #sidemenu a .update-plugins,.ie8 #rightnow .reallynow,.ie8 #wp-admin-bar-updates .ab-label,.ie8 #wp-admin-bar-comments .ab-label{filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#4dffffff', endColorstr='#00ffffff', GradientType=0) progid:DXImageTransform.Microsoft.Shadow(color=#888888, direction=180, strength=3) progid:DXImageTransform.Microsoft.Shadow(color=#b3b3b3, direction=90, strength=2) progid:DXImageTransform.Microsoft.Shadow(color=#b3b3b3, direction=270, strength=2) }
.ie8 #adminmenu li.current a .awaiting-mod,.ie8 #adminmenu li a.wp-has-current-submenu .update-plugins{filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#4dffffff', endColorstr='#00ffffff', GradientType=0) progid:DXImageTransform.Microsoft.Shadow(color=#444444, direction=180, strength=3) progid:DXImageTransform.Microsoft.Shadow(color=#666666, direction=90, strength=2) progid:DXImageTransform.Microsoft.Shadow(color=#666666, direction=270, strength=2) }

View File

@ -1,3 +1,4 @@
#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:12px;font-weight:200;font-family:'Helvetica Neue',Helvetica,Verdana,Geneva,sans-serif;line-height:20px;color:#fff;text-align:center;background:#ff0000 !important;box-shadow:0 1px 0 rgba(0,0,0,0.2) !important;text-shadow:none !important;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;border-radius:10px;background-clip:padding-box;min-width:20px;height:20px;padding:0 2px;display:inline-block;margin-top:-2px;vertical-align:baseline}
#adminmenu li .awaiting-mod span,#adminmenu li span.update-plugins span,#sidemenu li a span.update-plugins span{padding:0}
#wp-admin-bar-comments .ab-label.count-0{background:none !important;min-width:0}

View File

@ -30,7 +30,7 @@
/* need to be rude for these */
background-color: #d5231f !important;
box-shadow: 0px 2px 2px #888 !important;
box-shadow: 0px 2px 2px #000 !important;
border: 2px solid #fff;
#gradient > .vertical(rgba(255,255,255,0.3), rgba(255,255,255,0));
@ -80,6 +80,23 @@
}
//
// Don't style comments badge with 0 comments
//
#wp-admin-bar-comments .ab-label.count-0 {
font-size: 13px;
background: none !important;
border: none;
box-shadow: none !important;
text-shadow: none;
min-width: 0;
margin: 0;
padding: 0;
&:before { display: none }
}
/* ============================================================== */
/* IE 8 Only Styles */
/* ============================================================== */

View File

@ -48,4 +48,13 @@
#adminmenu li span.update-plugins span,
#sidemenu li a span.update-plugins span {
padding: 0;
}
//
// Don't style comments badge with 0 comments
//
#wp-admin-bar-comments .ab-label.count-0 {
background: none !important;
min-width: 0;
}