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-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;
|
2018-12-11 05:06:26 +08:00
|
|
|
width: 0.74em;
|
|
|
|
height: 0.74em;
|
2019-03-25 21:29:38 +08:00
|
|
|
color: inherit;
|
2018-01-11 20:05:29 +08:00
|
|
|
}
|
|
|
|
}
|
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 {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary-high);
|
2015-09-10 04:20:04 +08:00
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
2015-03-10 00:25:27 +08:00
|
|
|
.extra-info-wrapper & {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--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 {
|
2018-12-18 10:05:32 +08:00
|
|
|
flex: 0 0 auto;
|
2018-06-08 17:49:31 +08:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|
2018-12-07 08:22:04 +08:00
|
|
|
.d-icon {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary-medium);
|
2018-12-07 08:22:04 +08:00
|
|
|
}
|
2016-01-18 17:08:24 +08:00
|
|
|
}
|
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 {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary-high);
|
2021-11-01 23:17:41 +08:00
|
|
|
padding-left: 4px;
|
2018-02-03 08:03:25 +08:00
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
|
|
|
.extra-info-wrapper & {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--header-primary);
|
2018-02-03 08:03:25 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-06-08 17:49:31 +08:00
|
|
|
.badge-category-parent-bg,
|
|
|
|
.badge-category-bg {
|
2018-02-03 08:03:25 +08:00
|
|
|
display: inline-block;
|
2021-11-01 23:17:41 +08:00
|
|
|
padding-left: 1px;
|
|
|
|
padding-right: 1px;
|
2018-02-03 08:03:25 +08:00
|
|
|
|
|
|
|
&: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 {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary-high);
|
2018-02-03 08:03:25 +08:00
|
|
|
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;
|
2019-01-18 04:46:55 +08:00
|
|
|
padding: 0.21em 0.42em;
|
|
|
|
min-width: 0.5em;
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--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;
|
2020-08-04 10:57:10 +08:00
|
|
|
background-color: var(--primary-low-mid-or-secondary-low);
|
2013-02-06 03:16:51 +08:00
|
|
|
&[href] {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--secondary);
|
2013-02-06 03:16:51 +08:00
|
|
|
}
|
|
|
|
|
2016-05-13 16:47:40 +08:00
|
|
|
&:hover {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--secondary);
|
2016-05-13 16:47:40 +08:00
|
|
|
}
|
|
|
|
|
2021-07-05 14:17:31 +08:00
|
|
|
// Unread posts
|
2013-02-06 03:16:51 +08:00
|
|
|
|
2018-06-08 17:49:31 +08:00
|
|
|
&.unread-posts {
|
2020-08-04 10:57:10 +08:00
|
|
|
background-color: var(--tertiary-med-or-tertiary);
|
|
|
|
color: var(--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;
|
|
|
|
}
|
2014-03-12 05:26:25 +08:00
|
|
|
|
2014-09-04 04:33:56 +08:00
|
|
|
&.new-topic::before {
|
2020-09-23 23:32:19 +08:00
|
|
|
content: "";
|
|
|
|
background: var(--tertiary-high);
|
|
|
|
display: inline-block;
|
|
|
|
height: 0.4em;
|
|
|
|
width: 0.4em;
|
|
|
|
border-radius: 50%;
|
2014-09-04 04:33:56 +08:00
|
|
|
}
|
|
|
|
|
2013-02-06 03:16:51 +08:00
|
|
|
// Click count
|
|
|
|
|
|
|
|
&.clicks {
|
|
|
|
font-weight: normal;
|
2020-08-04 10:57:10 +08:00
|
|
|
background-color: var(--primary-low);
|
2014-03-08 13:55:02 +08:00
|
|
|
top: -1px;
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--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] {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary-med-or-secondary-med);
|
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;
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary);
|
|
|
|
background-color: var(--primary-low);
|
|
|
|
border-color: var(--primary-low);
|
2018-01-13 06:27:38 +08:00
|
|
|
font-size: $font-down-1;
|
2013-05-18 04:09:52 +08:00
|
|
|
}
|