2019-07-18 14:22:11 +00:00
|
|
|
//
|
|
|
|
// Component: Main Sidebar
|
|
|
|
//
|
2018-03-17 17:07:55 +00:00
|
|
|
|
|
|
|
.main-sidebar {
|
|
|
|
height: 100vh;
|
|
|
|
overflow-y: hidden;
|
2019-06-28 08:02:07 +00:00
|
|
|
z-index: $zindex-main-sidebar;
|
2019-11-07 07:35:19 +00:00
|
|
|
|
|
|
|
// Remove Firefox Focusring
|
|
|
|
a {
|
|
|
|
&:-moz-focusring {
|
|
|
|
border: 0;
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
}
|
2018-03-17 17:07:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar {
|
2020-02-07 09:45:11 +00:00
|
|
|
height: calc(100% - (#{$main-header-height-inner} + #{$main-header-bottom-border-width}));
|
2021-03-28 06:59:23 +00:00
|
|
|
overflow-x: hidden;
|
2020-11-25 06:50:13 +00:00
|
|
|
overflow-y: initial;
|
2018-03-17 17:07:55 +00:00
|
|
|
padding-bottom: $sidebar-padding-y;
|
|
|
|
padding-left: $sidebar-padding-x;
|
|
|
|
padding-right: $sidebar-padding-x;
|
2019-06-28 08:02:07 +00:00
|
|
|
padding-top: $sidebar-padding-y;
|
2021-03-28 06:59:23 +00:00
|
|
|
@include scrollbar-color-gray();
|
|
|
|
@include scrollbar-width-none();
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
@include scrollbar-width-thin();
|
|
|
|
}
|
2021-04-06 23:45:52 +00:00
|
|
|
|
|
|
|
.brand-link.border-bottom-0 ~ & {
|
|
|
|
height: calc(100% - #{$main-header-height-inner});
|
|
|
|
}
|
2018-03-17 17:07:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Sidebar user panel
|
|
|
|
.user-panel {
|
|
|
|
position: relative;
|
|
|
|
|
2020-05-30 13:06:11 +00:00
|
|
|
[class*="sidebar-dark"] & {
|
2018-03-17 17:07:55 +00:00
|
|
|
border-bottom: 1px solid lighten($dark, 12%);
|
|
|
|
}
|
|
|
|
|
2020-05-30 13:06:11 +00:00
|
|
|
[class*="sidebar-light"] & {
|
2018-03-17 17:07:55 +00:00
|
|
|
border-bottom: 1px solid $gray-300;
|
|
|
|
}
|
|
|
|
|
|
|
|
&,
|
|
|
|
.info {
|
|
|
|
overflow: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
|
|
|
|
.image {
|
|
|
|
display: inline-block;
|
2019-06-28 08:02:07 +00:00
|
|
|
padding-left: $nav-link-padding-x - .2;
|
2018-03-17 17:07:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
img {
|
|
|
|
height: auto;
|
2019-06-28 08:02:07 +00:00
|
|
|
width: $sidebar-user-image-width;
|
2018-03-17 17:07:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.info {
|
|
|
|
display: inline-block;
|
|
|
|
padding: 5px 5px 5px 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.status,
|
|
|
|
.dropdown-menu {
|
|
|
|
font-size: $font-size-sm;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Sidebar navigation menu
|
|
|
|
.nav-sidebar {
|
|
|
|
// All levels
|
|
|
|
.nav-item {
|
|
|
|
> .nav-link {
|
2019-07-18 14:22:11 +00:00
|
|
|
margin-bottom: .2rem;
|
2019-06-28 08:02:07 +00:00
|
|
|
|
2018-03-17 17:07:55 +00:00
|
|
|
.right {
|
|
|
|
@include transition(transform $transition-fn $transition-speed);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-08-26 10:04:50 +00:00
|
|
|
.nav-link > .right,
|
2018-03-17 17:07:55 +00:00
|
|
|
.nav-link > p > .right {
|
|
|
|
position: absolute;
|
|
|
|
right: 1rem;
|
2019-08-26 10:04:50 +00:00
|
|
|
top: .7rem;
|
|
|
|
|
|
|
|
i,
|
|
|
|
span {
|
|
|
|
margin-left: .5rem;
|
|
|
|
}
|
2019-05-25 13:15:32 +00:00
|
|
|
|
|
|
|
&:nth-child(2) {
|
2019-08-26 10:04:50 +00:00
|
|
|
right: 2.2rem;
|
2019-05-25 13:15:32 +00:00
|
|
|
}
|
2018-03-17 17:07:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.menu-open {
|
|
|
|
> .nav-treeview {
|
|
|
|
display: block;
|
|
|
|
}
|
2020-06-02 11:37:16 +00:00
|
|
|
}
|
2018-03-17 17:07:55 +00:00
|
|
|
|
2020-06-02 11:37:16 +00:00
|
|
|
.menu-open,
|
|
|
|
.menu-is-opening {
|
2018-03-17 17:07:55 +00:00
|
|
|
> .nav-link {
|
2021-03-26 18:01:50 +00:00
|
|
|
svg.right,
|
2019-05-25 13:15:32 +00:00
|
|
|
i.right {
|
2018-03-17 17:07:55 +00:00
|
|
|
@include rotate(-90deg);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// First Level
|
|
|
|
> .nav-item {
|
|
|
|
margin-bottom: 0;
|
|
|
|
|
|
|
|
.nav-icon {
|
2020-02-12 09:09:02 +00:00
|
|
|
margin-left: .05rem;
|
2018-03-17 17:07:55 +00:00
|
|
|
font-size: 1.2rem;
|
|
|
|
margin-right: .2rem;
|
2019-07-17 21:01:00 +00:00
|
|
|
text-align: center;
|
|
|
|
width: $sidebar-nav-icon-width;
|
|
|
|
|
2022-06-28 21:11:35 +00:00
|
|
|
/* stylelint-disable selector-class-pattern */
|
2019-05-25 13:15:32 +00:00
|
|
|
&.fa,
|
|
|
|
&.fas,
|
|
|
|
&.far,
|
2019-06-28 08:02:07 +00:00
|
|
|
&.fab,
|
2020-07-22 14:50:44 +00:00
|
|
|
&.fal,
|
|
|
|
&.fad,
|
2020-07-24 15:59:40 +00:00
|
|
|
&.svg-inline--fa,
|
2019-06-28 08:02:07 +00:00
|
|
|
&.ion {
|
2019-05-25 13:15:32 +00:00
|
|
|
font-size: 1.1rem;
|
|
|
|
}
|
2022-06-28 21:11:35 +00:00
|
|
|
/* stylelint-enable selector-class-pattern */
|
2018-03-17 17:07:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.float-right {
|
|
|
|
margin-top: 3px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Tree view menu
|
|
|
|
.nav-treeview {
|
|
|
|
display: none;
|
|
|
|
list-style: none;
|
|
|
|
padding: 0;
|
|
|
|
|
|
|
|
> .nav-item {
|
|
|
|
> .nav-link {
|
|
|
|
> .nav-icon {
|
|
|
|
width: $sidebar-nav-icon-width;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-07-17 21:01:00 +00:00
|
|
|
&.nav-child-indent {
|
|
|
|
.nav-treeview {
|
2019-08-19 11:35:38 +00:00
|
|
|
transition: padding $transition-speed $transition-fn;
|
2019-06-24 07:23:39 +00:00
|
|
|
padding-left: 1rem;
|
2020-02-12 14:18:56 +00:00
|
|
|
|
|
|
|
.text-sm & {
|
|
|
|
padding-left: .5rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.nav-legacy {
|
2020-05-30 13:06:11 +00:00
|
|
|
.nav-treeview {
|
2020-02-12 14:18:56 +00:00
|
|
|
.nav-treeview {
|
|
|
|
padding-left: 2rem;
|
|
|
|
margin-left: -1rem;
|
|
|
|
|
2020-05-30 13:06:11 +00:00
|
|
|
.text-sm & {
|
2020-02-12 14:18:56 +00:00
|
|
|
padding-left: 1rem;
|
|
|
|
margin-left: -.5rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-06-15 11:46:24 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-03-17 17:07:55 +00:00
|
|
|
.nav-header {
|
|
|
|
font-size: .9rem;
|
2021-02-17 07:24:35 +00:00
|
|
|
padding: $nav-link-padding-y ($nav-link-padding-y * 1.5);
|
2018-03-17 17:07:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.nav-link p {
|
2020-11-26 05:14:25 +00:00
|
|
|
display: inline;
|
2020-06-02 13:26:19 +00:00
|
|
|
margin: 0;
|
2020-11-26 05:14:25 +00:00
|
|
|
white-space: normal;
|
2020-06-02 13:26:19 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-07-29 17:33:58 +00:00
|
|
|
.sidebar-is-opening .sidebar .nav-sidebar {
|
2020-06-02 13:26:19 +00:00
|
|
|
.nav-link p {
|
2022-06-28 21:11:35 +00:00
|
|
|
animation-name: fade-in;
|
2020-05-03 11:22:59 +00:00
|
|
|
animation-duration: $transition-speed;
|
|
|
|
animation-fill-mode: both;
|
2018-03-17 17:07:55 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#sidebar-overlay {
|
2019-07-17 21:01:00 +00:00
|
|
|
@include media-breakpoint-down(md) {
|
|
|
|
.sidebar-open & {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-05-30 13:06:11 +00:00
|
|
|
background-color: rgba($black, .1);
|
2018-03-17 17:07:55 +00:00
|
|
|
bottom: 0;
|
|
|
|
display: none;
|
2019-06-28 08:02:07 +00:00
|
|
|
left: 0;
|
|
|
|
position: fixed;
|
|
|
|
right: 0;
|
|
|
|
top: 0;
|
2018-03-17 17:07:55 +00:00
|
|
|
z-index: $zindex-main-sidebar - 1;
|
2019-07-17 21:01:00 +00:00
|
|
|
}
|
2018-03-17 17:07:55 +00:00
|
|
|
|
2020-05-30 13:06:11 +00:00
|
|
|
[class*="sidebar-light-"] {
|
2019-07-17 21:01:00 +00:00
|
|
|
// Sidebar background color
|
|
|
|
background-color: $sidebar-light-bg;
|
|
|
|
|
|
|
|
// User Panel (resides in the sidebar)
|
|
|
|
.user-panel {
|
|
|
|
a:hover {
|
|
|
|
color: $sidebar-light-hover-color;
|
2019-06-05 11:34:15 +00:00
|
|
|
}
|
2019-07-17 21:01:00 +00:00
|
|
|
|
|
|
|
.status {
|
2020-06-13 10:22:58 +00:00
|
|
|
background-color: $sidebar-light-hover-bg;
|
2019-07-17 21:01:00 +00:00
|
|
|
color: $sidebar-light-color;
|
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:focus,
|
|
|
|
&:active {
|
2020-06-13 10:22:58 +00:00
|
|
|
background-color: darken($sidebar-light-hover-bg, 3%);
|
2019-07-17 21:01:00 +00:00
|
|
|
color: $sidebar-light-hover-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.dropdown-menu {
|
|
|
|
@include box-shadow(0 2px 4px rgba(0, 0, 0, .4));
|
|
|
|
border-color: darken($sidebar-light-hover-bg, 5%);
|
|
|
|
}
|
|
|
|
|
|
|
|
.dropdown-item {
|
|
|
|
color: $body-color;
|
2019-06-05 11:34:15 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-07-17 21:01:00 +00:00
|
|
|
// Sidebar Menu. First level links
|
|
|
|
.nav-sidebar > .nav-item {
|
|
|
|
// links
|
|
|
|
> .nav-link {
|
|
|
|
// border-left: 3px solid transparent;
|
|
|
|
&:active,
|
|
|
|
&:focus {
|
|
|
|
color: $sidebar-light-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Hover and active states
|
|
|
|
&.menu-open > .nav-link,
|
|
|
|
&:hover > .nav-link {
|
|
|
|
background-color: $sidebar-light-hover-bg;
|
|
|
|
color: $sidebar-light-hover-color;
|
|
|
|
}
|
2019-06-05 11:34:15 +00:00
|
|
|
|
2019-07-17 21:01:00 +00:00
|
|
|
> .nav-link.active {
|
|
|
|
color: $sidebar-light-active-color;
|
|
|
|
|
|
|
|
@if $enable-shadows {
|
2019-10-29 08:22:51 +00:00
|
|
|
box-shadow: map-get($elevations, 1);
|
2019-07-17 21:01:00 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// First Level Submenu
|
|
|
|
> .nav-treeview {
|
2020-06-13 10:22:58 +00:00
|
|
|
background-color: $sidebar-light-submenu-bg;
|
2019-07-17 21:01:00 +00:00
|
|
|
}
|
2018-03-17 17:07:55 +00:00
|
|
|
}
|
|
|
|
|
2019-07-17 21:01:00 +00:00
|
|
|
// Section Heading
|
|
|
|
.nav-header {
|
2020-06-13 10:22:58 +00:00
|
|
|
background-color: inherit;
|
2019-07-17 21:01:00 +00:00
|
|
|
color: darken($sidebar-light-color, 5%);
|
|
|
|
}
|
|
|
|
|
|
|
|
// All links within the sidebar menu
|
|
|
|
.sidebar {
|
|
|
|
a {
|
|
|
|
color: $sidebar-light-color;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// All submenus
|
|
|
|
.nav-treeview {
|
|
|
|
> .nav-item {
|
|
|
|
> .nav-link {
|
|
|
|
color: $sidebar-light-submenu-color;
|
2021-02-24 13:46:11 +00:00
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
background-color: $sidebar-light-submenu-hover-bg;
|
|
|
|
color: $sidebar-light-submenu-hover-color;
|
|
|
|
}
|
2019-07-17 21:01:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
> .nav-link.active {
|
|
|
|
&,
|
|
|
|
&:hover {
|
|
|
|
background-color: $sidebar-light-submenu-active-bg;
|
|
|
|
color: $sidebar-light-submenu-active-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
> .nav-link:hover {
|
|
|
|
background-color: $sidebar-light-submenu-hover-bg;
|
|
|
|
}
|
|
|
|
}
|
2018-03-17 17:07:55 +00:00
|
|
|
}
|
2019-09-11 11:55:20 +00:00
|
|
|
|
|
|
|
// Flat style
|
|
|
|
.nav-flat {
|
|
|
|
.nav-item {
|
|
|
|
.nav-treeview {
|
2020-04-01 11:49:55 +00:00
|
|
|
.nav-treeview {
|
2019-09-11 11:55:20 +00:00
|
|
|
border-color: $sidebar-light-submenu-active-bg;
|
|
|
|
}
|
|
|
|
|
|
|
|
> .nav-item {
|
|
|
|
> .nav-link {
|
2019-09-13 08:38:45 +00:00
|
|
|
&,
|
|
|
|
&.active {
|
|
|
|
border-color: $sidebar-light-submenu-active-bg;
|
|
|
|
}
|
2019-09-11 11:55:20 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2018-03-17 17:07:55 +00:00
|
|
|
}
|
|
|
|
|
2020-05-30 13:06:11 +00:00
|
|
|
[class*="sidebar-dark-"] {
|
2019-07-17 21:01:00 +00:00
|
|
|
// Sidebar background color
|
|
|
|
background-color: $sidebar-dark-bg;
|
|
|
|
|
|
|
|
// User Panel (resides in the sidebar)
|
|
|
|
.user-panel {
|
|
|
|
a:hover {
|
|
|
|
color: $sidebar-dark-hover-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
.status {
|
2020-06-13 10:22:58 +00:00
|
|
|
background-color: $sidebar-dark-hover-bg;
|
2019-07-17 21:01:00 +00:00
|
|
|
color: $sidebar-dark-color;
|
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:focus,
|
|
|
|
&:active {
|
2020-06-13 10:22:58 +00:00
|
|
|
background-color: darken($sidebar-dark-hover-bg, 3%);
|
2019-07-17 21:01:00 +00:00
|
|
|
color: $sidebar-dark-hover-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.dropdown-menu {
|
|
|
|
@include box-shadow(0 2px 4px rgba(0, 0, 0, .4));
|
|
|
|
border-color: darken($sidebar-dark-hover-bg, 5%);
|
|
|
|
}
|
|
|
|
|
|
|
|
.dropdown-item {
|
|
|
|
color: $body-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Sidebar Menu. First level links
|
|
|
|
.nav-sidebar > .nav-item {
|
|
|
|
// links
|
|
|
|
> .nav-link {
|
|
|
|
// border-left: 3px solid transparent;
|
|
|
|
&:active {
|
|
|
|
color: $sidebar-dark-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Hover and active states
|
|
|
|
&.menu-open > .nav-link,
|
|
|
|
&:hover > .nav-link,
|
2021-07-29 17:33:58 +00:00
|
|
|
> .nav-link:focus {
|
2019-07-17 21:01:00 +00:00
|
|
|
background-color: $sidebar-dark-hover-bg;
|
|
|
|
color: $sidebar-dark-hover-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
> .nav-link.active {
|
|
|
|
color: $sidebar-dark-hover-color;
|
|
|
|
|
|
|
|
@if $enable-shadows {
|
2019-10-29 08:22:51 +00:00
|
|
|
box-shadow: map-get($elevations, 1);
|
2019-07-17 21:01:00 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// First Level Submenu
|
|
|
|
> .nav-treeview {
|
2020-06-13 10:22:58 +00:00
|
|
|
background-color: $sidebar-dark-submenu-bg;
|
2019-07-17 21:01:00 +00:00
|
|
|
}
|
2019-07-14 13:21:20 +00:00
|
|
|
}
|
|
|
|
|
2019-07-17 21:01:00 +00:00
|
|
|
// Section Heading
|
|
|
|
.nav-header {
|
2020-06-13 10:22:58 +00:00
|
|
|
background-color: inherit; //darken($sidebar-dark-bg, 3%);
|
2019-07-17 21:01:00 +00:00
|
|
|
color: lighten($sidebar-dark-color, 5%);
|
|
|
|
}
|
|
|
|
|
|
|
|
// All links within the sidebar menu
|
|
|
|
.sidebar {
|
|
|
|
a {
|
|
|
|
color: $sidebar-dark-color;
|
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// All submenus
|
|
|
|
.nav-treeview {
|
|
|
|
> .nav-item {
|
|
|
|
> .nav-link {
|
|
|
|
color: $sidebar-dark-submenu-color;
|
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
background-color: $sidebar-dark-submenu-hover-bg;
|
|
|
|
color: $sidebar-dark-submenu-hover-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
> .nav-link.active {
|
|
|
|
&,
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
background-color: $sidebar-dark-submenu-active-bg;
|
|
|
|
color: $sidebar-dark-submenu-active-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-09-11 11:55:20 +00:00
|
|
|
|
|
|
|
// Flat Style
|
|
|
|
.nav-flat {
|
|
|
|
.nav-item {
|
|
|
|
.nav-treeview {
|
2020-04-01 11:49:55 +00:00
|
|
|
.nav-treeview {
|
2019-09-11 11:55:20 +00:00
|
|
|
border-color: $sidebar-dark-submenu-active-bg;
|
|
|
|
}
|
|
|
|
|
|
|
|
> .nav-item {
|
|
|
|
> .nav-link {
|
2019-09-13 08:38:45 +00:00
|
|
|
&,
|
|
|
|
&.active {
|
|
|
|
border-color: $sidebar-dark-submenu-active-bg;
|
|
|
|
}
|
2019-09-11 11:55:20 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-07-17 21:01:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Sidebar variants
|
|
|
|
@each $name, $color in $theme-colors {
|
|
|
|
.sidebar-dark-#{$name},
|
2019-07-14 13:21:20 +00:00
|
|
|
.sidebar-light-#{$name} {
|
2020-05-30 13:06:11 +00:00
|
|
|
@include sidebar-color($color);
|
2019-07-14 13:21:20 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-07-17 21:01:00 +00:00
|
|
|
@each $name, $color in $colors {
|
|
|
|
.sidebar-dark-#{$name},
|
|
|
|
.sidebar-light-#{$name} {
|
2020-05-30 13:06:11 +00:00
|
|
|
@include sidebar-color($color);
|
2019-07-17 21:01:00 +00:00
|
|
|
}
|
|
|
|
}
|
2018-03-17 17:07:55 +00:00
|
|
|
|
2020-02-27 06:49:36 +00:00
|
|
|
.sidebar-mini .main-sidebar:not(.sidebar-no-expand),
|
|
|
|
.sidebar-mini-md .main-sidebar:not(.sidebar-no-expand),
|
2020-11-27 11:04:42 +00:00
|
|
|
.sidebar-mini-xs .main-sidebar:not(.sidebar-no-expand),
|
2020-02-12 09:09:02 +00:00
|
|
|
.sidebar-mini .main-sidebar:not(.sidebar-no-expand):hover,
|
|
|
|
.sidebar-mini-md .main-sidebar:not(.sidebar-no-expand):hover,
|
2020-11-27 11:04:42 +00:00
|
|
|
.sidebar-mini-xs .main-sidebar:not(.sidebar-no-expand):hover,
|
2020-02-12 09:09:02 +00:00
|
|
|
.sidebar-mini .main-sidebar.sidebar-focused,
|
2020-11-27 11:04:42 +00:00
|
|
|
.sidebar-mini-md .main-sidebar.sidebar-focused,
|
|
|
|
.sidebar-mini-xs .main-sidebar.sidebar-focused {
|
2020-05-30 13:06:11 +00:00
|
|
|
.nav-compact.nav-sidebar.nav-child-indent:not(.nav-flat) .nav-treeview {
|
2020-02-12 09:09:02 +00:00
|
|
|
padding-left: 1rem;
|
|
|
|
margin-left: -.5rem;
|
|
|
|
}
|
|
|
|
}
|
2019-12-18 11:17:41 +00:00
|
|
|
|
2020-02-12 09:09:02 +00:00
|
|
|
// Nav Flat
|
|
|
|
.nav-flat {
|
2022-01-18 18:47:31 +00:00
|
|
|
margin: (-$sidebar-padding-x * .5) (-$sidebar-padding-x) 0;
|
2020-02-12 09:09:02 +00:00
|
|
|
|
|
|
|
.nav-item {
|
|
|
|
> .nav-link {
|
|
|
|
border-radius: 0;
|
|
|
|
margin-bottom: 0;
|
|
|
|
|
2020-04-01 11:49:55 +00:00
|
|
|
> .nav-icon {
|
2020-02-12 09:09:02 +00:00
|
|
|
margin-left: .55rem;
|
2019-12-18 11:17:41 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-02-12 09:09:02 +00:00
|
|
|
&:not(.nav-child-indent) {
|
2020-05-30 13:06:11 +00:00
|
|
|
.nav-treeview {
|
2020-02-12 09:09:02 +00:00
|
|
|
.nav-item {
|
|
|
|
> .nav-link {
|
2020-04-01 11:49:55 +00:00
|
|
|
> .nav-icon {
|
2020-02-12 09:09:02 +00:00
|
|
|
margin-left: .4rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-12-18 11:17:41 +00:00
|
|
|
}
|
|
|
|
}
|
2019-09-11 11:55:20 +00:00
|
|
|
|
|
|
|
&.nav-child-indent {
|
|
|
|
.nav-treeview {
|
2020-02-12 09:09:02 +00:00
|
|
|
padding-left: 0;
|
|
|
|
|
2020-04-01 11:49:55 +00:00
|
|
|
.nav-icon {
|
2020-02-12 09:09:02 +00:00
|
|
|
margin-left: .85rem;
|
|
|
|
}
|
2019-09-11 11:55:20 +00:00
|
|
|
|
|
|
|
.nav-treeview {
|
|
|
|
border-left: .2rem solid;
|
2020-02-12 09:09:02 +00:00
|
|
|
|
2020-04-01 11:49:55 +00:00
|
|
|
.nav-icon {
|
2020-02-12 09:09:02 +00:00
|
|
|
margin-left: 1.15rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav-treeview {
|
2020-04-01 11:49:55 +00:00
|
|
|
.nav-icon {
|
2020-02-12 09:09:02 +00:00
|
|
|
margin-left: 1.45rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav-treeview {
|
2020-04-01 11:49:55 +00:00
|
|
|
.nav-icon {
|
2020-02-12 09:09:02 +00:00
|
|
|
margin-left: 1.75rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav-treeview {
|
2020-04-01 11:49:55 +00:00
|
|
|
.nav-icon {
|
2020-02-12 09:09:02 +00:00
|
|
|
margin-left: 2.05rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-09-11 11:55:20 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-07-29 17:33:58 +00:00
|
|
|
.sidebar-collapse &.nav-child-indent .sidebar {
|
2020-02-12 09:09:02 +00:00
|
|
|
.nav-treeview {
|
2020-04-01 11:49:55 +00:00
|
|
|
.nav-icon {
|
2020-02-12 09:09:02 +00:00
|
|
|
margin-left: .55rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav-link {
|
|
|
|
padding-left: calc(#{$nav-link-padding-x} - .2rem);
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav-treeview {
|
2020-04-01 11:49:55 +00:00
|
|
|
.nav-icon {
|
2020-02-12 09:09:02 +00:00
|
|
|
margin-left: .35rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav-treeview {
|
2020-04-01 11:49:55 +00:00
|
|
|
.nav-icon {
|
2020-02-12 09:09:02 +00:00
|
|
|
margin-left: .15rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav-treeview {
|
2020-04-01 11:49:55 +00:00
|
|
|
.nav-icon {
|
2020-02-12 09:09:02 +00:00
|
|
|
margin-left: -.15rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav-treeview {
|
2020-04-01 11:49:55 +00:00
|
|
|
.nav-icon {
|
2020-02-12 09:09:02 +00:00
|
|
|
margin-left: -.35rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar-mini .main-sidebar:not(.sidebar-no-expand):hover &,
|
|
|
|
.sidebar-mini-md .main-sidebar:not(.sidebar-no-expand):hover &,
|
2020-11-27 11:04:42 +00:00
|
|
|
.sidebar-mini-xs .main-sidebar:not(.sidebar-no-expand):hover &,
|
2020-02-12 09:09:02 +00:00
|
|
|
.sidebar-mini .main-sidebar.sidebar-focused &,
|
2020-11-27 11:04:42 +00:00
|
|
|
.sidebar-mini-md .main-sidebar.sidebar-focused &,
|
|
|
|
.sidebar-mini-xs .main-sidebar.sidebar-focused & {
|
2020-02-12 09:09:02 +00:00
|
|
|
&.nav-compact.nav-sidebar .nav-treeview {
|
2020-04-01 11:49:55 +00:00
|
|
|
.nav-icon {
|
2020-02-12 09:09:02 +00:00
|
|
|
margin-left: .4rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.nav-sidebar.nav-child-indent .nav-treeview {
|
2020-04-01 11:49:55 +00:00
|
|
|
.nav-icon {
|
2020-02-12 09:09:02 +00:00
|
|
|
margin-left: .85rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav-treeview {
|
2020-04-01 11:49:55 +00:00
|
|
|
.nav-icon {
|
2020-02-12 09:09:02 +00:00
|
|
|
margin-left: 1.15rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav-treeview {
|
2020-04-01 11:49:55 +00:00
|
|
|
.nav-icon {
|
2020-02-12 09:09:02 +00:00
|
|
|
margin-left: 1.45rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav-treeview {
|
2020-04-01 11:49:55 +00:00
|
|
|
.nav-icon {
|
2020-02-12 09:09:02 +00:00
|
|
|
margin-left: 1.75rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav-treeview {
|
2020-04-01 11:49:55 +00:00
|
|
|
.nav-icon {
|
2020-02-12 09:09:02 +00:00
|
|
|
margin-left: 2.05rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-09-11 11:55:20 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-09-16 11:07:25 +00:00
|
|
|
.nav-icon {
|
|
|
|
@include transition(margin-left $transition-fn $transition-speed);
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav-treeview {
|
|
|
|
.nav-icon {
|
|
|
|
margin-left: -.2rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-09-11 11:55:20 +00:00
|
|
|
&.nav-sidebar > .nav-item {
|
|
|
|
.nav-treeview,
|
|
|
|
> .nav-treeview {
|
2020-06-13 10:22:58 +00:00
|
|
|
background-color: rgba($white, .05);
|
2019-09-11 11:55:20 +00:00
|
|
|
|
|
|
|
.nav-item {
|
|
|
|
> .nav-link {
|
|
|
|
border-left: .2rem solid;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-10-30 10:59:53 +00:00
|
|
|
.nav-legacy {
|
2022-01-18 18:47:31 +00:00
|
|
|
margin: (-$sidebar-padding-x * .5) (-$sidebar-padding-x) 0;
|
2019-10-30 10:59:53 +00:00
|
|
|
|
|
|
|
&.nav-sidebar .nav-item {
|
|
|
|
> .nav-link {
|
|
|
|
border-radius: 0;
|
|
|
|
margin-bottom: 0;
|
|
|
|
|
2020-02-12 09:09:02 +00:00
|
|
|
> .nav-icon {
|
|
|
|
margin-left: .55rem;
|
2020-02-12 14:18:56 +00:00
|
|
|
|
|
|
|
.text-sm & {
|
|
|
|
margin-left: .75rem;
|
|
|
|
}
|
2020-02-12 09:09:02 +00:00
|
|
|
}
|
2020-02-12 14:18:56 +00:00
|
|
|
}
|
|
|
|
}
|
2020-02-12 09:09:02 +00:00
|
|
|
|
2020-02-12 14:18:56 +00:00
|
|
|
&.nav-sidebar > .nav-item {
|
|
|
|
> .nav-link {
|
2019-10-30 10:59:53 +00:00
|
|
|
&.active {
|
2020-06-13 10:22:58 +00:00
|
|
|
background-color: inherit;
|
2019-10-30 10:59:53 +00:00
|
|
|
border-left: 3px solid transparent;
|
|
|
|
box-shadow: none;
|
|
|
|
|
|
|
|
> .nav-icon {
|
2020-02-12 09:09:02 +00:00
|
|
|
margin-left: calc(.55rem - 3px);
|
2020-05-30 13:06:11 +00:00
|
|
|
|
2020-02-12 14:18:56 +00:00
|
|
|
.text-sm & {
|
|
|
|
margin-left: calc(.75rem - 3px);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.text-sm &.nav-sidebar.nav-flat .nav-treeview {
|
|
|
|
.nav-item {
|
|
|
|
> .nav-link {
|
|
|
|
> .nav-icon {
|
|
|
|
margin-left: calc(.75rem - 3px);
|
2019-10-30 10:59:53 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-12-18 11:17:41 +00:00
|
|
|
.sidebar-mini &,
|
2020-11-27 11:04:42 +00:00
|
|
|
.sidebar-mini-md &,
|
|
|
|
.sidebar-mini-xs & {
|
2019-12-18 11:17:41 +00:00
|
|
|
> .nav-item .nav-link {
|
|
|
|
.nav-icon {
|
|
|
|
@include transition(margin-left $transition-fn $transition-speed);
|
2020-11-27 11:04:42 +00:00
|
|
|
margin-left: .6rem;
|
2020-02-12 14:18:56 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-07-29 17:33:58 +00:00
|
|
|
.sidebar-mini.sidebar-collapse,
|
|
|
|
.sidebar-mini-md.sidebar-collapse,
|
|
|
|
.sidebar-mini-xs.sidebar-collapse {
|
|
|
|
.main-sidebar.sidebar-focused &.nav-child-indent,
|
|
|
|
.main-sidebar:hover &.nav-child-indent {
|
2020-02-12 14:18:56 +00:00
|
|
|
.nav-treeview {
|
2021-07-29 17:33:58 +00:00
|
|
|
padding-left: 1rem;
|
|
|
|
|
|
|
|
.nav-treeview {
|
|
|
|
padding-left: 2rem;
|
|
|
|
margin-left: -1rem;
|
|
|
|
}
|
2020-02-12 14:18:56 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-07-29 17:33:58 +00:00
|
|
|
.sidebar-mini.sidebar-collapse.text-sm,
|
|
|
|
.sidebar-mini-md.sidebar-collapse.text-sm,
|
|
|
|
.sidebar-mini-xs.sidebar-collapse.text-sm {
|
|
|
|
.main-sidebar.sidebar-focused &.nav-child-indent,
|
|
|
|
.main-sidebar:hover &.nav-child-indent {
|
2020-02-12 14:18:56 +00:00
|
|
|
.nav-treeview {
|
2021-07-29 17:33:58 +00:00
|
|
|
padding-left: .5rem;
|
|
|
|
|
|
|
|
.nav-treeview {
|
|
|
|
padding-left: 1rem;
|
|
|
|
margin-left: -.5rem;
|
|
|
|
}
|
2019-12-18 11:17:41 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar-mini.sidebar-collapse &,
|
2020-11-27 11:04:42 +00:00
|
|
|
.sidebar-mini-md.sidebar-collapse &,
|
|
|
|
.sidebar-mini-xs.sidebar-collapse & {
|
2021-07-29 17:33:58 +00:00
|
|
|
.sidebar {
|
|
|
|
> .nav-item > .nav-link {
|
|
|
|
.nav-icon {
|
|
|
|
margin-left: .55rem;
|
|
|
|
}
|
|
|
|
&.active {
|
|
|
|
> .nav-icon {
|
|
|
|
margin-left: .36rem;
|
|
|
|
}
|
2019-12-18 11:17:41 +00:00
|
|
|
}
|
|
|
|
}
|
2021-07-29 17:33:58 +00:00
|
|
|
&.nav-child-indent {
|
2020-02-12 14:18:56 +00:00
|
|
|
.nav-treeview {
|
2021-07-29 17:33:58 +00:00
|
|
|
.nav-treeview {
|
|
|
|
padding-left: 0;
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
2020-02-12 14:18:56 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-05-30 13:06:11 +00:00
|
|
|
}
|
2020-02-12 14:18:56 +00:00
|
|
|
|
|
|
|
.sidebar-mini.sidebar-collapse.text-sm &,
|
2020-11-27 11:04:42 +00:00
|
|
|
.sidebar-mini-md.sidebar-collapse.text-sm &,
|
|
|
|
.sidebar-mini-xs.sidebar-collapse.text-sm & {
|
2021-07-29 17:33:58 +00:00
|
|
|
.sidebar {
|
|
|
|
> .nav-item > .nav-link {
|
|
|
|
.nav-icon {
|
|
|
|
margin-left: .75rem;
|
|
|
|
}
|
2020-02-12 14:18:56 +00:00
|
|
|
|
2021-07-29 17:33:58 +00:00
|
|
|
&.active {
|
|
|
|
> .nav-icon {
|
|
|
|
margin-left: calc(.75rem - 3px);
|
|
|
|
}
|
2020-02-12 14:18:56 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-12-18 11:17:41 +00:00
|
|
|
}
|
|
|
|
|
2020-05-30 13:06:11 +00:00
|
|
|
[class*="sidebar-dark"] & {
|
2019-10-30 10:59:53 +00:00
|
|
|
&.nav-sidebar > .nav-item {
|
|
|
|
.nav-treeview,
|
|
|
|
> .nav-treeview {
|
2020-06-13 10:22:58 +00:00
|
|
|
background-color: rgba($white, .05);
|
2019-10-30 10:59:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
> .nav-link.active {
|
|
|
|
color: $sidebar-dark-active-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav-treeview > .nav-item > .nav-link {
|
|
|
|
&.active,
|
|
|
|
&:focus,
|
|
|
|
&:hover {
|
2020-06-13 10:22:58 +00:00
|
|
|
background-color: transparent;
|
2019-10-30 10:59:53 +00:00
|
|
|
color: $sidebar-dark-active-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-05-30 13:06:11 +00:00
|
|
|
[class*="sidebar-light"] & {
|
2019-10-30 10:59:53 +00:00
|
|
|
&.nav-sidebar > .nav-item {
|
|
|
|
.nav-treeview,
|
|
|
|
> .nav-treeview {
|
2020-06-13 10:22:58 +00:00
|
|
|
background-color: rgba($black, .05);
|
2019-10-30 10:59:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
> .nav-link.active {
|
|
|
|
color: $sidebar-light-active-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav-treeview > .nav-item > .nav-link {
|
|
|
|
&.active,
|
|
|
|
&:focus,
|
|
|
|
&:hover {
|
2020-06-13 10:22:58 +00:00
|
|
|
background-color: transparent;
|
2019-10-30 10:59:53 +00:00
|
|
|
color: $sidebar-light-active-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav-collapse-hide-child {
|
|
|
|
.menu-open > .nav-treeview {
|
|
|
|
max-height: min-content;
|
2022-06-28 21:11:35 +00:00
|
|
|
animation-name: fade-in;
|
2020-05-03 11:22:59 +00:00
|
|
|
animation-duration: $transition-speed;
|
|
|
|
animation-fill-mode: both;
|
2019-10-30 10:59:53 +00:00
|
|
|
}
|
|
|
|
|
2022-01-22 21:01:56 +00:00
|
|
|
.sidebar-collapse .sidebar:not(:hover) & {
|
2019-10-30 10:59:53 +00:00
|
|
|
.menu-open > .nav-treeview {
|
|
|
|
max-height: 0;
|
2022-06-28 21:11:35 +00:00
|
|
|
animation-name: fade-out;
|
2020-05-03 11:22:59 +00:00
|
|
|
animation-duration: $transition-speed;
|
|
|
|
animation-fill-mode: both;
|
2019-10-30 10:59:53 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-07-29 17:33:58 +00:00
|
|
|
.sidebar-mini.sidebar-collapse,
|
|
|
|
.sidebar-mini-md.sidebar-collapse,
|
|
|
|
.sidebar-mini-xs.sidebar-collapse {
|
|
|
|
.main-sidebar.sidebar-focused &,
|
|
|
|
.main-sidebar:not(.sidebar-no-expand):hover & {
|
|
|
|
.menu-open > .nav-treeview {
|
|
|
|
max-height: min-content;
|
2022-06-28 21:11:35 +00:00
|
|
|
animation-name: fade-in;
|
2021-07-29 17:33:58 +00:00
|
|
|
animation-duration: $transition-speed;
|
|
|
|
animation-fill-mode: both;
|
|
|
|
}
|
2019-10-30 10:59:53 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-08-26 10:04:50 +00:00
|
|
|
|
|
|
|
// Nav Compact
|
|
|
|
.nav-compact {
|
|
|
|
.nav-link,
|
|
|
|
.nav-header {
|
2022-01-18 18:47:31 +00:00
|
|
|
padding-top: ($nav-link-padding-y * .5);
|
|
|
|
padding-bottom: ($nav-link-padding-y * .5);
|
2019-08-26 10:04:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.nav-header:not(:first-of-type) {
|
2020-02-12 09:09:02 +00:00
|
|
|
padding-top: ($nav-link-padding-y * 1.5);
|
2022-01-18 18:47:31 +00:00
|
|
|
padding-bottom: ($nav-link-padding-y * .5);
|
2019-08-26 10:04:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.nav-link > .right,
|
|
|
|
.nav-link > p > .right {
|
2020-02-12 09:09:02 +00:00
|
|
|
top: .465rem;
|
2019-08-26 10:04:50 +00:00
|
|
|
}
|
2020-02-12 14:18:56 +00:00
|
|
|
|
|
|
|
.text-sm & {
|
|
|
|
.nav-link > .right,
|
|
|
|
.nav-link > p > .right {
|
|
|
|
top: .7rem;
|
|
|
|
}
|
|
|
|
}
|
2019-08-26 10:04:50 +00:00
|
|
|
}
|
2019-09-11 13:10:42 +00:00
|
|
|
|
|
|
|
// Sidebar Form Control
|
2020-05-30 13:06:11 +00:00
|
|
|
[class*="sidebar-dark"] {
|
2019-09-11 13:10:42 +00:00
|
|
|
.form-control-sidebar,
|
|
|
|
.btn-sidebar {
|
2020-06-13 10:22:58 +00:00
|
|
|
background-color: lighten($sidebar-dark-bg, 5%);
|
2019-09-11 13:10:42 +00:00
|
|
|
border: 1px solid lighten($sidebar-dark-bg, 15%);
|
|
|
|
color: lighten(color-yiq(lighten($sidebar-dark-bg, 5%)), 15%);
|
|
|
|
}
|
|
|
|
|
|
|
|
.form-control-sidebar:focus,
|
|
|
|
.btn-sidebar:focus {
|
|
|
|
border: 1px solid lighten($sidebar-dark-bg, 30%);
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn-sidebar:hover {
|
2020-06-13 10:22:58 +00:00
|
|
|
background-color: lighten($sidebar-dark-bg, 7.5%);
|
2019-09-11 13:10:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.btn-sidebar:focus {
|
2020-06-13 10:22:58 +00:00
|
|
|
background-color: lighten($sidebar-dark-bg, 10%);
|
2019-09-11 13:10:42 +00:00
|
|
|
}
|
2020-06-13 15:33:02 +00:00
|
|
|
|
|
|
|
.list-group-item {
|
|
|
|
background-color: lighten($sidebar-dark-bg, 7.5%);
|
|
|
|
border-color: lighten($sidebar-dark-bg, 15%);
|
|
|
|
color: $sidebar-dark-color;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: lighten($sidebar-dark-bg, 10%);
|
|
|
|
}
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
background-color: lighten($sidebar-dark-bg, 12.5%);
|
|
|
|
}
|
|
|
|
|
|
|
|
.search-path {
|
|
|
|
color: $gray-500;
|
|
|
|
}
|
|
|
|
}
|
2019-09-11 13:10:42 +00:00
|
|
|
}
|
|
|
|
|
2020-05-30 13:06:11 +00:00
|
|
|
[class*="sidebar-light"] {
|
2019-09-11 13:10:42 +00:00
|
|
|
.form-control-sidebar,
|
|
|
|
.btn-sidebar {
|
2020-06-13 10:22:58 +00:00
|
|
|
background-color: darken($sidebar-light-bg, 5%);
|
2019-09-11 13:10:42 +00:00
|
|
|
border: 1px solid darken($sidebar-light-bg, 15%);
|
|
|
|
color: color-yiq(darken($sidebar-light-bg, 5%));
|
|
|
|
}
|
|
|
|
|
|
|
|
.form-control-sidebar:focus,
|
|
|
|
.btn-sidebar:focus {
|
|
|
|
border: 1px solid darken($sidebar-light-bg, 30%);
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn-sidebar:hover {
|
2020-06-13 10:22:58 +00:00
|
|
|
background-color: darken($sidebar-light-bg, 7.5%);
|
2019-09-11 13:10:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.btn-sidebar:focus {
|
2020-06-13 10:22:58 +00:00
|
|
|
background-color: darken($sidebar-light-bg, 10%);
|
2019-09-11 13:10:42 +00:00
|
|
|
}
|
2020-06-13 15:33:02 +00:00
|
|
|
|
|
|
|
.list-group-item {
|
|
|
|
border-color: darken($sidebar-light-bg, 15%);
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: darken($sidebar-light-bg, 7.5%);
|
|
|
|
}
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
background-color: darken($sidebar-light-bg, 10%);
|
|
|
|
}
|
|
|
|
|
|
|
|
.search-path {
|
|
|
|
color: $gray-600;
|
|
|
|
}
|
|
|
|
}
|
2019-09-11 13:10:42 +00:00
|
|
|
}
|
2020-05-04 15:54:26 +00:00
|
|
|
|
|
|
|
// Sidebar inline input-group fix
|
|
|
|
.sidebar .form-inline .input-group {
|
|
|
|
width: 100%;
|
2020-12-04 08:17:39 +00:00
|
|
|
flex-wrap: nowrap;
|
2020-05-04 15:54:26 +00:00
|
|
|
}
|
2020-05-05 10:44:06 +00:00
|
|
|
.sidebar nav .form-inline {
|
|
|
|
margin-bottom: .2rem;
|
|
|
|
}
|
2020-05-18 11:29:45 +00:00
|
|
|
|
|
|
|
// Sidebar Collapse on Layout Boxed
|
2020-11-27 11:04:42 +00:00
|
|
|
.layout-boxed:not(.sidebar-mini):not(.sidebar-mini-md):not(.sidebar-mini-xs) {
|
2020-05-18 11:29:45 +00:00
|
|
|
&.sidebar-collapse .main-sidebar {
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
2020-05-30 13:06:11 +00:00
|
|
|
.content-wrapper,
|
2020-05-18 11:29:45 +00:00
|
|
|
.main-header,
|
|
|
|
.main-footer {
|
|
|
|
z-index: 9999;
|
|
|
|
position: relative;
|
|
|
|
}
|
2021-07-12 21:15:05 +00:00
|
|
|
.control-sidebar {
|
|
|
|
z-index: 9999;
|
|
|
|
}
|
2020-05-18 11:29:45 +00:00
|
|
|
}
|
2020-06-13 15:33:02 +00:00
|
|
|
|
|
|
|
// Sidebar Search
|
|
|
|
.sidebar-collapse {
|
|
|
|
.form-control-sidebar,
|
|
|
|
.form-control-sidebar ~ .input-group-append,
|
|
|
|
.sidebar-search-results {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-07-25 20:52:55 +00:00
|
|
|
[data-widget="sidebar-search"] {
|
|
|
|
input[type="search"] {
|
|
|
|
&::-ms-clear,
|
|
|
|
&::-ms-reveal {
|
|
|
|
display: none;
|
|
|
|
width: 0;
|
|
|
|
height: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&::-webkit-search-cancel-button,
|
|
|
|
&::-webkit-search-decoration,
|
|
|
|
&::-webkit-search-results-button,
|
|
|
|
&::-webkit-search-results-decoration {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-06-13 15:33:02 +00:00
|
|
|
.sidebar-search-results {
|
|
|
|
position: relative;
|
|
|
|
display: none;
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
.sidebar-search-open & {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.search-title {
|
|
|
|
margin-bottom: -.1rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.list-group {
|
|
|
|
position: absolute;
|
|
|
|
width: 100%;
|
|
|
|
z-index: $zindex-main-sidebar + 1;
|
|
|
|
|
2020-07-25 20:52:55 +00:00
|
|
|
> .list-group-item {
|
2020-06-13 15:33:02 +00:00
|
|
|
padding: $input-padding-y $input-padding-x;
|
|
|
|
|
2020-07-25 20:52:55 +00:00
|
|
|
&:-moz-focusring {
|
|
|
|
margin-top: 0;
|
|
|
|
border-left: 1px solid transparent;
|
|
|
|
border-top: 0;
|
|
|
|
border-bottom: 1px solid transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:first-child {
|
|
|
|
margin-top: 0;
|
|
|
|
border-top: 0;
|
|
|
|
@include border-top-radius(0);
|
|
|
|
}
|
2020-06-13 15:33:02 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar-search-results .search-path {
|
|
|
|
font-size: $small-font-size;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar-search-open {
|
|
|
|
.btn,
|
|
|
|
.form-control {
|
|
|
|
@include border-bottom-radius(0);
|
|
|
|
}
|
|
|
|
}
|
2020-07-22 14:06:12 +00:00
|
|
|
|
|
|
|
// Custom Area
|
|
|
|
.sidebar-custom {
|
|
|
|
[class*="sidebar-dark"] & {
|
|
|
|
border-top: 1px solid lighten($dark, 12%);
|
|
|
|
}
|
|
|
|
|
|
|
|
[class*="sidebar-light"] & {
|
|
|
|
border-top: 1px solid $gray-300;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.layout-fixed {
|
|
|
|
&.sidebar-collapse {
|
|
|
|
.hide-on-collapse {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.sidebar-collapse:hover {
|
|
|
|
.hide-on-collapse {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-07-12 19:40:48 +00:00
|
|
|
&.text-sm .main-sidebar-custom {
|
|
|
|
.sidebar {
|
|
|
|
height: calc(100% - ((#{$main-header-height-sm-inner} + #{$sidebar-custom-height * .95}) + #{$main-header-bottom-border-width}));
|
|
|
|
}
|
|
|
|
.sidebar-custom {
|
|
|
|
height: $sidebar-custom-height * .95;
|
|
|
|
padding: $sidebar-custom-padding-x $sidebar-custom-padding-y;
|
|
|
|
}
|
|
|
|
}
|
2020-07-22 14:06:12 +00:00
|
|
|
.main-sidebar-custom {
|
|
|
|
.sidebar {
|
|
|
|
height: calc(100% - ((#{$main-header-height-inner} + #{$sidebar-custom-height}) + #{$main-header-bottom-border-width}));
|
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar-custom {
|
|
|
|
height: $sidebar-custom-height;
|
|
|
|
padding: $sidebar-custom-padding-x $sidebar-custom-padding-y;
|
|
|
|
}
|
2021-07-12 21:10:14 +00:00
|
|
|
|
2021-07-29 17:33:58 +00:00
|
|
|
height: stretch;
|
2020-07-22 14:06:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.main-sidebar-custom-lg {
|
|
|
|
.sidebar {
|
|
|
|
height: calc(100% - ((#{$main-header-height-inner} + #{$sidebar-custom-height-lg}) + #{$main-header-bottom-border-width}));
|
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar-custom {
|
|
|
|
height: $sidebar-custom-height-lg;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.main-sidebar-custom-xl {
|
|
|
|
.sidebar {
|
|
|
|
height: calc(100% - ((#{$main-header-height-inner} + #{$sidebar-custom-height-xl}) + #{$main-header-bottom-border-width}));
|
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar-custom {
|
|
|
|
height: $sidebar-custom-height-xl;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.main-sidebar-custom,
|
|
|
|
.main-sidebar-custom-lg,
|
|
|
|
.main-sidebar-custom-xl {
|
|
|
|
.pos-right {
|
|
|
|
position: absolute;
|
|
|
|
right: .5rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-03-09 19:44:26 +00:00
|
|
|
|
2022-01-12 18:15:17 +00:00
|
|
|
.sidebar-hidden,
|
|
|
|
.sidebar-hidden.sidebar-mini.sidebar-collapse {
|
|
|
|
.main-sidebar {
|
|
|
|
display: none !important;
|
|
|
|
}
|
|
|
|
.content-wrapper,
|
|
|
|
.main-header {
|
|
|
|
margin-left: 0 !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-07-29 17:33:58 +00:00
|
|
|
@include dark-mode() {
|
2021-03-09 19:44:26 +00:00
|
|
|
@each $name, $color in $theme-colors-alt {
|
|
|
|
.sidebar-dark-#{$name},
|
|
|
|
.sidebar-light-#{$name} {
|
|
|
|
@include sidebar-color($color);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@each $name, $color in $colors-alt {
|
|
|
|
.sidebar-dark-#{$name},
|
|
|
|
.sidebar-light-#{$name} {
|
|
|
|
@include sidebar-color($color);
|
|
|
|
}
|
|
|
|
}
|
2021-03-21 18:47:04 +00:00
|
|
|
|
|
|
|
[class*="sidebar-light-"] {
|
|
|
|
.sidebar {
|
|
|
|
a {
|
|
|
|
color: $sidebar-light-color;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-03-09 19:44:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
//
|