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
|
|
|
// --------------------------------------------------
|
|
|
|
|
2015-03-04 22:15:21 -05:00
|
|
|
.badge-wrapper {
|
2018-01-12 17:27:38 -05:00
|
|
|
font-size: $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;
|
|
|
|
.category-name {
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
overflow: hidden;
|
2018-02-26 14:20:32 -05:00
|
|
|
}
|
2018-01-11 07:05:29 -05:00
|
|
|
.d-icon {
|
|
|
|
margin-right: 3px;
|
2018-12-10 16:06:26 -05:00
|
|
|
width: 0.74em;
|
|
|
|
height: 0.74em;
|
2019-03-25 09:29:38 -04:00
|
|
|
color: inherit;
|
2018-01-11 07:05:29 -05:00
|
|
|
}
|
|
|
|
}
|
2015-01-29 01:34:05 -05:00
|
|
|
|
2018-06-08 05:49:31 -04:00
|
|
|
// ----- Bullet
|
2017-08-04 14:12:21 -04:00
|
|
|
|
2018-06-08 05:49:31 -04:00
|
|
|
&.bullet {
|
2018-01-22 17:14:40 -05:00
|
|
|
margin-right: 12px;
|
2015-03-09 12:25:27 -04:00
|
|
|
span.badge-category {
|
2020-08-03 22:57:10 -04:00
|
|
|
color: var(--primary-high);
|
2015-09-09 16:20:04 -04:00
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
2015-03-09 12:25:27 -04:00
|
|
|
.extra-info-wrapper & {
|
2020-08-03 22:57:10 -04:00
|
|
|
color: var(--header-primary);
|
2015-03-09 12:25:27 -04:00
|
|
|
}
|
2016-01-18 04:08:24 -05:00
|
|
|
}
|
2018-06-08 05:49:31 -04:00
|
|
|
.badge-category-parent-bg,
|
|
|
|
.badge-category-bg {
|
2018-12-17 21:05:32 -05:00
|
|
|
flex: 0 0 auto;
|
2018-06-08 05:49:31 -04:00
|
|
|
width: 9px;
|
|
|
|
height: 9px;
|
|
|
|
margin-right: 5px;
|
|
|
|
display: inline-block;
|
2016-01-18 04:08:24 -05:00
|
|
|
}
|
2018-06-08 05:49:31 -04:00
|
|
|
.badge-category-parent-bg {
|
|
|
|
// Subcategories
|
2018-02-02 19:03:25 -05:00
|
|
|
width: 5px;
|
|
|
|
margin-right: 0;
|
2018-06-08 05:49:31 -04:00
|
|
|
+ .badge-category-bg {
|
2016-01-18 04:08:24 -05:00
|
|
|
width: 5px;
|
|
|
|
}
|
|
|
|
}
|
2018-12-06 19:22:04 -05:00
|
|
|
.d-icon {
|
2020-08-03 22:57:10 -04:00
|
|
|
color: var(--primary-medium);
|
2018-12-06 19:22:04 -05:00
|
|
|
}
|
2016-01-18 04:08:24 -05:00
|
|
|
}
|
2015-03-09 12:25:27 -04:00
|
|
|
|
2018-06-08 05:49:31 -04:00
|
|
|
// ----- Box
|
2015-03-09 12:25:27 -04:00
|
|
|
|
2018-06-08 05:49:31 -04:00
|
|
|
&.box {
|
2015-04-14 15:54:17 -04:00
|
|
|
margin-right: 5px;
|
2018-02-02 21:29:51 -05:00
|
|
|
padding: 2px 4px 2px 4px;
|
2018-02-02 19:03:25 -05:00
|
|
|
display: inline-flex;
|
2015-01-28 22:53:02 -05:00
|
|
|
span {
|
2015-09-09 14:46:40 -04:00
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
2018-06-08 05:49:31 -04:00
|
|
|
&.badge-category-bg,
|
|
|
|
&.badge-category-parent-bg {
|
2015-03-04 22:15:21 -05:00
|
|
|
position: absolute;
|
2018-01-17 11:54:51 -05:00
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
2015-03-04 22:15:21 -05:00
|
|
|
}
|
|
|
|
|
2018-06-08 05:49:31 -04:00
|
|
|
&.badge-category-parent-bg {
|
|
|
|
// Subcategories
|
2015-03-04 22:15:21 -05: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-02 19:03:25 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
+ .topic-header-extra {
|
2018-06-08 05:49:31 -04:00
|
|
|
padding: 2px 4px 2px 4px;
|
2018-02-02 19:03:25 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-06-08 05:49:31 -04:00
|
|
|
// ----- Bar
|
2018-02-02 19:03:25 -05:00
|
|
|
|
2018-06-08 05:49:31 -04:00
|
|
|
&.bar {
|
2018-02-02 19:03:25 -05:00
|
|
|
margin-right: 5px;
|
|
|
|
|
|
|
|
span.badge-category {
|
2020-08-03 22:57:10 -04:00
|
|
|
color: var(--primary-high);
|
2021-11-01 11:17:41 -04:00
|
|
|
padding-left: 4px;
|
2018-02-02 19:03:25 -05:00
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
|
|
|
.extra-info-wrapper & {
|
2020-08-03 22:57:10 -04:00
|
|
|
color: var(--header-primary);
|
2018-02-02 19:03:25 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-06-08 05:49:31 -04:00
|
|
|
.badge-category-parent-bg,
|
|
|
|
.badge-category-bg {
|
2018-02-02 19:03:25 -05:00
|
|
|
display: inline-block;
|
2021-11-01 11:17:41 -04:00
|
|
|
padding-left: 1px;
|
|
|
|
padding-right: 1px;
|
2018-02-02 19:03:25 -05:00
|
|
|
|
|
|
|
&:before {
|
|
|
|
content: "\a0";
|
2015-03-04 22:15:21 -05:00
|
|
|
}
|
2015-02-06 00:20:55 -05:00
|
|
|
}
|
|
|
|
}
|
2015-01-30 01:57:46 -05:00
|
|
|
|
2018-06-08 05:49:31 -04:00
|
|
|
// ----- No category style
|
2018-02-02 19:03:25 -05:00
|
|
|
|
2018-06-08 05:49:31 -04:00
|
|
|
&.none {
|
2020-08-03 22:57:10 -04:00
|
|
|
color: var(--primary-high);
|
2018-02-02 19:03:25 -05:00
|
|
|
margin-right: 5px;
|
2016-02-10 03:34:43 -05:00
|
|
|
}
|
2016-02-10 03:27:03 -05:00
|
|
|
}
|
|
|
|
|
2015-03-04 22:15:21 -05:00
|
|
|
// Category badge dropdown
|
|
|
|
// --------------------------------------------------
|
2015-01-28 22:53:02 -05:00
|
|
|
|
2015-03-04 22:15:21 -05:00
|
|
|
.list-controls {
|
2017-09-08 14:47:39 -04:00
|
|
|
.category-breadcrumb {
|
2018-01-24 05:48:20 -05:00
|
|
|
a.badge-category {
|
2015-03-04 22:15:21 -05:00
|
|
|
display: inline-block;
|
2018-01-12 17:27:38 -05:00
|
|
|
padding: 6px 8px;
|
|
|
|
line-height: $line-height-medium;
|
2015-03-04 22:15:21 -05:00
|
|
|
}
|
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;
|
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);
|
2018-01-12 17:27:38 -05:00
|
|
|
font-size: $font-down-2;
|
|
|
|
line-height: $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;
|
|
|
|
}
|
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: "";
|
|
|
|
background: var(--tertiary-high);
|
|
|
|
display: inline-block;
|
|
|
|
height: 0.4em;
|
|
|
|
width: 0.4em;
|
|
|
|
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;
|
2018-01-12 17:27:38 -05:00
|
|
|
font-size: $font-0;
|
|
|
|
line-height: $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);
|
2018-01-12 17:27:38 -05:00
|
|
|
font-size: $font-down-1;
|
2013-05-17 16:09:52 -04:00
|
|
|
}
|