2013-02-06 03:16:51 +08:00
|
|
|
// --------------------------------------------------
|
|
|
|
// Badges
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
// Base
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
%badge {
|
|
|
|
display: inline-block;
|
2014-03-16 00:01:17 +08:00
|
|
|
font-weight: normal;
|
2013-02-06 03:16:51 +08:00
|
|
|
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
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
2014-03-20 04:04:53 +08:00
|
|
|
.badge-category, .badge-category-parent {
|
2014-12-16 11:12:56 +08:00
|
|
|
font-size: 0.857em;
|
2013-07-22 15:11:34 +08:00
|
|
|
font-weight: bold;
|
2013-07-26 22:11:00 +08:00
|
|
|
white-space: nowrap;
|
2014-03-18 11:00:39 +08:00
|
|
|
display: inline-block;
|
2014-03-19 21:38:35 +08:00
|
|
|
line-height: 1;
|
2014-03-22 03:33:30 +08:00
|
|
|
}
|
|
|
|
.badge-wrapper {
|
|
|
|
white-space: nowrap;
|
2014-03-20 04:04:53 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.badge-category {
|
|
|
|
padding: 6px;
|
2014-05-06 13:50:51 +08:00
|
|
|
color: $secondary;
|
2013-02-06 03:16:51 +08:00
|
|
|
&[href] {
|
2014-05-06 13:50:51 +08:00
|
|
|
color: $secondary;
|
2013-02-06 03:16:51 +08:00
|
|
|
}
|
2014-03-20 04:04:53 +08:00
|
|
|
}
|
2014-03-19 21:38:35 +08:00
|
|
|
|
2014-03-20 04:04:53 +08:00
|
|
|
.badge-category-parent {
|
|
|
|
padding: 6px 2px;
|
|
|
|
width: 2px;
|
|
|
|
.category-name {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
&:before {
|
|
|
|
content: "\a0";
|
|
|
|
}
|
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;
|
|
|
|
}
|
|
|
|
}}
|
|
|
|
|
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;
|
2014-09-04 12:02:29 +08:00
|
|
|
padding: 3px 5px;
|
|
|
|
vertical-align: middle;
|
2014-07-26 11:06:14 +08:00
|
|
|
color: $secondary;
|
2013-02-06 03:16:51 +08:00
|
|
|
font-size: 11px;
|
2014-03-13 11:17:18 +08:00
|
|
|
line-height: 1;
|
2013-08-03 03:41:02 +08:00
|
|
|
text-align: center;
|
2014-07-26 11:06:14 +08:00
|
|
|
background-color: scale-color($primary, $lightness: 70%);
|
2013-02-06 03:16:51 +08:00
|
|
|
&[href] {
|
2014-07-26 11:06:14 +08:00
|
|
|
color: $secondary;
|
2013-02-06 03:16:51 +08:00
|
|
|
}
|
|
|
|
|
2014-09-03 15:11:19 +08:00
|
|
|
// New posts
|
2013-02-06 03:16:51 +08:00
|
|
|
|
2014-09-03 15:11:19 +08:00
|
|
|
&.new-posts, &.unread-posts {
|
2014-07-26 11:06:14 +08:00
|
|
|
background-color: scale-color($tertiary, $lightness: 50%);
|
|
|
|
color: $secondary;
|
2014-03-08 13:55:02 +08:00
|
|
|
font-weight: normal;
|
2013-02-06 03:16:51 +08:00
|
|
|
}
|
|
|
|
|
2014-09-04 00:22:18 +08:00
|
|
|
&.new-topic {
|
|
|
|
background-color: transparent;
|
2014-09-04 04:33:56 +08:00
|
|
|
color: scale-color($tertiary, $lightness: 20%);
|
2014-09-04 00:22:18 +08:00
|
|
|
font-weight: normal;
|
2014-12-16 11:12:56 +08:00
|
|
|
font-size: 0.929em;
|
2014-09-04 00:22:18 +08:00
|
|
|
}
|
2014-03-12 05:26:25 +08:00
|
|
|
|
2014-09-04 04:33:56 +08:00
|
|
|
&.new-topic::before {
|
2014-09-04 09:07:15 +08:00
|
|
|
content: "●";
|
|
|
|
margin-right: 2px;
|
2014-09-04 04:33:56 +08:00
|
|
|
}
|
|
|
|
|
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;
|
2014-07-26 00:22:55 +08:00
|
|
|
border: none;
|
2013-02-06 03:16:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Posts badge
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
.badge-posts {
|
2014-03-16 00:01:17 +08:00
|
|
|
font-weight: normal;
|
2014-12-16 11:12:56 +08:00
|
|
|
font-size: 1em;
|
2013-02-06 03:16:51 +08:00
|
|
|
line-height: 1;
|
|
|
|
&[href] {
|
2014-05-06 13:50:51 +08:00
|
|
|
color: scale-color($primary, $lightness: 40%);
|
2013-02-06 03:16:51 +08:00
|
|
|
}
|
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-05-06 13:50:51 +08:00
|
|
|
color: $primary;
|
|
|
|
text-shadow: 0 1px 0 rgba($primary, 0.1);
|
2014-08-06 21:31:13 +08:00
|
|
|
background-color: dark-light-diff($primary, $secondary, 90%, -65%);
|
|
|
|
border-color: dark-light-diff($primary, $secondary, 90%, -65%);
|
2014-12-16 11:12:56 +08:00
|
|
|
font-size: 0.857em;
|
2014-10-11 06:02:46 +08:00
|
|
|
box-shadow: inset 0 1px 0 rgba(0,0,0, 0.22);
|
2013-05-18 04:09:52 +08:00
|
|
|
}
|