2013-08-29 01:58:44 +08:00
|
|
|
@import "common/foundation/variables";
|
|
|
|
@import "common/foundation/mixins";
|
2013-02-06 03:16:51 +08:00
|
|
|
|
|
|
|
// --------------------------------------------------
|
|
|
|
// Badges
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
// Base
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
%badge {
|
|
|
|
display: inline-block;
|
|
|
|
font-weight: bold;
|
|
|
|
line-height: 1;
|
|
|
|
white-space: nowrap;
|
2013-08-02 18:46:36 +08:00
|
|
|
@include border-radius-all(10px);
|
2013-02-06 03:16:51 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// Category badge
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
.badge-category {
|
2013-07-23 09:59:13 +08:00
|
|
|
padding: 4px 6px;
|
2014-02-24 09:47:44 +08:00
|
|
|
color: $tertiary_text_color;
|
2013-02-06 03:16:51 +08:00
|
|
|
font-size: 12px;
|
2013-07-22 15:11:34 +08:00
|
|
|
font-weight: bold;
|
2013-07-26 22:11:00 +08:00
|
|
|
white-space: nowrap;
|
2013-02-06 03:16:51 +08:00
|
|
|
&[href] {
|
2014-02-24 09:47:44 +08:00
|
|
|
color: $tertiary_text_color;
|
2013-02-06 03:16:51 +08:00
|
|
|
}
|
2014-02-04 04:28:31 +08:00
|
|
|
&.restricted {
|
|
|
|
div {
|
|
|
|
display: inline-block;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
}
|
2013-02-06 03:16:51 +08:00
|
|
|
}
|
|
|
|
|
2014-02-11 13:53:14 +08:00
|
|
|
.d-dropdown .badge-category {
|
|
|
|
&.restricted {
|
|
|
|
div {
|
|
|
|
display: inline-block;
|
|
|
|
margin: 0;
|
|
|
|
padding-right: 6px;
|
|
|
|
}
|
|
|
|
}}
|
|
|
|
|
2014-02-06 13:30:44 +08:00
|
|
|
h1 a.badge-category div {vertical-align: top;}
|
|
|
|
|
2013-10-26 03:23:29 +08:00
|
|
|
|
2013-02-06 03:16:51 +08:00
|
|
|
// Notification badge
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
.badge-notification {
|
|
|
|
@extend %badge;
|
2013-08-03 03:41:02 +08:00
|
|
|
padding: 4px;
|
|
|
|
padding-top: 3px;
|
2014-02-24 09:47:44 +08:00
|
|
|
color: $tertiary_text_color;
|
2013-02-06 03:16:51 +08:00
|
|
|
font-size: 11px;
|
2013-08-03 03:41:02 +08:00
|
|
|
min-width: 10px;
|
|
|
|
text-align: center;
|
2013-02-06 03:16:51 +08:00
|
|
|
background-color: $badge-notification-background-color;
|
|
|
|
&[href] {
|
2014-02-24 09:47:44 +08:00
|
|
|
color: $tertiary_text_color;
|
2013-02-06 03:16:51 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// New posts
|
|
|
|
|
2013-11-22 03:38:56 +08:00
|
|
|
&.new-posts, &.unread-posts {
|
2014-03-08 13:55:02 +08:00
|
|
|
background-color: $emphasis_background_color;
|
|
|
|
color: $emphasis_text_color;
|
|
|
|
font-weight: normal;
|
2013-02-06 03:16:51 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// Click count
|
|
|
|
|
|
|
|
&.clicks {
|
|
|
|
font-weight: normal;
|
2013-11-14 12:10:47 +08:00
|
|
|
background-color: #ddd;
|
2014-03-08 13:55:02 +08:00
|
|
|
top: -1px;
|
2013-11-18 11:32:58 +08:00
|
|
|
color: #888;
|
|
|
|
position: relative;
|
|
|
|
margin-left: 2px;
|
2013-02-06 03:16:51 +08: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-18 04:09:52 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// Group badge
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
.badge-group {
|
|
|
|
@extend %badge;
|
2013-07-16 13:44:07 +08:00
|
|
|
padding: 3px 5px;
|
2014-02-24 09:47:44 +08:00
|
|
|
color: $primary_text_color;
|
|
|
|
text-shadow: 0 1px 0 rgba($secondary_shadow_color, 0.2);
|
2013-05-18 04:09:52 +08:00
|
|
|
background-color: #ddd;
|
|
|
|
border-color: #aaa;
|
|
|
|
font-size: 12px;
|
2014-02-24 09:47:44 +08:00
|
|
|
@include box-shadow(inset 0 1px 0 rgba($secondary_shadow_color, 0.52));
|
2013-05-18 04:09:52 +08:00
|
|
|
}
|