2024-04-21 23:04:16 +00:00
|
|
|
//
|
|
|
|
// Left side navigation
|
|
|
|
//
|
|
|
|
.td-sidebar-nav {
|
2024-04-25 22:15:39 +00:00
|
|
|
$_max-height: calc(100vh - 8.5rem);
|
2024-04-21 23:04:16 +00:00
|
|
|
|
2024-04-25 22:15:39 +00:00
|
|
|
padding-right: 0.5rem;
|
|
|
|
margin-right: -15px;
|
|
|
|
margin-left: -15px;
|
2024-04-21 23:04:16 +00:00
|
|
|
|
2024-04-25 22:15:39 +00:00
|
|
|
@include media-breakpoint-up(md) {
|
|
|
|
@supports (position: sticky) {
|
|
|
|
max-height: $_max-height;
|
|
|
|
overflow-y: auto;
|
2024-04-21 23:04:16 +00:00
|
|
|
}
|
2024-04-25 22:15:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Adjust height and padding when sidebar_search_disable is true, but only for
|
|
|
|
// >= `lg` views, because on tablet (`md`) and mobile (<= `sm`), the search
|
|
|
|
// box is displayed regardless of the value of sidebar_search_disable:
|
|
|
|
&.td-sidebar-nav--search-disabled {
|
|
|
|
@include media-breakpoint-up(lg) {
|
|
|
|
// There's no search box so add top padding
|
|
|
|
// and adjust max-height:
|
|
|
|
padding-top: 1rem;
|
|
|
|
|
|
|
|
@supports (position: sticky) {
|
|
|
|
max-height: calc(#{$_max-height} + 4.5rem);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2024-04-21 23:04:16 +00:00
|
|
|
|
2024-04-25 22:15:39 +00:00
|
|
|
@include media-breakpoint-up(md) {
|
|
|
|
display: block !important;
|
|
|
|
}
|
2024-04-21 23:04:16 +00:00
|
|
|
|
2024-04-25 22:15:39 +00:00
|
|
|
&__section {
|
|
|
|
li {
|
|
|
|
list-style: none;
|
2024-04-21 23:04:16 +00:00
|
|
|
}
|
|
|
|
|
2024-04-25 22:15:39 +00:00
|
|
|
&.ul-0, ul {
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
}
|
2024-04-21 23:04:16 +00:00
|
|
|
|
2024-04-25 22:15:39 +00:00
|
|
|
@include media-breakpoint-up(md) {
|
|
|
|
& .ul-1 ul {
|
|
|
|
padding-left: 1.5em;
|
|
|
|
}
|
2024-04-21 23:04:16 +00:00
|
|
|
}
|
|
|
|
|
2024-04-25 22:15:39 +00:00
|
|
|
padding-left: 0;
|
|
|
|
}
|
2024-04-21 23:04:16 +00:00
|
|
|
|
2024-04-25 22:15:39 +00:00
|
|
|
&__section-title {
|
|
|
|
display: block;
|
|
|
|
font-weight: $font-weight-medium;
|
|
|
|
|
|
|
|
.active {
|
|
|
|
font-weight: $font-weight-bold;
|
2024-04-21 23:04:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
2024-04-25 22:15:39 +00:00
|
|
|
color: $gray-900;
|
2024-04-21 23:04:16 +00:00
|
|
|
}
|
2024-04-25 22:15:39 +00:00
|
|
|
}
|
2024-04-21 23:04:16 +00:00
|
|
|
|
2024-04-25 22:15:39 +00:00
|
|
|
.td-sidebar-link {
|
|
|
|
display: block;
|
|
|
|
padding-bottom: 0.375rem;
|
2024-04-21 23:04:16 +00:00
|
|
|
|
2024-04-25 22:15:39 +00:00
|
|
|
&__page {
|
|
|
|
color: $gray-700;
|
|
|
|
font-weight: $font-weight-light;
|
2024-04-21 23:04:16 +00:00
|
|
|
}
|
2024-04-25 22:15:39 +00:00
|
|
|
}
|
2024-04-21 23:04:16 +00:00
|
|
|
|
2024-04-25 22:15:39 +00:00
|
|
|
a {
|
|
|
|
&:focus,
|
|
|
|
&:hover {
|
|
|
|
color: $link-color;
|
2024-04-21 23:04:16 +00:00
|
|
|
}
|
|
|
|
|
2024-04-25 22:15:39 +00:00
|
|
|
&.active {
|
|
|
|
font-weight: $font-weight-bold;
|
2024-04-21 23:04:16 +00:00
|
|
|
}
|
2024-04-25 22:15:39 +00:00
|
|
|
}
|
2024-04-21 23:04:16 +00:00
|
|
|
|
2024-04-25 22:15:39 +00:00
|
|
|
.dropdown {
|
|
|
|
a {
|
|
|
|
color: $gray-700;
|
2024-04-21 23:04:16 +00:00
|
|
|
}
|
|
|
|
|
2024-04-25 22:15:39 +00:00
|
|
|
.nav-link {
|
|
|
|
padding: 0 0 1rem;
|
2024-04-21 23:04:16 +00:00
|
|
|
}
|
2024-04-25 22:15:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
& > .td-sidebar-nav__section {
|
|
|
|
padding-left: 1.5rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
li i {
|
|
|
|
// Layout of icons
|
|
|
|
padding-right: 0.5em;
|
|
|
|
&:before {
|
|
|
|
display: inline-block;
|
|
|
|
text-align: center;
|
|
|
|
min-width: 1em;
|
2024-04-21 23:04:16 +00:00
|
|
|
}
|
2024-04-25 22:15:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.td-sidebar-link.tree-root {
|
|
|
|
font-weight: $font-weight-bold;
|
|
|
|
color: $td-sidebar-tree-root-color;
|
|
|
|
border-bottom: 1px $td-sidebar-tree-root-color solid;
|
|
|
|
margin-bottom: 1rem;
|
|
|
|
}
|
|
|
|
}
|
2024-04-21 23:04:16 +00:00
|
|
|
|
2024-04-25 22:15:39 +00:00
|
|
|
.td-sidebar {
|
|
|
|
@include link-decoration;
|
2024-04-21 23:04:16 +00:00
|
|
|
|
2024-04-25 22:15:39 +00:00
|
|
|
@include media-breakpoint-up(md) {
|
|
|
|
padding-top: 4rem;
|
|
|
|
background-color: $td-sidebar-bg-color;
|
|
|
|
padding-right: 1rem;
|
|
|
|
border-right: 1px solid $td-sidebar-border-color;
|
|
|
|
}
|
2024-04-21 23:04:16 +00:00
|
|
|
|
2024-04-25 22:15:39 +00:00
|
|
|
padding-bottom: 1rem;
|
2024-04-21 23:04:16 +00:00
|
|
|
|
2024-04-25 22:15:39 +00:00
|
|
|
&__toggle {
|
|
|
|
line-height: 1;
|
|
|
|
color: $gray-900;
|
|
|
|
margin: 1rem;
|
|
|
|
}
|
2024-04-21 23:04:16 +00:00
|
|
|
|
2024-04-25 22:15:39 +00:00
|
|
|
&__search {
|
|
|
|
padding: 1rem 0;
|
|
|
|
}
|
2024-04-21 23:04:16 +00:00
|
|
|
|
2024-04-25 22:15:39 +00:00
|
|
|
&__inner {
|
|
|
|
order: 0;
|
2024-04-21 23:04:16 +00:00
|
|
|
|
2024-04-25 22:15:39 +00:00
|
|
|
@include media-breakpoint-up(md) {
|
|
|
|
@supports (position: sticky) {
|
|
|
|
position: sticky;
|
|
|
|
top: 4rem;
|
|
|
|
z-index: 10;
|
|
|
|
height: calc(100vh - 5rem);
|
|
|
|
}
|
2024-04-21 23:04:16 +00:00
|
|
|
}
|
|
|
|
|
2024-04-25 22:15:39 +00:00
|
|
|
@include media-breakpoint-up(xl) {
|
|
|
|
flex: 0 1 320px;
|
|
|
|
}
|
2024-04-21 23:04:16 +00:00
|
|
|
|
2024-04-25 22:15:39 +00:00
|
|
|
.td-search-box {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#content-desktop {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
#content-mobile {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include media-breakpoint-down(lg) {
|
|
|
|
#content-desktop {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
#content-mobile {
|
|
|
|
display: block;
|
2024-04-21 23:04:16 +00:00
|
|
|
}
|
2024-04-25 22:15:39 +00:00
|
|
|
}
|
2024-04-21 23:04:16 +00:00
|
|
|
}
|