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;
|
2014-03-15 12:01:17 -04:00
|
|
|
font-weight: normal;
|
2013-02-05 14:16:51 -05:00
|
|
|
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
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
2014-03-19 16:04:53 -04:00
|
|
|
.badge-category, .badge-category-parent {
|
2013-02-05 14:16:51 -05:00
|
|
|
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;
|
2014-03-17 23:00:39 -04:00
|
|
|
display: inline-block;
|
2014-03-19 09:38:35 -04:00
|
|
|
line-height: 1;
|
2014-03-19 16:04:53 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.badge-category {
|
|
|
|
padding: 6px;
|
|
|
|
color: $tertiary_text_color;
|
2013-02-05 14:16:51 -05:00
|
|
|
&[href] {
|
2014-02-23 20:47:44 -05:00
|
|
|
color: $tertiary_text_color;
|
2013-02-05 14:16:51 -05:00
|
|
|
}
|
2014-03-19 16:04:53 -04:00
|
|
|
}
|
2014-03-19 09:38:35 -04:00
|
|
|
|
2014-03-19 16:04:53 -04:00
|
|
|
.badge-category-parent {
|
|
|
|
padding: 6px 2px;
|
|
|
|
width: 2px;
|
|
|
|
.category-name {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
&:before {
|
|
|
|
content: "\a0";
|
|
|
|
}
|
2013-02-05 14:16:51 -05:00
|
|
|
}
|
|
|
|
|
2014-02-11 00:53:14 -05:00
|
|
|
.d-dropdown .badge-category {
|
|
|
|
&.restricted {
|
|
|
|
div {
|
|
|
|
display: inline-block;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
}}
|
|
|
|
|
2014-02-06 00:30:44 -05:00
|
|
|
h1 a.badge-category div {vertical-align: top;}
|
|
|
|
|
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;
|
2014-02-23 20:47:44 -05:00
|
|
|
color: $tertiary_text_color;
|
2013-02-05 14:16:51 -05:00
|
|
|
font-size: 11px;
|
2014-03-12 23:17:18 -04:00
|
|
|
line-height: 1;
|
|
|
|
min-width: 11px;
|
2013-08-02 15:41:02 -04:00
|
|
|
text-align: center;
|
2013-02-05 14:16:51 -05:00
|
|
|
background-color: $badge-notification-background-color;
|
|
|
|
&[href] {
|
2014-02-23 20:47:44 -05:00
|
|
|
color: $tertiary_text_color;
|
2013-02-05 14:16:51 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
// New posts
|
|
|
|
|
2013-11-21 14:38:56 -05:00
|
|
|
&.new-posts, &.unread-posts {
|
2014-03-12 23:17:18 -04:00
|
|
|
background-color: lighten($emphasis_text_color, 20%);
|
2014-03-11 17:26:25 -04:00
|
|
|
color: $tertiary_text_color;
|
2014-03-08 00:55:02 -05:00
|
|
|
font-weight: normal;
|
2013-02-05 14:16:51 -05:00
|
|
|
}
|
|
|
|
|
2014-03-12 23:17:18 -04:00
|
|
|
|
2014-03-11 17:26:25 -04:00
|
|
|
|
2013-02-05 14:16:51 -05:00
|
|
|
// Click count
|
|
|
|
|
|
|
|
&.clicks {
|
|
|
|
font-weight: normal;
|
2013-11-13 23:10:47 -05:00
|
|
|
background-color: #ddd;
|
2014-03-08 00:55:02 -05:00
|
|
|
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;
|
2014-03-15 12:01:17 -04:00
|
|
|
font-weight: normal;
|
2013-02-05 14:16:51 -05:00
|
|
|
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;
|
2014-02-23 20:47:44 -05:00
|
|
|
color: $primary_text_color;
|
|
|
|
text-shadow: 0 1px 0 rgba($secondary_shadow_color, 0.2);
|
2013-05-17 16:09:52 -04:00
|
|
|
background-color: #ddd;
|
|
|
|
border-color: #aaa;
|
|
|
|
font-size: 12px;
|
2014-02-23 20:47:44 -05:00
|
|
|
@include box-shadow(inset 0 1px 0 rgba($secondary_shadow_color, 0.52));
|
2013-05-17 16:09:52 -04:00
|
|
|
}
|