mirror of
https://github.com/gethinode/hinode.git
synced 2025-10-17 23:13:11 +00:00
130 lines
2.6 KiB
SCSS
130 lines
2.6 KiB
SCSS
// scss-docs-start sidebar
|
|
.sidebar {
|
|
top: var(--navbar-offset);
|
|
}
|
|
|
|
.sidebar-overflow {
|
|
top: var(--navbar-offset);
|
|
max-height: 90vh;
|
|
overflow-y: auto;
|
|
scrollbar-gutter: stable;
|
|
}
|
|
|
|
.sidebar-item {
|
|
color: rgba(0, 0, 0, 0.65);
|
|
margin-left: 0 !important;
|
|
display: inline-block;
|
|
padding: 0.1875rem 0.5rem !important;
|
|
|
|
&.active {
|
|
color: $primary;
|
|
}
|
|
|
|
&:hover,
|
|
&:focus {
|
|
color: $primary;
|
|
background-color: tint-color($primary, 90%);
|
|
}
|
|
}
|
|
|
|
.sidebar-item-group {
|
|
&:hover,
|
|
&:focus {
|
|
color: $primary;
|
|
background-color: tint-color($primary, 90%);
|
|
}
|
|
|
|
> div > a {
|
|
color: var(--bs-body-color) !important;
|
|
text-decoration: none;
|
|
cursor: pointer;
|
|
}
|
|
}
|
|
|
|
.sidebar-item-group > div {
|
|
padding: 0.1875rem 0.5rem !important;
|
|
}
|
|
|
|
.btn-toggle-group {
|
|
padding: 0.25rem 0.5rem;
|
|
font-weight: 600;
|
|
color: rgba(0, 0, 0, 0.65);
|
|
background-color: transparent;
|
|
|
|
&:hover,
|
|
&:focus {
|
|
background-color: transparent;
|
|
}
|
|
|
|
&::before {
|
|
width: 1.25em;
|
|
line-height: 0;
|
|
content: $btn-toggle;
|
|
transition: transform 0.35s ease;
|
|
transform-origin: 0.5em 50%;
|
|
}
|
|
}
|
|
|
|
.btn-toggle-group[aria-expanded="true"] {
|
|
&::before {
|
|
transform: rotate(90deg);
|
|
}
|
|
}
|
|
|
|
@if $enable-dark-mode {
|
|
@include color-mode(dark) {
|
|
.sidebar-item {
|
|
color: var(--bs-body-color);
|
|
|
|
&.active {
|
|
color: $primary-text-emphasis-dark !important;
|
|
}
|
|
|
|
&:hover,
|
|
&:focus {
|
|
color: $primary-text-emphasis-dark !important;
|
|
background-color: transparent;
|
|
box-shadow: inset 0 0 0 1px $primary-bg-subtle-dark;
|
|
}
|
|
}
|
|
|
|
.sidebar-item-group {
|
|
color: var(--bs-body-color) !important;
|
|
|
|
&.active {
|
|
color: $primary-text-emphasis-dark !important;
|
|
}
|
|
|
|
&:hover,
|
|
&:focus {
|
|
color: white !important;
|
|
background-color: transparent;
|
|
box-shadow: inset 0 0 0 1px $primary-bg-subtle-dark;
|
|
}
|
|
}
|
|
|
|
.btn-toggle-group {
|
|
color: var(--bs-body-color);
|
|
|
|
&:hover,
|
|
&:focus {
|
|
background-color: transparent;
|
|
}
|
|
|
|
&::before {
|
|
content: $btn-toggle-dark;
|
|
}
|
|
}
|
|
|
|
.btn-toggle-group[aria-expanded="true"] {
|
|
color: var(--bs-secondary-color);
|
|
}
|
|
}
|
|
}
|
|
|
|
// scss-docs-end sidebar
|
|
|
|
.dropdown-toggle {
|
|
outline: 0;
|
|
}
|