123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509 |
- //
- // Component: Sidebar Mini
- //
- // 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 {
- content: "\00a0";
- }
- }
- }
- // Add sidebar-mini class to the body tag to activate this feature
- .sidebar-mini {
- @include media-breakpoint-up(lg) {
- @include sidebar-mini-breakpoint ();
- }
- }
- @include media-breakpoint-down(md) {
- .sidebar-mini.sidebar-collapse .main-sidebar {
- box-shadow: none !important;
- }
- }
- .sidebar-mini-md {
- @include media-breakpoint-up(md) {
- @include sidebar-mini-breakpoint ();
- }
- }
- @include media-breakpoint-down(sm) {
- .sidebar-mini-md.sidebar-collapse .main-sidebar {
- box-shadow: none !important;
- }
- }
- .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);
- }
- .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 - 3rem);
- }
- .nav-treeview {
- .nav-link {
- width: calc(#{$sidebar-width} - #{$sidebar-padding-x} * 2 - 4rem);
- }
- .nav-treeview {
- .nav-link {
- width: calc(#{$sidebar-width} - #{$sidebar-padding-x} * 2 - 5rem);
- }
- }
- }
- }
- }
- }
- .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-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);
- }
- .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);
- }
- }
- }
- }
- }
- }
- .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);
- }
- }
- }
- }
- }
- }
- }
- .nav-link {
- width: calc(#{$sidebar-width} - #{$sidebar-padding-x} * 2);
- @include transition(width $transition-fn $transition-speed);
- }
- }
- }
- .sidebar-collapse {
- &.sidebar-mini,
- &.sidebar-mini-md,
- &.sidebar-mini-xs {
- .main-sidebar {
- // Hide the sidebar search results when mini mode is active.
- .sidebar-search-results {
- display: none;
- }
- .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 {
- &:not(.hide-nav-header-on-hover) {
- .nav-header {
- display: inline-block;
- }
- }
- // Show sidebar search when hover/focus on the sidebar mini mode.
- &:not(.sidebar-no-expand) {
- .nav-link {
- width: calc(#{$sidebar-width} - #{$sidebar-padding-x} * 2);
- }
- .form-control-sidebar {
- display: inline-block;
- }
- .form-control-sidebar ~ .input-group-append {
- display: flex;
- }
- .sidebar-search-open .sidebar-search-results {
- display: inline-block;
- }
- }
- .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);
- }
- }
- }
- }
- }
- }
- }
- }
- }
- .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: fade-in;
- animation-duration: $transition-speed;
- animation-fill-mode: both;
- visibility: visible;
- }
- .logo-xl {
- animation-name: fade-out;
- animation-duration: $transition-speed;
- animation-fill-mode: both;
- visibility: hidden;
- }
- .nav-sidebar.nav-child-indent .nav-treeview {
- padding-left: 0;
- }
- .sidebar {
- .brand-text,
- .user-panel > .info,
- .nav-sidebar .nav-link p {
- margin-left: -10px;
- animation-name: fade-out;
- animation-duration: $transition-speed;
- animation-fill-mode: both;
- visibility: hidden;
- display: inline-block;
- width: 0;
- }
- .nav-sidebar > .nav-item .nav-icon {
- margin-right: 0;
- }
- }
- }
- }
- }
- .nav-sidebar {
- position: relative;
- &:hover {
- overflow: visible;
- }
- }
- .sidebar-form,
- .nav-sidebar > .nav-header {
- overflow: hidden;
- text-overflow: clip;
- }
- .nav-sidebar .nav-item > .nav-link {
- position: relative;
- > .float-right {
- margin-top: -7px;
- position: absolute;
- right: 10px;
- top: 50%;
- }
- }
- .sidebar .nav-link p,
- .main-sidebar .brand-text,
- .main-sidebar .logo-xs,
- .main-sidebar .logo-xl,
- .sidebar .user-panel .info {
- @include transition(margin-left $transition-speed linear, opacity $transition-speed ease, visibility $transition-speed ease);
- }
|