2022-09-29 00:28:01 -04:00
|
|
|
:root {
|
|
|
|
--d-sidebar-section-link-prefix-margin-right: 0.4rem;
|
|
|
|
--d-sidebar-section-link-prefix-width: 20px;
|
|
|
|
}
|
|
|
|
|
2022-07-19 02:37:07 -04:00
|
|
|
.sidebar-section-link-wrapper {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2022-08-23 21:33:15 -04:00
|
|
|
position: relative;
|
2022-07-19 02:37:07 -04:00
|
|
|
|
|
|
|
.sidebar-section-link {
|
|
|
|
display: inline-flex;
|
|
|
|
width: 100%;
|
|
|
|
align-items: center;
|
|
|
|
color: var(--primary-high);
|
|
|
|
transition: background-color 0.25s;
|
|
|
|
|
2022-07-26 23:16:34 -04:00
|
|
|
&:focus,
|
2022-07-19 02:37:07 -04:00
|
|
|
&:hover {
|
2022-07-26 23:16:34 -04:00
|
|
|
background: var(--d-sidebar-highlight-color);
|
2022-08-23 21:33:15 -04:00
|
|
|
outline: none;
|
2022-07-19 02:37:07 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
&.active {
|
|
|
|
color: var(--primary);
|
2022-08-18 03:03:28 -04:00
|
|
|
background: var(--d-sidebar-highlight-color);
|
2022-09-29 00:28:01 -04:00
|
|
|
|
|
|
|
.sidebar-section-link-prefix {
|
|
|
|
&.icon {
|
|
|
|
color: var(--primary-high);
|
|
|
|
}
|
|
|
|
}
|
2022-07-19 02:37:07 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar-section-link-content-badge {
|
|
|
|
@include ellipsis;
|
|
|
|
padding-left: 0.5em;
|
|
|
|
text-align: right;
|
|
|
|
color: var(--tertiary);
|
|
|
|
font-size: var(--font-down-1);
|
|
|
|
font-weight: normal;
|
|
|
|
margin-left: auto;
|
|
|
|
}
|
|
|
|
|
2022-08-14 22:34:30 -04:00
|
|
|
.sidebar-section-link-suffix {
|
2022-08-18 03:03:28 -04:00
|
|
|
margin-left: 0.25rem;
|
|
|
|
font-size: var(--font-down-4);
|
2022-11-02 11:43:28 -04:00
|
|
|
color: var(--tertiary-medium);
|
2022-08-14 22:34:30 -04:00
|
|
|
}
|
|
|
|
|
2022-07-19 02:37:07 -04:00
|
|
|
.sidebar-section-link-content-text {
|
|
|
|
@include ellipsis;
|
|
|
|
|
2022-07-22 03:58:21 -04:00
|
|
|
.emoji {
|
|
|
|
width: 15px;
|
|
|
|
height: 15px;
|
|
|
|
}
|
|
|
|
|
2022-07-19 02:37:07 -04:00
|
|
|
.badge-wrapper {
|
|
|
|
font-size: 100%;
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
.category-name {
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar-section-link-personal-messages-sent,
|
|
|
|
.sidebar-section-link-personal-messages-new,
|
|
|
|
.sidebar-section-link-personal-messages-archive,
|
|
|
|
.sidebar-section-link-personal-messages-unread,
|
|
|
|
.sidebar-section-link-group-messages-new,
|
|
|
|
.sidebar-section-link-group-messages-unread,
|
|
|
|
.sidebar-section-link-group-messages-archive {
|
2022-08-18 03:03:28 -04:00
|
|
|
.sidebar-section-link-content-text {
|
2022-09-29 00:28:01 -04:00
|
|
|
margin-left: calc(
|
|
|
|
var(--d-sidebar-section-link-prefix-margin-right) +
|
|
|
|
var(--d-sidebar-section-link-prefix-width)
|
|
|
|
);
|
2022-08-18 03:03:28 -04:00
|
|
|
}
|
2022-07-19 02:37:07 -04:00
|
|
|
}
|
|
|
|
|
2022-09-27 21:58:07 -04:00
|
|
|
.sidebar-section-link-review {
|
|
|
|
.sidebar-section-link-content-badge {
|
|
|
|
color: var(--danger);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-07-19 02:37:07 -04:00
|
|
|
.sidebar-section-link-prefix {
|
2022-09-29 00:28:01 -04:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
2022-08-18 08:36:30 -04:00
|
|
|
flex-shrink: 0;
|
2022-09-29 00:28:01 -04:00
|
|
|
width: var(--d-sidebar-section-link-prefix-width);
|
|
|
|
height: var(--d-sidebar-section-link-prefix-width);
|
|
|
|
margin-right: var(--d-sidebar-section-link-prefix-margin-right);
|
2022-08-18 08:36:30 -04:00
|
|
|
|
2022-07-19 02:37:07 -04:00
|
|
|
&.image {
|
|
|
|
img {
|
2022-09-29 00:28:01 -04:00
|
|
|
border-radius: 100%;
|
2022-07-19 02:37:07 -04:00
|
|
|
aspect-ratio: auto 20 / 20;
|
2022-09-29 00:28:01 -04:00
|
|
|
width: calc(var(--d-sidebar-section-link-prefix-width) - 2px);
|
|
|
|
height: calc(var(--d-sidebar-section-link-prefix-width) - 2px);
|
2022-07-19 02:37:07 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.text {
|
|
|
|
text-align: center;
|
2022-09-29 00:28:01 -04:00
|
|
|
|
|
|
|
.prefix-text {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
border-radius: 100%;
|
|
|
|
background: rgba(var(--primary-rgb), 0.1);
|
|
|
|
width: calc(var(--d-sidebar-section-link-prefix-width) - 2px);
|
|
|
|
height: calc(var(--d-sidebar-section-link-prefix-width) - 2px);
|
2022-08-24 14:13:26 -04:00
|
|
|
}
|
2022-07-19 02:37:07 -04:00
|
|
|
}
|
|
|
|
|
2022-10-10 19:27:06 -04:00
|
|
|
&.icon,
|
|
|
|
&.span {
|
2022-07-19 02:37:07 -04:00
|
|
|
position: relative;
|
2022-09-29 00:28:01 -04:00
|
|
|
color: var(--primary-medium);
|
2022-08-16 21:40:43 -04:00
|
|
|
|
|
|
|
svg {
|
|
|
|
font-size: var(--font-down-1);
|
|
|
|
}
|
2022-07-19 02:37:07 -04:00
|
|
|
|
2022-09-29 00:28:01 -04:00
|
|
|
.prefix-badge {
|
2022-07-19 02:37:07 -04:00
|
|
|
position: absolute;
|
2022-08-16 21:40:43 -04:00
|
|
|
background-color: transparent;
|
2022-07-19 02:37:07 -04:00
|
|
|
border-radius: 50%;
|
|
|
|
padding: 2px 2px 3px;
|
|
|
|
color: var(--primary-high);
|
|
|
|
height: 0.5rem;
|
|
|
|
width: 0.5rem;
|
2022-08-03 21:49:08 -04:00
|
|
|
top: -0.2em;
|
|
|
|
right: 0;
|
2022-09-29 00:28:01 -04:00
|
|
|
margin-right: -0.2em;
|
2022-07-19 02:37:07 -04:00
|
|
|
}
|
|
|
|
}
|
2022-10-10 19:27:06 -04:00
|
|
|
.prefix-span {
|
|
|
|
width: 0.9em;
|
|
|
|
height: 0.9em;
|
|
|
|
}
|
2022-07-19 02:37:07 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar-section-link-hover {
|
2022-08-18 03:03:28 -04:00
|
|
|
margin-left: auto;
|
|
|
|
|
2022-07-19 02:37:07 -04:00
|
|
|
.sidebar-section-hover-button {
|
|
|
|
display: none;
|
|
|
|
color: var(--primary-medium);
|
|
|
|
border: none;
|
|
|
|
background: transparent;
|
2022-08-23 21:33:15 -04:00
|
|
|
padding: 0 0 0 0.5em;
|
|
|
|
height: 100%;
|
2022-07-19 02:37:07 -04:00
|
|
|
transition: background-color 0.25s;
|
|
|
|
|
2022-08-23 21:33:15 -04:00
|
|
|
&:focus,
|
|
|
|
.discourse-no-touch & {
|
|
|
|
&:hover {
|
|
|
|
color: var(--primary);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-07-19 02:37:07 -04:00
|
|
|
svg {
|
|
|
|
font-size: var(--font-down-1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
.sidebar-section-hover-button {
|
|
|
|
background: var(--primary-low);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
.sidebar-section-hover-button {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|