2013-08-28 13:58:44 -04:00
|
|
|
@import "common/foundation/variables";
|
|
|
|
@import "common/foundation/mixins";
|
2013-02-05 14:16:51 -05:00
|
|
|
|
|
|
|
// --------------------------------------------------
|
|
|
|
// Badges
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
// Base
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
%badge {
|
|
|
|
display: inline-block;
|
|
|
|
font-weight: bold;
|
|
|
|
line-height: 1;
|
|
|
|
white-space: nowrap;
|
2013-08-02 06:46:36 -04:00
|
|
|
@include border-radius-all(10px);
|
2013-02-05 14:16:51 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
// Category badge
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
.badge-category {
|
2013-07-22 21:59:13 -04:00
|
|
|
padding: 4px 6px;
|
2013-02-05 14:16:51 -05:00
|
|
|
color: $white;
|
|
|
|
font-size: 12px;
|
2013-07-22 03:11:34 -04:00
|
|
|
font-weight: bold;
|
2013-07-26 10:11:00 -04:00
|
|
|
white-space: nowrap;
|
2013-02-05 14:16:51 -05:00
|
|
|
&[href] {
|
|
|
|
color: $white;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-10-25 15:23:29 -04:00
|
|
|
|
2013-02-05 14:16:51 -05:00
|
|
|
// Notification badge
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
.badge-notification {
|
|
|
|
@extend %badge;
|
2013-08-02 15:41:02 -04:00
|
|
|
padding: 4px;
|
|
|
|
padding-top: 3px;
|
2013-02-05 14:16:51 -05:00
|
|
|
color: $white;
|
|
|
|
font-size: 11px;
|
2013-08-02 15:41:02 -04:00
|
|
|
min-width: 10px;
|
|
|
|
text-align: center;
|
2013-02-05 14:16:51 -05:00
|
|
|
background-color: $badge-notification-background-color;
|
|
|
|
&[href] {
|
|
|
|
color: $white;
|
|
|
|
}
|
|
|
|
|
|
|
|
// New posts
|
|
|
|
|
|
|
|
&.new-posts {
|
|
|
|
background-color: $blue;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Click count
|
|
|
|
|
|
|
|
&.clicks {
|
|
|
|
font-weight: normal;
|
2013-11-13 23:10:47 -05:00
|
|
|
background-color: #ddd;
|
|
|
|
top: -1px;
|
2013-11-17 22:32:58 -05:00
|
|
|
color: #888;
|
|
|
|
position: relative;
|
|
|
|
margin-left: 2px;
|
2013-02-05 14:16:51 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Posts badge
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
.badge-posts {
|
|
|
|
color: $badge-posts-color;
|
|
|
|
font-weight: bold;
|
|
|
|
font-size: 14px;
|
|
|
|
line-height: 1;
|
|
|
|
&[href] {
|
|
|
|
color: $badge-posts-color;
|
|
|
|
}
|
2013-05-17 16:09:52 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
// Group badge
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
.badge-group {
|
|
|
|
@extend %badge;
|
2013-07-16 01:44:07 -04:00
|
|
|
padding: 3px 5px;
|
2013-05-17 16:09:52 -04:00
|
|
|
color: $black;
|
|
|
|
text-shadow: 0 1px 0 rgba($white, 0.2);
|
|
|
|
background-color: #ddd;
|
|
|
|
border-color: #aaa;
|
|
|
|
font-size: 12px;
|
|
|
|
@include box-shadow(inset 0 1px 0 rgba($white, 0.52));
|
|
|
|
}
|