2022-09-29 12:28:01 +08:00
|
|
|
:root {
|
|
|
|
--d-sidebar-section-header-text-font-size: var(--font-up-1);
|
|
|
|
}
|
|
|
|
|
2022-07-19 14:37:07 +08:00
|
|
|
.sidebar-section-wrapper {
|
2022-09-29 12:28:01 +08:00
|
|
|
.discourse-no-touch & {
|
|
|
|
&:hover {
|
|
|
|
.sidebar-section-header-wrapper {
|
|
|
|
.btn.dropdown-select-box-header,
|
|
|
|
.sidebar-section-header-button {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-08-18 15:03:28 +08:00
|
|
|
.sidebar-section-header-wrapper {
|
2022-07-19 14:37:07 +08:00
|
|
|
display: flex;
|
2022-09-29 12:28:01 +08:00
|
|
|
|
2022-08-25 09:14:55 +08:00
|
|
|
.discourse-no-touch & {
|
|
|
|
&:hover {
|
|
|
|
background: var(--d-sidebar-highlight-color);
|
2022-07-19 14:37:07 +08:00
|
|
|
}
|
2022-08-25 09:14:55 +08:00
|
|
|
}
|
2022-09-29 12:28:01 +08:00
|
|
|
|
2022-08-25 09:14:55 +08:00
|
|
|
&:focus-within {
|
|
|
|
background: var(--d-sidebar-highlight-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn.dropdown-select-box-header,
|
|
|
|
.sidebar-section-header-button {
|
2022-09-29 12:28:01 +08:00
|
|
|
.discourse-no-touch & {
|
|
|
|
transition: all 0.25s;
|
|
|
|
opacity: 0;
|
2022-10-06 20:35:06 +08:00
|
|
|
|
|
|
|
&:focus {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
2022-09-29 12:28:01 +08:00
|
|
|
}
|
|
|
|
|
2022-08-25 09:14:55 +08:00
|
|
|
background: transparent;
|
|
|
|
border: none;
|
2022-09-29 12:28:01 +08:00
|
|
|
margin-right: calc(var(--d-sidebar-row-horizontal-padding) / 3 * -1);
|
2022-08-25 09:14:55 +08:00
|
|
|
padding: calc(var(--d-sidebar-row-horizontal-padding) / 5)
|
|
|
|
calc(var(--d-sidebar-row-horizontal-padding) / 3);
|
2022-09-29 12:28:01 +08:00
|
|
|
|
2022-07-19 14:37:07 +08:00
|
|
|
.d-icon {
|
|
|
|
font-size: var(--font-down-1);
|
|
|
|
color: var(--primary-medium);
|
2022-08-25 09:14:55 +08:00
|
|
|
margin: 0;
|
2022-07-19 14:37:07 +08:00
|
|
|
}
|
2022-09-29 12:28:01 +08:00
|
|
|
|
2022-08-25 09:14:55 +08:00
|
|
|
&:focus {
|
|
|
|
outline: none;
|
|
|
|
background: var(--primary-medium);
|
|
|
|
.d-icon {
|
|
|
|
color: var(--primary-very-low);
|
|
|
|
}
|
|
|
|
}
|
2022-09-29 12:28:01 +08:00
|
|
|
|
2022-08-25 09:14:55 +08:00
|
|
|
.discourse-no-touch & {
|
2022-08-24 09:33:15 +08:00
|
|
|
&:hover {
|
2022-08-25 09:14:55 +08:00
|
|
|
background: var(--primary-medium);
|
2022-08-24 09:33:15 +08:00
|
|
|
.d-icon {
|
2022-08-25 09:14:55 +08:00
|
|
|
color: var(--primary-very-low);
|
2022-08-24 09:33:15 +08:00
|
|
|
}
|
|
|
|
}
|
2022-07-19 14:37:07 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-08-18 15:03:28 +08:00
|
|
|
.sidebar-section-header {
|
2022-07-19 14:37:07 +08:00
|
|
|
flex: 1 1 auto;
|
|
|
|
color: var(--primary);
|
2022-08-18 15:03:28 +08:00
|
|
|
align-items: center;
|
2022-08-24 09:33:15 +08:00
|
|
|
min-width: 0;
|
2022-09-29 12:28:01 +08:00
|
|
|
padding: 0;
|
2022-07-19 14:37:07 +08:00
|
|
|
|
2022-08-18 15:03:28 +08:00
|
|
|
&.sidebar-section-header-collapsable {
|
2022-08-18 20:14:44 +08:00
|
|
|
justify-content: flex-start;
|
2022-10-06 20:35:06 +08:00
|
|
|
|
|
|
|
&:focus {
|
|
|
|
background: transparent;
|
|
|
|
}
|
2022-07-19 14:37:07 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-08-18 15:03:28 +08:00
|
|
|
.sidebar-section-header-text {
|
2022-09-24 08:18:58 +08:00
|
|
|
line-height: normal;
|
2022-08-18 15:03:28 +08:00
|
|
|
margin-right: 0.25em;
|
2022-09-29 12:28:01 +08:00
|
|
|
font-size: var(--d-sidebar-section-header-text-font-size);
|
2022-08-24 09:33:15 +08:00
|
|
|
@include ellipsis;
|
2022-08-18 15:03:28 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar-section-header-caret {
|
2022-09-29 12:28:01 +08:00
|
|
|
display: flex;
|
2022-08-24 09:33:15 +08:00
|
|
|
flex: 0 0 auto;
|
2022-09-29 12:28:01 +08: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);
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
|
|
|
|
svg {
|
|
|
|
font-size: var(--font-down-1);
|
|
|
|
color: var(--primary-medium);
|
|
|
|
}
|
2022-08-18 15:03:28 +08:00
|
|
|
}
|
|
|
|
|
2022-07-19 14:37:07 +08:00
|
|
|
.select-kit-collection {
|
|
|
|
.texts {
|
|
|
|
font-size: var(--font-0);
|
|
|
|
text-transform: none;
|
|
|
|
line-height: var(--line-height-medium);
|
|
|
|
.name {
|
|
|
|
font-size: var(--font-0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar-section-message-wrapper {
|
|
|
|
display: flex;
|
2022-09-23 01:05:32 +08:00
|
|
|
padding-top: 0;
|
2022-09-29 14:06:28 +08:00
|
|
|
height: initial;
|
2022-07-19 14:37:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar-section-message {
|
2022-09-23 01:05:32 +08:00
|
|
|
color: var(--primary);
|
2022-09-29 14:44:23 +08:00
|
|
|
padding-left: calc(
|
|
|
|
var(--d-sidebar-section-link-prefix-width) +
|
|
|
|
var(--d-sidebar-section-link-prefix-margin-right)
|
|
|
|
);
|
2022-07-19 14:37:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar-section-content {
|
2022-09-29 12:28:01 +08:00
|
|
|
padding-bottom: 1em;
|
|
|
|
|
2022-07-19 14:37:07 +08:00
|
|
|
hr {
|
|
|
|
margin: 0em 1.5em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|