2022-06-29 10:49:01 +08:00
|
|
|
:root {
|
2022-07-20 10:56:41 +08:00
|
|
|
--d-sidebar-width: #{$d-sidebar-width};
|
2023-02-14 06:51:42 +08:00
|
|
|
@include breakpoint(large) {
|
|
|
|
--d-sidebar-width: #{$d-sidebar-narrow-width};
|
|
|
|
}
|
2022-07-07 01:31:06 +08:00
|
|
|
--d-sidebar-animation-time: 0.25s;
|
|
|
|
--d-sidebar-animation-ease: ease-in-out;
|
2022-09-29 12:28:01 +08:00
|
|
|
// 1.25rem gets text left-aligned with the hamburger icon
|
|
|
|
--d-sidebar-row-horizontal-padding: 1.25rem;
|
2023-05-24 23:00:20 +08:00
|
|
|
// ems so height is variable along with font size
|
|
|
|
--d-sidebar-row-height: 2.15em;
|
2022-09-29 12:28:01 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar-row {
|
|
|
|
box-sizing: border-box;
|
|
|
|
height: var(--d-sidebar-row-height);
|
2023-05-24 23:00:20 +08:00
|
|
|
padding: 0 var(--d-sidebar-row-horizontal-padding);
|
2022-09-29 12:28:01 +08:00
|
|
|
align-items: center;
|
2022-06-29 10:49:01 +08:00
|
|
|
}
|
|
|
|
|
2022-08-18 15:03:28 +08:00
|
|
|
.sidebar-wrapper {
|
2022-08-25 01:26:25 +08:00
|
|
|
display: flex;
|
2022-08-18 15:03:28 +08:00
|
|
|
--d-sidebar-highlight-color: var(--primary-low);
|
2022-09-29 13:52:23 +08:00
|
|
|
background-color: var(--primary-very-low);
|
2022-08-18 15:03:28 +08:00
|
|
|
grid-area: sidebar;
|
|
|
|
position: sticky;
|
|
|
|
top: var(--header-offset);
|
2022-08-24 09:33:15 +08:00
|
|
|
|
2023-03-31 06:28:22 +08:00
|
|
|
@include unselectable;
|
2023-03-29 11:32:28 +08:00
|
|
|
|
2023-05-15 17:46:33 +08:00
|
|
|
// 1dvh with fallback for old browsers
|
|
|
|
--1dvh: 1vh;
|
|
|
|
@supports (height: 1dvh) {
|
|
|
|
--1dvh: 1dvh;
|
2023-04-27 23:31:09 +08:00
|
|
|
}
|
|
|
|
|
2023-05-15 17:46:33 +08:00
|
|
|
height: calc(
|
|
|
|
var(--composer-vh, var(--1dvh)) * 100 - var(--header-offset, 0px)
|
|
|
|
);
|
2023-04-27 23:31:09 +08:00
|
|
|
|
2022-08-18 15:03:28 +08:00
|
|
|
align-self: start;
|
|
|
|
overflow-y: auto;
|
|
|
|
|
2022-05-05 14:35:08 +08:00
|
|
|
.sidebar-container {
|
2022-07-22 13:06:47 +08:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2022-05-05 14:35:08 +08:00
|
|
|
box-sizing: border-box;
|
|
|
|
height: 100%;
|
2022-08-25 01:26:25 +08:00
|
|
|
width: 100%;
|
2022-08-24 09:33:15 +08:00
|
|
|
padding: 0;
|
2022-07-01 04:14:29 +08:00
|
|
|
overflow-x: hidden;
|
2022-08-25 01:26:25 +08:00
|
|
|
// allows sidebar to scroll to the bottom when the composer is open
|
2023-03-21 04:06:49 +08:00
|
|
|
height: calc(100% - var(--composer-height, 0px));
|
2022-08-19 10:51:55 +08:00
|
|
|
}
|
|
|
|
|
2022-08-25 01:26:25 +08:00
|
|
|
.sidebar-sections {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
box-sizing: border-box;
|
|
|
|
flex: 1;
|
2023-05-24 23:00:20 +08:00
|
|
|
padding: 1.35em 0 1em;
|
2022-08-19 10:51:55 +08:00
|
|
|
overflow-x: hidden;
|
|
|
|
overflow-y: overlay;
|
2022-07-01 04:14:29 +08:00
|
|
|
|
|
|
|
// custom scrollbar styling
|
|
|
|
--scrollbarBg: transparent;
|
|
|
|
--scrollbarThumbBg: var(--primary-low);
|
2022-08-25 03:46:01 +08:00
|
|
|
--scrollbarWidth: 0.5em;
|
2022-07-01 04:14:29 +08:00
|
|
|
|
|
|
|
scrollbar-color: transparent var(--scrollbarBg);
|
2022-07-12 00:58:48 +08:00
|
|
|
transition: scrollbar-color 0.25s ease-in-out;
|
|
|
|
transition-delay: 0.5s;
|
|
|
|
|
2022-08-25 03:46:01 +08:00
|
|
|
&::-webkit-scrollbar {
|
|
|
|
width: var(--scrollbarWidth);
|
|
|
|
}
|
|
|
|
|
2022-07-01 04:14:29 +08:00
|
|
|
&::-webkit-scrollbar-thumb {
|
|
|
|
background-color: transparent;
|
|
|
|
border-radius: calc(var(--scrollbarWidth) / 2);
|
2022-08-24 09:33:15 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&::-webkit-scrollbar-track {
|
|
|
|
background-color: transparent;
|
2022-07-01 04:14:29 +08:00
|
|
|
}
|
2022-08-18 15:03:28 +08:00
|
|
|
|
2022-07-01 04:14:29 +08:00
|
|
|
&:hover {
|
|
|
|
scrollbar-color: var(--scrollbarThumbBg) var(--scrollbarBg);
|
2022-08-19 10:51:55 +08:00
|
|
|
|
2022-07-01 04:14:29 +08:00
|
|
|
&::-webkit-scrollbar-thumb {
|
|
|
|
background-color: var(--scrollbarThumbBg);
|
|
|
|
}
|
2022-08-19 10:51:55 +08:00
|
|
|
|
2022-07-12 00:58:48 +08:00
|
|
|
transition-delay: 0s;
|
2022-07-01 04:14:29 +08:00
|
|
|
}
|
2022-08-24 09:33:15 +08:00
|
|
|
}
|
2023-02-08 08:45:34 +08:00
|
|
|
.sidebar-footer-wrapper {
|
|
|
|
.btn-flat.add-section {
|
|
|
|
padding: 0.25em 0.4em;
|
|
|
|
&:hover {
|
|
|
|
background: var(--d-sidebar-highlight-color);
|
|
|
|
svg {
|
|
|
|
color: var(--primary-medium);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-08-24 09:33:15 +08:00
|
|
|
}
|
|
|
|
|
2023-02-03 11:44:40 +08:00
|
|
|
.sidebar-section-form-modal {
|
|
|
|
.modal-inner-container {
|
|
|
|
width: var(--modal-max-width);
|
|
|
|
}
|
2023-02-08 08:45:34 +08:00
|
|
|
form {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
2023-02-22 05:55:44 +08:00
|
|
|
.input-group input {
|
2023-02-03 11:44:40 +08:00
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
input.warning {
|
|
|
|
border: 1px solid var(--danger);
|
|
|
|
}
|
|
|
|
.row-wrapper {
|
|
|
|
display: grid;
|
2023-02-08 08:45:34 +08:00
|
|
|
grid-template-columns: auto auto auto 2em;
|
2023-02-03 11:44:40 +08:00
|
|
|
gap: 1em;
|
|
|
|
margin-top: 1em;
|
|
|
|
}
|
|
|
|
.delete-link {
|
|
|
|
height: 1em;
|
|
|
|
align-self: end;
|
|
|
|
margin-bottom: 0.75em;
|
|
|
|
margin-right: 1em;
|
|
|
|
}
|
|
|
|
.btn-flat.add-link {
|
|
|
|
margin-top: 1em;
|
2023-02-08 08:45:34 +08:00
|
|
|
margin-left: -0.65em;
|
2023-02-03 11:44:40 +08:00
|
|
|
&:active,
|
|
|
|
&:focus {
|
|
|
|
background: none;
|
|
|
|
}
|
2023-02-08 08:45:34 +08:00
|
|
|
svg {
|
|
|
|
color: var(--tertiary);
|
|
|
|
width: 0.75em;
|
|
|
|
height: 0.75em;
|
|
|
|
}
|
|
|
|
&:hover svg {
|
|
|
|
color: var(--tertiary-hover);
|
|
|
|
}
|
2023-02-03 11:44:40 +08:00
|
|
|
}
|
|
|
|
.modal-footer {
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
|
|
.delete {
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|