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;
|
2018-07-13 04:38:51 +08:00
|
|
|
border-radius: 10px;
|
2013-02-06 03:16:51 +08:00
|
|
|
}
|
|
|
|
|
2015-03-05 11:15:21 +08:00
|
|
|
// Category badges
|
2013-02-06 03:16:51 +08:00
|
|
|
// --------------------------------------------------
|
|
|
|
|
2015-03-05 11:15:21 +08:00
|
|
|
.badge-wrapper {
|
2018-01-13 06:27:38 +08:00
|
|
|
font-size: $font-down-1;
|
2013-07-22 15:11:34 +08:00
|
|
|
font-weight: bold;
|
2013-07-26 22:11:00 +08:00
|
|
|
white-space: nowrap;
|
2015-01-29 11:53:02 +08:00
|
|
|
position: relative;
|
2018-02-27 05:32:56 +08:00
|
|
|
display: inline-flex;
|
2018-02-27 03:20:32 +08:00
|
|
|
align-items: baseline;
|
2018-06-08 17:49:31 +08:00
|
|
|
|
2018-01-11 20:05:29 +08:00
|
|
|
.badge-category {
|
2018-06-08 17:49:31 +08:00
|
|
|
display: inline-flex;
|
|
|
|
align-items: baseline;
|
|
|
|
.category-name {
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
overflow: hidden;
|
2018-02-27 03:20:32 +08:00
|
|
|
}
|
2018-01-11 20:05:29 +08:00
|
|
|
.d-icon {
|
|
|
|
margin-right: 3px;
|
|
|
|
}
|
|
|
|
}
|
2015-01-29 14:34:05 +08:00
|
|
|
|
2018-06-08 17:49:31 +08:00
|
|
|
// ----- Bullet
|
2017-08-05 02:12:21 +08:00
|
|
|
|
2018-06-08 17:49:31 +08:00
|
|
|
&.bullet {
|
2018-01-23 06:14:40 +08:00
|
|
|
margin-right: 12px;
|
2015-03-10 00:25:27 +08:00
|
|
|
span.badge-category {
|
2017-07-29 03:21:18 +08:00
|
|
|
color: $primary;
|
2015-09-10 04:20:04 +08:00
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
2015-03-10 00:25:27 +08:00
|
|
|
.extra-info-wrapper & {
|
2017-07-29 03:21:18 +08:00
|
|
|
color: $header-primary;
|
2015-03-10 00:25:27 +08:00
|
|
|
}
|
2016-01-18 17:08:24 +08:00
|
|
|
}
|
2018-06-08 17:49:31 +08:00
|
|
|
.badge-category-parent-bg,
|
|
|
|
.badge-category-bg {
|
|
|
|
width: 9px;
|
|
|
|
height: 9px;
|
|
|
|
margin-right: 5px;
|
|
|
|
display: inline-block;
|
2016-01-18 17:08:24 +08:00
|
|
|
}
|
2018-06-08 17:49:31 +08:00
|
|
|
.badge-category-parent-bg {
|
|
|
|
// Subcategories
|
2018-02-03 08:03:25 +08:00
|
|
|
width: 5px;
|
|
|
|
margin-right: 0;
|
2018-06-08 17:49:31 +08:00
|
|
|
+ .badge-category-bg {
|
2016-01-18 17:08:24 +08:00
|
|
|
width: 5px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2015-03-10 00:25:27 +08:00
|
|
|
|
2018-06-08 17:49:31 +08:00
|
|
|
// ----- Box
|
2015-03-10 00:25:27 +08:00
|
|
|
|
2018-06-08 17:49:31 +08:00
|
|
|
&.box {
|
2015-04-15 03:54:17 +08:00
|
|
|
margin-right: 5px;
|
2018-02-03 10:29:51 +08:00
|
|
|
padding: 2px 4px 2px 4px;
|
2018-02-03 08:03:25 +08:00
|
|
|
display: inline-flex;
|
2015-01-29 11:53:02 +08:00
|
|
|
span {
|
2015-09-10 02:46:40 +08:00
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
2018-06-08 17:49:31 +08:00
|
|
|
&.badge-category-bg,
|
|
|
|
&.badge-category-parent-bg {
|
2015-03-05 11:15:21 +08:00
|
|
|
position: absolute;
|
2018-01-18 00:54:51 +08:00
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
2015-03-05 11:15:21 +08:00
|
|
|
}
|
|
|
|
|
2018-06-08 17:49:31 +08:00
|
|
|
&.badge-category-parent-bg {
|
|
|
|
// Subcategories
|
2015-03-05 11:15:21 +08:00
|
|
|
width: calc(100% - 5px);
|
|
|
|
& + .badge-category-bg {
|
|
|
|
left: 5px;
|
|
|
|
width: calc(100% - 5px);
|
|
|
|
& + .badge-category {
|
|
|
|
margin-left: 5px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.badge-category {
|
|
|
|
position: relative;
|
2018-02-03 08:03:25 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
+ .topic-header-extra {
|
2018-06-08 17:49:31 +08:00
|
|
|
padding: 2px 4px 2px 4px;
|
2018-02-03 08:03:25 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-06-08 17:49:31 +08:00
|
|
|
// ----- Bar
|
2018-02-03 08:03:25 +08:00
|
|
|
|
2018-06-08 17:49:31 +08:00
|
|
|
&.bar {
|
2018-02-03 08:03:25 +08:00
|
|
|
margin-right: 5px;
|
|
|
|
|
|
|
|
span.badge-category {
|
|
|
|
color: $primary;
|
2018-02-27 03:20:32 +08:00
|
|
|
padding: 1px 3px;
|
2018-02-03 08:03:25 +08:00
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
|
|
|
.extra-info-wrapper & {
|
|
|
|
color: $header-primary;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-06-08 17:49:31 +08:00
|
|
|
.badge-category-parent-bg,
|
|
|
|
.badge-category-bg {
|
|
|
|
// Subcategories
|
2018-02-03 08:03:25 +08:00
|
|
|
display: inline-block;
|
|
|
|
padding: 0 1px;
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
content: "\a0";
|
2015-03-05 11:15:21 +08:00
|
|
|
}
|
2015-02-06 13:20:55 +08:00
|
|
|
}
|
|
|
|
}
|
2015-01-30 14:57:46 +08:00
|
|
|
|
2018-06-08 17:49:31 +08:00
|
|
|
// ----- No category style
|
2018-02-03 08:03:25 +08:00
|
|
|
|
2018-06-08 17:49:31 +08:00
|
|
|
&.none {
|
2018-02-03 08:03:25 +08:00
|
|
|
color: $primary;
|
|
|
|
margin-right: 5px;
|
2016-02-10 16:34:43 +08:00
|
|
|
}
|
2016-02-10 16:27:03 +08:00
|
|
|
}
|
|
|
|
|
2015-03-05 11:15:21 +08:00
|
|
|
// Category badge dropdown
|
|
|
|
// --------------------------------------------------
|
2015-01-29 11:53:02 +08:00
|
|
|
|
2015-03-05 11:15:21 +08:00
|
|
|
.list-controls {
|
2017-09-09 02:47:39 +08:00
|
|
|
.category-breadcrumb {
|
2018-01-24 18:48:20 +08:00
|
|
|
a.badge-category {
|
2015-03-05 11:15:21 +08:00
|
|
|
display: inline-block;
|
2018-01-13 06:27:38 +08:00
|
|
|
padding: 6px 8px;
|
|
|
|
line-height: $line-height-medium;
|
2015-03-05 11:15:21 +08:00
|
|
|
}
|
2015-01-29 14:48:55 +08:00
|
|
|
}
|
|
|
|
}
|
2015-01-29 11:53:02 +08:00
|
|
|
|
2013-02-06 03:16:51 +08:00
|
|
|
// Notification badge
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
.badge-notification {
|
|
|
|
@extend %badge;
|
2018-01-13 06:27:38 +08:00
|
|
|
padding: 3px 5px;
|
2018-01-24 18:48:20 +08:00
|
|
|
min-width: 8px;
|
2014-09-04 12:02:29 +08:00
|
|
|
vertical-align: middle;
|
2014-07-26 11:06:14 +08:00
|
|
|
color: $secondary;
|
2018-01-13 06:27:38 +08:00
|
|
|
font-size: $font-down-2;
|
|
|
|
line-height: $line-height-small;
|
2013-08-03 03:41:02 +08:00
|
|
|
text-align: center;
|
2017-10-11 04:07:46 +08:00
|
|
|
background-color: dark-light-choose($primary-low-mid, $secondary-low);
|
2013-02-06 03:16:51 +08:00
|
|
|
&[href] {
|
2015-08-22 02:19:02 +08:00
|
|
|
color: $secondary;
|
2013-02-06 03:16:51 +08:00
|
|
|
}
|
|
|
|
|
2016-05-13 16:47:40 +08:00
|
|
|
&:hover {
|
|
|
|
color: $secondary;
|
|
|
|
}
|
|
|
|
|
2014-09-03 15:11:19 +08:00
|
|
|
// New posts
|
2013-02-06 03:16:51 +08:00
|
|
|
|
2018-06-08 17:49:31 +08:00
|
|
|
&.new-posts,
|
|
|
|
&.unread-posts {
|
2017-10-11 04:07:46 +08:00
|
|
|
background-color: dark-light-choose($tertiary-medium, $tertiary);
|
2015-08-22 02:19:02 +08:00
|
|
|
color: dark-light-choose($secondary, $secondary);
|
2015-08-19 03:28:58 +08:00
|
|
|
font-weight: dark-light-choose(normal, bold);
|
2013-02-06 03:16:51 +08:00
|
|
|
}
|
|
|
|
|
2014-09-04 00:22:18 +08:00
|
|
|
&.new-topic {
|
|
|
|
background-color: transparent;
|
2017-10-11 04:07:46 +08:00
|
|
|
color: $tertiary-high;
|
2014-09-04 00:22:18 +08:00
|
|
|
font-weight: normal;
|
2018-01-13 06:27:38 +08:00
|
|
|
font-size: $font-down-1;
|
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;
|
2017-06-12 10:20:14 +08:00
|
|
|
background-color: $primary-low;
|
2014-03-08 13:55:02 +08:00
|
|
|
top: -1px;
|
2017-06-12 10:20:14 +08:00
|
|
|
color: $primary-medium;
|
2013-11-18 11:32:58 +08:00
|
|
|
position: relative;
|
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;
|
2018-01-13 06:27:38 +08:00
|
|
|
font-size: $font-0;
|
|
|
|
line-height: $line-height-small;
|
2013-02-06 03:16:51 +08:00
|
|
|
&[href] {
|
2017-10-11 04:07:46 +08:00
|
|
|
color: dark-light-choose($primary-medium, $secondary-medium);
|
2013-02-06 03:16:51 +08:00
|
|
|
}
|
2013-05-18 04:09:52 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// Group badge
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
.badge-group {
|
|
|
|
@extend %badge;
|
2018-02-21 01:18:20 +08:00
|
|
|
padding: 2px 5px;
|
2014-05-06 13:50:51 +08:00
|
|
|
color: $primary;
|
2017-06-12 10:20:14 +08:00
|
|
|
background-color: $primary-low;
|
|
|
|
border-color: $primary-low;
|
2018-01-13 06:27:38 +08:00
|
|
|
font-size: $font-down-1;
|
2013-05-18 04:09:52 +08:00
|
|
|
}
|