2022-06-28 22:49:01 -04:00
|
|
|
:root {
|
|
|
|
--d-sidebar-width: 240px;
|
|
|
|
}
|
|
|
|
|
2022-05-05 02:35:08 -04:00
|
|
|
.header-sidebar-toggle {
|
|
|
|
margin-right: 1em;
|
2022-06-30 16:14:17 -04:00
|
|
|
|
|
|
|
@media screen and (min-width: 1300px) {
|
|
|
|
// extending the toggle beyond the page when space allows
|
|
|
|
// for better logo alignment with content
|
|
|
|
body:not(.has-sidebar-page) & {
|
|
|
|
margin-left: -3.7em;
|
|
|
|
}
|
|
|
|
}
|
2022-05-05 02:35:08 -04:00
|
|
|
|
|
|
|
button {
|
|
|
|
position: relative;
|
|
|
|
font-size: var(--font-up-2);
|
2022-06-30 16:14:17 -04:00
|
|
|
padding: 0.5em;
|
2022-05-05 02:35:08 -04:00
|
|
|
|
|
|
|
.discourse-no-touch & {
|
|
|
|
&:hover {
|
|
|
|
background: var(--primary-low);
|
|
|
|
.d-icon {
|
|
|
|
color: var(--primary-medium);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#main-outlet-wrapper {
|
|
|
|
.sidebar-wrapper {
|
|
|
|
grid-area: sidebar;
|
|
|
|
position: sticky;
|
|
|
|
top: var(--header-offset);
|
|
|
|
height: calc(100vh - var(--header-offset));
|
|
|
|
align-self: start;
|
|
|
|
overflow-y: auto;
|
|
|
|
background-color: var(--primary-very-low);
|
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar-container {
|
|
|
|
box-sizing: border-box;
|
|
|
|
height: 100%;
|
|
|
|
width: 240px;
|
2022-06-30 16:14:29 -04:00
|
|
|
padding: 1em 0;
|
|
|
|
overflow-x: hidden;
|
|
|
|
overflow-y: auto;
|
|
|
|
|
|
|
|
// custom scrollbar styling
|
|
|
|
--scrollbarBg: transparent;
|
|
|
|
--scrollbarThumbBg: var(--primary-low);
|
|
|
|
--scrollbarWidth: 1em;
|
|
|
|
|
|
|
|
scrollbar-color: transparent var(--scrollbarBg);
|
|
|
|
transition: scrollbar-color 0.2s ease-in-out;
|
|
|
|
&::-webkit-scrollbar-thumb {
|
|
|
|
background-color: transparent;
|
|
|
|
border-radius: calc(var(--scrollbarWidth) / 2);
|
|
|
|
border: calc(var(--scrollbarWidth) / 4) solid var(--primary-very-low);
|
|
|
|
}
|
|
|
|
&:hover {
|
|
|
|
scrollbar-color: var(--scrollbarThumbBg) var(--scrollbarBg);
|
|
|
|
&::-webkit-scrollbar-thumb {
|
|
|
|
background-color: var(--scrollbarThumbBg);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&::-webkit-scrollbar {
|
|
|
|
width: var(--scrollbarWidth);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar-scroll-wrap {
|
|
|
|
// limit the wrapper width, so when the scrollbar is added the content doesn't shift
|
|
|
|
max-width: calc(var(--d-sidebar-width) - var(--scrollbarWidth));
|
2022-05-05 02:35:08 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar-toggle {
|
|
|
|
display: flex;
|
|
|
|
justify-content: flex-end;
|
|
|
|
}
|
2022-05-11 01:43:24 -04:00
|
|
|
|
2022-05-12 21:35:15 -04:00
|
|
|
.sidebar-section-wrapper {
|
|
|
|
margin-bottom: 1em;
|
|
|
|
}
|
|
|
|
|
2022-05-11 01:43:24 -04:00
|
|
|
.sidebar-section-header {
|
|
|
|
display: flex;
|
|
|
|
text-transform: uppercase;
|
|
|
|
font-size: 1em;
|
|
|
|
font-weight: bold;
|
2022-06-28 22:49:01 -04:00
|
|
|
align-items: stretch;
|
2022-05-11 01:43:24 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar-section-header-link {
|
2022-06-28 22:49:01 -04:00
|
|
|
@include ellipsis;
|
|
|
|
flex: 1 1 auto;
|
|
|
|
color: var(--primary);
|
|
|
|
font-size: var(--font-down-1);
|
|
|
|
padding: 0.25em 0.5em;
|
|
|
|
|
2022-05-11 01:43:24 -04:00
|
|
|
&:visited {
|
|
|
|
color: var(--primary);
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background: var(--primary-low);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar-section-header-button {
|
|
|
|
background: none;
|
|
|
|
border: none;
|
|
|
|
padding: 0.25em 0.5em;
|
|
|
|
|
|
|
|
.d-icon {
|
|
|
|
font-size: $font-down-1;
|
|
|
|
color: var(--primary-medium);
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background: var(--primary-low);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar-section-link-wrapper {
|
|
|
|
margin-left: 1.5em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar-section-link {
|
|
|
|
display: flex;
|
2022-06-23 22:28:35 -04:00
|
|
|
align-items: center;
|
2022-05-11 01:43:24 -04:00
|
|
|
padding: 0.25em 0.5em;
|
|
|
|
color: var(--primary-high);
|
|
|
|
font-size: var(--font-down-1);
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background: var(--primary-low);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.active {
|
|
|
|
color: var(--primary);
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
2022-06-08 23:14:01 -04:00
|
|
|
|
2022-06-23 22:28:35 -04:00
|
|
|
.sidebar-section-link-content-text {
|
|
|
|
width: 70%;
|
|
|
|
|
|
|
|
.badge-wrapper {
|
|
|
|
font-size: 100%;
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
.category-name {
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
|
|
|
}
|
2022-06-08 23:14:01 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar-section-message-wrapper {
|
|
|
|
display: flex;
|
|
|
|
margin-left: 1.5em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar-section-message {
|
|
|
|
padding: 0.25em 0.5em;
|
|
|
|
font-size: var(--font-down-1);
|
|
|
|
color: var(--primary-high);
|
2022-05-11 01:43:24 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar-section-link-content-badge {
|
|
|
|
font-size: var(--font-down-1);
|
2022-06-30 14:15:39 -04:00
|
|
|
color: var(--tertiary);
|
2022-05-11 01:43:24 -04:00
|
|
|
margin-left: auto;
|
2022-06-30 14:15:39 -04:00
|
|
|
font-weight: normal;
|
|
|
|
margin-right: 0.4em;
|
2022-05-11 01:43:24 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar-section-header-caret {
|
2022-06-28 22:49:01 -04:00
|
|
|
flex: 0 0 auto;
|
2022-05-11 01:43:24 -04:00
|
|
|
width: 1.5em;
|
|
|
|
display: flex;
|
2022-06-28 22:49:01 -04:00
|
|
|
justify-content: flex-end;
|
|
|
|
align-items: center;
|
2022-05-11 01:43:24 -04:00
|
|
|
border: none;
|
2022-06-28 22:49:01 -04:00
|
|
|
background: transparent;
|
|
|
|
padding: 0.25em 0;
|
2022-05-11 01:43:24 -04:00
|
|
|
|
2022-06-28 22:49:01 -04:00
|
|
|
svg {
|
|
|
|
display: block;
|
|
|
|
flex: 0 0 auto;
|
|
|
|
}
|
2022-05-11 01:43:24 -04:00
|
|
|
|
|
|
|
.d-icon {
|
|
|
|
font-size: $font-down-1;
|
|
|
|
color: var(--primary-medium);
|
|
|
|
}
|
|
|
|
}
|
2022-06-16 01:33:40 -04:00
|
|
|
|
|
|
|
.sidebar-section-content {
|
|
|
|
hr {
|
|
|
|
margin: 0em 1.5em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.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 {
|
|
|
|
margin-left: 0.5em;
|
|
|
|
}
|
2022-05-05 02:35:08 -04:00
|
|
|
}
|