2019-07-18 14:22:11 +00:00
|
|
|
//
|
|
|
|
// Component: Sidebar Mini
|
|
|
|
//
|
2019-06-05 11:34:15 +00:00
|
|
|
|
2019-07-12 11:19:20 +00:00
|
|
|
// Logo style
|
|
|
|
.logo-xs,
|
|
|
|
.logo-xl {
|
|
|
|
opacity: 1;
|
|
|
|
position: absolute;
|
|
|
|
visibility: visible;
|
|
|
|
|
|
|
|
&.brand-image-xs {
|
|
|
|
left: 18px;
|
|
|
|
top: 12px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.brand-image-xl {
|
|
|
|
left: 12px;
|
|
|
|
top: 6px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.logo-xs {
|
|
|
|
opacity: 0;
|
|
|
|
visibility: hidden;
|
|
|
|
|
|
|
|
&.brand-image-xl {
|
|
|
|
left: 16px;
|
|
|
|
top: 8px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.brand-link {
|
|
|
|
&.logo-switch {
|
|
|
|
&::before {
|
2020-05-30 13:06:11 +00:00
|
|
|
content: "\00a0";
|
2019-07-12 11:19:20 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-06-05 11:34:15 +00:00
|
|
|
// Add sidebar-mini class to the body tag to activate this feature
|
|
|
|
.sidebar-mini {
|
|
|
|
@include media-breakpoint-up(lg) {
|
2020-05-30 13:06:11 +00:00
|
|
|
@include sidebar-mini-breakpoint ();
|
2019-06-05 11:34:15 +00:00
|
|
|
}
|
|
|
|
}
|
2019-12-04 09:21:14 +00:00
|
|
|
@include media-breakpoint-down(md) {
|
|
|
|
.sidebar-mini.sidebar-collapse .main-sidebar {
|
|
|
|
box-shadow: none !important;
|
|
|
|
}
|
|
|
|
}
|
2019-06-28 08:02:07 +00:00
|
|
|
|
2019-06-05 11:34:15 +00:00
|
|
|
.sidebar-mini-md {
|
|
|
|
@include media-breakpoint-up(md) {
|
2020-05-30 13:06:11 +00:00
|
|
|
@include sidebar-mini-breakpoint ();
|
2019-06-05 11:34:15 +00:00
|
|
|
}
|
|
|
|
}
|
2019-12-04 09:21:14 +00:00
|
|
|
@include media-breakpoint-down(sm) {
|
|
|
|
.sidebar-mini-md.sidebar-collapse .main-sidebar {
|
|
|
|
box-shadow: none !important;
|
|
|
|
}
|
|
|
|
}
|
2019-06-05 11:34:15 +00:00
|
|
|
|
2020-11-27 11:04:42 +00:00
|
|
|
.sidebar-mini-xs {
|
|
|
|
@include media-breakpoint-up(xs) {
|
|
|
|
@include sidebar-mini-breakpoint ();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar-mini,
|
|
|
|
.sidebar-mini-md,
|
|
|
|
.sidebar-mini-xs {
|
|
|
|
.main-sidebar {
|
|
|
|
.nav-child-indent .nav-treeview {
|
|
|
|
.nav-link {
|
|
|
|
width: calc(#{$sidebar-width} - #{$sidebar-padding-x} * 2 - 1rem);
|
|
|
|
}
|
2020-01-16 14:13:14 +00:00
|
|
|
|
2020-11-27 11:04:42 +00:00
|
|
|
.nav-treeview {
|
|
|
|
.nav-link {
|
|
|
|
width: calc(#{$sidebar-width} - #{$sidebar-padding-x} * 2 - 2rem);
|
|
|
|
}
|
2019-08-30 10:49:53 +00:00
|
|
|
|
2020-11-27 11:04:42 +00:00
|
|
|
.nav-treeview {
|
|
|
|
.nav-link {
|
|
|
|
width: calc(#{$sidebar-width} - #{$sidebar-padding-x} * 2 - 3rem);
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav-treeview {
|
|
|
|
.nav-link {
|
|
|
|
width: calc(#{$sidebar-width} - #{$sidebar-padding-x} * 2 - 4rem);
|
|
|
|
}
|
2020-01-16 14:13:14 +00:00
|
|
|
|
2020-11-27 11:04:42 +00:00
|
|
|
.nav-treeview {
|
|
|
|
.nav-link {
|
|
|
|
width: calc(#{$sidebar-width} - #{$sidebar-padding-x} * 2 - 5rem);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-08-30 11:00:21 +00:00
|
|
|
}
|
2020-11-27 11:04:42 +00:00
|
|
|
.nav-legacy {
|
|
|
|
.nav-link {
|
|
|
|
width: $sidebar-width;
|
|
|
|
}
|
|
|
|
&.nav-child-indent {
|
|
|
|
.nav-treeview {
|
|
|
|
.nav-link {
|
|
|
|
width: calc(#{$sidebar-width} - 1rem);
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav-treeview {
|
|
|
|
.nav-link {
|
|
|
|
width: calc(#{$sidebar-width} - 1rem - 1rem);
|
|
|
|
}
|
2019-08-30 10:49:53 +00:00
|
|
|
|
2020-11-27 11:04:42 +00:00
|
|
|
.nav-treeview {
|
|
|
|
.nav-link {
|
|
|
|
width: calc(#{$sidebar-width} - 1rem - 2rem);
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav-treeview {
|
|
|
|
.nav-link {
|
|
|
|
width: calc(#{$sidebar-width} - 1rem - 3rem);
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav-treeview {
|
|
|
|
.nav-link {
|
|
|
|
width: calc(#{$sidebar-width} - 1rem - 4rem);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-08-30 10:49:53 +00:00
|
|
|
}
|
2020-11-27 11:04:42 +00:00
|
|
|
.nav-flat {
|
|
|
|
.nav-link {
|
|
|
|
width: $sidebar-width;
|
|
|
|
}
|
|
|
|
&.nav-child-indent {
|
|
|
|
.nav-treeview {
|
|
|
|
.nav-link {
|
|
|
|
width: calc(#{$sidebar-width});
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav-treeview {
|
|
|
|
.nav-link {
|
|
|
|
width: calc(#{$sidebar-width} - .2rem);
|
|
|
|
}
|
2019-08-30 10:49:53 +00:00
|
|
|
|
2020-11-27 11:04:42 +00:00
|
|
|
.nav-treeview {
|
|
|
|
.nav-link {
|
|
|
|
width: calc(#{$sidebar-width} - .2rem * 2);
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav-treeview {
|
|
|
|
.nav-link {
|
|
|
|
width: calc(#{$sidebar-width} - .2rem * 3);
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav-treeview {
|
|
|
|
.nav-link {
|
|
|
|
width: calc(#{$sidebar-width} - .2rem * 4);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-09-11 12:27:56 +00:00
|
|
|
}
|
2020-11-27 11:04:42 +00:00
|
|
|
.nav-child-indent.nav-compact .nav-treeview {
|
|
|
|
.nav-link {
|
|
|
|
width: calc(#{$sidebar-width} - #{$sidebar-padding-x} * 2 - .5rem);
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav-treeview {
|
|
|
|
.nav-link {
|
|
|
|
width: calc(#{$sidebar-width} - #{$sidebar-padding-x} * 2 - 1rem);
|
|
|
|
}
|
2019-09-11 12:27:56 +00:00
|
|
|
|
2020-11-27 11:04:42 +00:00
|
|
|
.nav-treeview {
|
|
|
|
.nav-link {
|
|
|
|
width: calc(#{$sidebar-width} - #{$sidebar-padding-x} * 2 - 1.5rem);
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav-treeview {
|
|
|
|
.nav-link {
|
|
|
|
width: calc(#{$sidebar-width} - #{$sidebar-padding-x} * 2 - 2rem);
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav-treeview {
|
|
|
|
.nav-link {
|
|
|
|
width: calc(#{$sidebar-width} - #{$sidebar-padding-x} * 2 - 2.5rem);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-09-11 12:27:56 +00:00
|
|
|
}
|
2020-11-27 11:04:42 +00:00
|
|
|
.nav-child-indent.nav-legacy.nav-compact {
|
|
|
|
.nav-link {
|
|
|
|
width: $sidebar-width;
|
|
|
|
}
|
|
|
|
.nav-treeview {
|
|
|
|
.nav-link {
|
|
|
|
width: calc(#{$sidebar-width} - .5rem);
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav-treeview {
|
|
|
|
.nav-link {
|
|
|
|
width: calc(#{$sidebar-width} - .5rem * 2);
|
|
|
|
}
|
2019-09-11 12:27:56 +00:00
|
|
|
|
2020-11-27 11:04:42 +00:00
|
|
|
.nav-treeview {
|
|
|
|
.nav-link {
|
|
|
|
width: calc(#{$sidebar-width} - .5rem * 3);
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav-treeview {
|
|
|
|
.nav-link {
|
|
|
|
width: calc(#{$sidebar-width} - .5rem * 4);
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav-treeview {
|
|
|
|
.nav-link {
|
|
|
|
width: calc(#{$sidebar-width} - .5rem * 5);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.nav-link {
|
|
|
|
width: calc(#{$sidebar-width} - #{$sidebar-padding-x} * 2);
|
|
|
|
@include transition(width $transition-fn $transition-speed);
|
2019-09-11 12:27:56 +00:00
|
|
|
}
|
2020-11-27 11:04:42 +00:00
|
|
|
}
|
|
|
|
}
|
2019-09-11 12:27:56 +00:00
|
|
|
|
2020-11-27 11:04:42 +00:00
|
|
|
.sidebar-collapse {
|
|
|
|
&.sidebar-mini,
|
|
|
|
&.sidebar-mini-md,
|
|
|
|
&.sidebar-mini-xs {
|
|
|
|
.main-sidebar {
|
2021-04-27 12:27:15 +00:00
|
|
|
|
|
|
|
// Hide the sidebar search results when mini mode is active.
|
|
|
|
.sidebar-search-results {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2020-11-27 11:04:42 +00:00
|
|
|
.nav-sidebar {
|
|
|
|
.nav-link {
|
|
|
|
width: $sidebar-mini-width - $sidebar-padding-x * 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.nav-flat,
|
|
|
|
&.nav-legacy {
|
|
|
|
.nav-link {
|
|
|
|
width: $sidebar-mini-width;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&.nav-child-indent.nav-compact {
|
|
|
|
.nav-treeview {
|
|
|
|
padding-left: 0 !important;
|
|
|
|
margin-left: 0 !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav-link {
|
|
|
|
width: calc(#{$sidebar-mini-width} - #{$sidebar-padding-x} * 2);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.sidebar-focused,
|
|
|
|
&:hover {
|
|
|
|
.nav-link {
|
|
|
|
width: calc(#{$sidebar-width} - #{$sidebar-padding-x} * 2);
|
|
|
|
}
|
|
|
|
.nav-header {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
2021-04-27 12:27:15 +00:00
|
|
|
// Show sidebar search when hover/focus on the sidebar mini mode.
|
|
|
|
&:not(.sidebar-no-expand) {
|
|
|
|
.form-control-sidebar {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
.form-control-sidebar ~ .input-group-append {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
.sidebar-search-open .sidebar-search-results {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-11-27 11:04:42 +00:00
|
|
|
.nav-child-indent {
|
|
|
|
.nav-link {
|
|
|
|
width: calc(#{$sidebar-width} - #{$sidebar-padding-x} * 2);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.nav-legacy {
|
|
|
|
.nav-link {
|
|
|
|
width: $sidebar-width;
|
|
|
|
}
|
|
|
|
&.nav-child-indent {
|
|
|
|
.nav-treeview {
|
|
|
|
.nav-link {
|
|
|
|
width: calc(#{$sidebar-width} - 1rem);
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav-treeview {
|
|
|
|
.nav-link {
|
|
|
|
width: calc(#{$sidebar-width} - 1rem - 1rem);
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav-treeview {
|
|
|
|
.nav-link {
|
|
|
|
width: calc(#{$sidebar-width} - 1rem - 2rem);
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav-treeview {
|
|
|
|
.nav-link {
|
|
|
|
width: calc(#{$sidebar-width} - 1rem - 3rem);
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav-treeview {
|
|
|
|
.nav-link {
|
|
|
|
width: calc(#{$sidebar-width} - 1rem - 4rem);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.nav-flat {
|
|
|
|
.nav-link {
|
|
|
|
width: $sidebar-width;
|
|
|
|
}
|
|
|
|
&.nav-child-indent {
|
|
|
|
.nav-treeview {
|
|
|
|
.nav-link {
|
|
|
|
width: calc(#{$sidebar-width});
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav-treeview {
|
|
|
|
.nav-link {
|
|
|
|
width: calc(#{$sidebar-width} - .2rem);
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav-treeview {
|
|
|
|
.nav-link {
|
|
|
|
width: calc(#{$sidebar-width} - .2rem * 2);
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav-treeview {
|
|
|
|
.nav-link {
|
|
|
|
width: calc(#{$sidebar-width} - .2rem * 3);
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav-treeview {
|
|
|
|
.nav-link {
|
|
|
|
width: calc(#{$sidebar-width} - .2rem * 4);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.nav-child-indent.nav-compact {
|
|
|
|
.nav-link {
|
|
|
|
width: calc(#{$sidebar-width} - #{$sidebar-padding-x} * 2);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.nav-child-indent.nav-legacy.nav-compact {
|
|
|
|
.nav-link {
|
|
|
|
width: $sidebar-width;
|
|
|
|
}
|
|
|
|
.nav-treeview {
|
|
|
|
.nav-link {
|
|
|
|
width: calc(#{$sidebar-width} - .5rem);
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav-treeview {
|
|
|
|
.nav-link {
|
|
|
|
width: calc(#{$sidebar-width} - .5rem * 2);
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav-treeview {
|
|
|
|
.nav-link {
|
|
|
|
width: calc(#{$sidebar-width} - .5rem * 3);
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav-treeview {
|
|
|
|
.nav-link {
|
|
|
|
width: calc(#{$sidebar-width} - .5rem * 4);
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav-treeview {
|
|
|
|
.nav-link {
|
|
|
|
width: calc(#{$sidebar-width} - .5rem * 5);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-08-30 10:49:53 +00:00
|
|
|
}
|
|
|
|
|
2020-11-27 11:04:42 +00:00
|
|
|
.sidebar-no-expand.main-sidebar.sidebar-focused,
|
|
|
|
.sidebar-no-expand.main-sidebar:hover {
|
|
|
|
width: $sidebar-mini-width;
|
|
|
|
|
|
|
|
.nav-header {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.brand-link {
|
|
|
|
width: $sidebar-mini-width !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.user-panel .image {
|
|
|
|
float: none !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.logo-xs {
|
|
|
|
animation-name: fadeIn;
|
|
|
|
animation-duration: $transition-speed;
|
|
|
|
animation-fill-mode: both;
|
|
|
|
visibility: visible;
|
|
|
|
}
|
|
|
|
|
|
|
|
.logo-xl {
|
|
|
|
animation-name: fadeOut;
|
|
|
|
animation-duration: $transition-speed;
|
|
|
|
animation-fill-mode: both;
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav-sidebar.nav-child-indent .nav-treeview {
|
|
|
|
padding-left: 0;
|
|
|
|
}
|
|
|
|
|
2021-07-29 17:33:58 +00:00
|
|
|
.sidebar {
|
|
|
|
.brand-text,
|
|
|
|
.user-panel > .info,
|
|
|
|
.nav-sidebar .nav-link p {
|
|
|
|
margin-left: -10px;
|
|
|
|
animation-name: fadeOut;
|
|
|
|
animation-duration: $transition-speed;
|
|
|
|
animation-fill-mode: both;
|
|
|
|
visibility: hidden;
|
|
|
|
width: 0;
|
|
|
|
}
|
2020-11-27 11:04:42 +00:00
|
|
|
|
2021-07-29 17:33:58 +00:00
|
|
|
.nav-sidebar > .nav-item .nav-icon {
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
2020-11-27 11:04:42 +00:00
|
|
|
}
|
2019-08-30 10:49:53 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-01-16 16:27:23 +00:00
|
|
|
.nav-sidebar {
|
|
|
|
position: relative;
|
2019-06-28 08:02:07 +00:00
|
|
|
|
2016-01-16 16:27:23 +00:00
|
|
|
&:hover {
|
|
|
|
overflow: visible;
|
|
|
|
}
|
2015-10-31 21:00:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar-form,
|
2016-01-16 16:27:23 +00:00
|
|
|
.nav-sidebar > .nav-header {
|
2015-10-31 21:00:16 +00:00
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: clip;
|
|
|
|
}
|
|
|
|
|
2016-01-16 16:27:23 +00:00
|
|
|
.nav-sidebar .nav-item > .nav-link {
|
2015-10-31 21:00:16 +00:00
|
|
|
position: relative;
|
2019-06-28 08:02:07 +00:00
|
|
|
|
2018-03-17 17:07:55 +00:00
|
|
|
> .float-right {
|
2019-06-28 08:02:07 +00:00
|
|
|
margin-top: -7px;
|
2015-10-31 21:00:16 +00:00
|
|
|
position: absolute;
|
|
|
|
right: 10px;
|
|
|
|
top: 50%;
|
|
|
|
}
|
|
|
|
}
|
2016-10-19 15:24:30 +00:00
|
|
|
|
2018-03-17 17:07:55 +00:00
|
|
|
.sidebar .nav-link p,
|
|
|
|
.main-sidebar .brand-text,
|
2019-07-12 11:19:20 +00:00
|
|
|
.main-sidebar .logo-xs,
|
|
|
|
.main-sidebar .logo-xl,
|
2018-03-17 17:07:55 +00:00
|
|
|
.sidebar .user-panel .info {
|
2020-05-30 13:06:11 +00:00
|
|
|
@include transition(margin-left $transition-speed linear, opacity $transition-speed ease, visibility $transition-speed ease);
|
2016-10-19 15:24:30 +00:00
|
|
|
}
|