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;
|
2018-07-12 16:38:51 -04:00
|
|
|
border-radius: 10px;
|
2013-02-05 14:16:51 -05:00
|
|
|
}
|
|
|
|
|
2015-03-04 22:15:21 -05:00
|
|
|
// Category badges
|
2013-02-05 14:16:51 -05:00
|
|
|
// --------------------------------------------------
|
|
|
|
|
2023-11-13 10:46:15 -05:00
|
|
|
.badge-category__wrapper {
|
|
|
|
color: var(--primary-high);
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
2022-10-12 09:31:59 -04:00
|
|
|
font-size: var(--font-down-1);
|
2013-07-26 10:11:00 -04:00
|
|
|
white-space: nowrap;
|
2015-01-28 22:53:02 -05:00
|
|
|
position: relative;
|
2018-02-26 16:32:56 -05:00
|
|
|
display: inline-flex;
|
2018-02-26 14:20:32 -05:00
|
|
|
align-items: baseline;
|
2018-06-08 05:49:31 -04:00
|
|
|
|
2018-01-11 07:05:29 -05:00
|
|
|
.badge-category {
|
2018-06-08 05:49:31 -04:00
|
|
|
display: inline-flex;
|
|
|
|
align-items: baseline;
|
2023-11-13 10:46:15 -05:00
|
|
|
gap: 0.33em;
|
|
|
|
color: var(--primary-high);
|
2017-08-04 14:12:21 -04:00
|
|
|
|
2023-11-13 10:46:15 -05:00
|
|
|
&:before {
|
|
|
|
content: "";
|
|
|
|
background: var(--category-badge-color);
|
2018-12-17 21:05:32 -05:00
|
|
|
flex: 0 0 auto;
|
2023-11-13 10:46:15 -05:00
|
|
|
width: 0.67rem; // fixed dimensions because otherwise they may not be square
|
|
|
|
height: 0.67rem;
|
2016-01-18 04:08:24 -05:00
|
|
|
}
|
2015-03-09 12:25:27 -04:00
|
|
|
|
2023-11-13 10:46:15 -05:00
|
|
|
&__name {
|
|
|
|
color: currentColor;
|
2015-09-09 14:46:40 -04:00
|
|
|
text-overflow: ellipsis;
|
2018-02-02 19:03:25 -05:00
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
2023-11-13 10:46:15 -05:00
|
|
|
&.--has-parent {
|
2018-02-02 19:03:25 -05:00
|
|
|
&:before {
|
2023-11-13 10:46:15 -05:00
|
|
|
background: linear-gradient(
|
|
|
|
90deg,
|
|
|
|
var(--parent-category-badge-color) 50%,
|
|
|
|
var(--category-badge-color) 50%
|
|
|
|
);
|
2015-03-04 22:15:21 -05:00
|
|
|
}
|
2015-02-06 00:20:55 -05:00
|
|
|
}
|
2015-01-30 01:57:46 -05:00
|
|
|
|
2023-11-13 10:46:15 -05:00
|
|
|
.extra-info-wrapper & {
|
|
|
|
color: var(--header_primary-high);
|
2023-05-25 17:08:39 -04:00
|
|
|
}
|
2016-02-10 03:34:43 -05:00
|
|
|
}
|
2016-02-10 03:27:03 -05:00
|
|
|
|
2023-11-13 10:46:15 -05:00
|
|
|
.d-icon {
|
|
|
|
width: 0.74em;
|
|
|
|
height: 0.74em;
|
|
|
|
color: var(--primary-medium);
|
2015-01-29 01:48:55 -05:00
|
|
|
}
|
|
|
|
}
|
2015-01-28 22:53:02 -05:00
|
|
|
|
2013-02-05 14:16:51 -05:00
|
|
|
// Notification badge
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
.badge-notification {
|
|
|
|
@extend %badge;
|
2024-01-26 12:11:03 -05:00
|
|
|
position: relative;
|
|
|
|
top: -2px;
|
2019-01-17 15:46:55 -05:00
|
|
|
padding: 0.21em 0.42em;
|
|
|
|
min-width: 0.5em;
|
2020-08-03 22:57:10 -04:00
|
|
|
color: var(--secondary);
|
2022-10-12 09:31:59 -04:00
|
|
|
font-size: var(--font-down-2);
|
2022-10-12 10:05:42 -04:00
|
|
|
line-height: var(--line-height-small);
|
2013-08-02 15:41:02 -04:00
|
|
|
text-align: center;
|
2020-08-03 22:57:10 -04:00
|
|
|
background-color: var(--primary-low-mid-or-secondary-low);
|
2013-02-05 14:16:51 -05:00
|
|
|
&[href] {
|
2020-08-03 22:57:10 -04:00
|
|
|
color: var(--secondary);
|
2013-02-05 14:16:51 -05:00
|
|
|
}
|
|
|
|
|
2016-05-13 04:47:40 -04:00
|
|
|
&:hover {
|
2020-08-03 22:57:10 -04:00
|
|
|
color: var(--secondary);
|
2016-05-13 04:47:40 -04:00
|
|
|
}
|
|
|
|
|
2021-07-05 02:17:31 -04:00
|
|
|
// Unread posts
|
2013-02-05 14:16:51 -05:00
|
|
|
|
2018-06-08 05:49:31 -04:00
|
|
|
&.unread-posts {
|
2020-08-03 22:57:10 -04:00
|
|
|
background-color: var(--tertiary-med-or-tertiary);
|
|
|
|
color: var(--secondary);
|
2015-08-18 15:28:58 -04:00
|
|
|
font-weight: dark-light-choose(normal, bold);
|
2013-02-05 14:16:51 -05:00
|
|
|
}
|
|
|
|
|
2014-09-03 12:22:18 -04:00
|
|
|
&.new-topic {
|
|
|
|
background-color: transparent;
|
2024-01-26 12:11:03 -05:00
|
|
|
padding-left: 0.15em;
|
2014-09-03 12:22:18 -04:00
|
|
|
}
|
2014-03-11 17:26:25 -04:00
|
|
|
|
2014-09-03 16:33:56 -04:00
|
|
|
&.new-topic::before {
|
2020-09-23 11:32:19 -04:00
|
|
|
content: "";
|
2022-03-13 07:50:06 -04:00
|
|
|
background: var(--tertiary-med-or-tertiary);
|
2020-09-23 11:32:19 -04:00
|
|
|
display: inline-block;
|
2022-03-13 07:50:06 -04:00
|
|
|
height: 8px;
|
|
|
|
width: 8px;
|
2020-09-23 11:32:19 -04:00
|
|
|
border-radius: 50%;
|
2014-09-03 16:33:56 -04:00
|
|
|
}
|
|
|
|
|
2013-02-05 14:16:51 -05:00
|
|
|
// Click count
|
|
|
|
|
|
|
|
&.clicks {
|
|
|
|
font-weight: normal;
|
2020-08-03 22:57:10 -04:00
|
|
|
background-color: var(--primary-low);
|
2014-03-08 00:55:02 -05:00
|
|
|
top: -1px;
|
2020-08-03 22:57:10 -04:00
|
|
|
color: var(--primary-medium);
|
2013-11-17 22:32:58 -05:00
|
|
|
position: relative;
|
2014-07-25 12:22:55 -04:00
|
|
|
border: none;
|
2013-02-05 14:16:51 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Posts badge
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
.badge-posts {
|
2014-03-15 12:01:17 -04:00
|
|
|
font-weight: normal;
|
2022-10-12 09:31:59 -04:00
|
|
|
font-size: var(--font-0);
|
2022-10-12 10:05:42 -04:00
|
|
|
line-height: var(--line-height-small);
|
2013-02-05 14:16:51 -05:00
|
|
|
&[href] {
|
2020-08-03 22:57:10 -04:00
|
|
|
color: var(--primary-med-or-secondary-med);
|
2013-02-05 14:16:51 -05:00
|
|
|
}
|
2013-05-17 16:09:52 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
// Group badge
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
.badge-group {
|
|
|
|
@extend %badge;
|
2018-02-20 12:18:20 -05:00
|
|
|
padding: 2px 5px;
|
2020-08-03 22:57:10 -04:00
|
|
|
color: var(--primary);
|
|
|
|
background-color: var(--primary-low);
|
|
|
|
border-color: var(--primary-low);
|
2022-10-12 09:31:59 -04:00
|
|
|
font-size: var(--font-down-1);
|
2013-05-17 16:09:52 -04:00
|
|
|
}
|