.wrapper{ position: relative; top: 0; height: 100vh; &.wrapper-full-page{ min-height: 100vh; height: auto; } } .sidebar-wrapper ul li div.collapse ul li div.collapse ul li a, .sidebar-wrapper ul li div.collapse ul li div.collapsing ul li a, .sidebar-wrapper ul li div.collapsing ul li div.collapse ul li a{ margin-left: 25px; } .sidebar, .off-canvas-sidebar{ @include linear-gradient($primary-states, $primary); height: calc(80vh - 90px); width: 230px; position: fixed; top: 0; left: 0; z-index: 1; background-size: cover; background-position: center center; display: block; box-shadow: 0px 0px 45px 0px rgba(0,0,0,0.6); margin-top: 82px; margin-left: 20px; border-radius: 5px; .sidebar-wrapper{ width: $full-width; min-height: 100%; max-height: calc(100vh - 705px); z-index: 4; position: relative; overflow: auto; .dropdown .dropdown-backdrop{ display: none !important; } .navbar-form{ border: none; } > .nav, .user .info{ [data-toggle="collapse"] ~ div > ul > li > a{ span{ display: inline-block; @extend .animation-transition-general; } .sidebar-normal{ margin: 0; position: relative; transform: translateX(0px); opacity: 1; white-space: nowrap; display: block; line-height: 23px; z-index: 1; color: $opacity-8; } .sidebar-mini-icon{ text-transform: uppercase; width: 34px; margin-right: 10px; margin-left: 0px; font-size: 12px; text-align: center; line-height: 25px; position: relative; float: left; z-index: 1; display: inherit; line-height: 24px; color: $opacity-8; } i{ font-size: 17px; line-height: 20px; width: 26px; } } } [data-toggle="collapse"] ~ div > ul > li:hover > a{ .sidebar-mini-icon, .sidebar-normal{ color: $white; } } .nav [data-toggle="collapse"] ~ div > ul > li > a .sidebar-mini-icon{ opacity: 0; } } .navbar-minimize{ position: absolute; right: 20px; top: 2px; opacity: 1; @extend .animation-transition-general; } .logo-tim{ border-radius: 50%; border: 1px solid #333; display: block; height: 61px; width: 61px; float: left; overflow: hidden; img{ width: 60px; height: 60px; } } .nav{ margin-top: 20px; display: block; .caret{ top: 14px; position: absolute; right: 10px; } li{ > a + div .nav{ margin-top: 5px; li > a{ margin-top: 0px; padding: 8px 8px; } } > a{ margin: 10px 15px 0; border-radius: $btn-round-radius; color: $white; display: block; text-decoration: none; position: relative; text-transform: uppercase; cursor: pointer; font-size: $font-size-xs; padding: 10px 8px; line-height: $line-height-lg; &.admin-link{ border-radius: 6px; } } &:first-child > a{ margin: 0 15px; } &:hover:not(.active) > a, &:focus:not(.active) > a{ p,i{ color: $white; } } &:hover:not(.active) > a i, &:focus:not(.active) > a i{ color: $white; } &.active > a:not([data-toggle="collapse"]){ background: transparent; i,p{ color: white; } &:before{ content: " "; position: absolute; height: 6px; width: 6px; top: 22px; left: -4px; background: $white; border-radius: 50%; } } &.active > a[data-toggle="collapse"]{ background: transparent; box-shadow: none; color: $white; i{ color: $white; } & + div .nav .active a{ box-shadow: none; .sidebar-mini-icon, .sidebar-normal{ color: $white; font-weight: $font-weight-normal; } &:before{ content: " "; position: absolute; height: 6px; width: 6px; top: 17px; left: -4px; background: $white; border-radius: 50%; } } &:before{ content: " "; position: absolute; height: 6px; width: 6px; top: 22px; left: -4px; background: rgba($white,0.6); border-radius: 50%; } } } p{ margin: 0; line-height: 30px; position: relative; display: block; height: auto; white-space: nowrap; @extend .animation-transition-general; } i{ font-size: 20px; float: left; margin-right: 12px; line-height: 30px; width: 34px; text-align: center; color: $opacity-8; position: relative; } } .sidebar-background{ position: absolute; z-index: 1; height: 100%; width: $full-width; display: block; top: 0; left: 0; background-size: cover; background-position: center center; &:after{ position: absolute; z-index: 3; width: $full-width; height: 100%; content: ""; display: block; background: $white; opacity: 1; } } .logo{ position: relative; padding: $padding-base-vertical $padding-base-horizontal 1rem; z-index: 4; a.logo-mini, a.logo-normal{ @extend .animation-transition-general; } a.logo-mini{ opacity: 1; float: left; width: 34px; text-align: center; margin-left: 10px; margin-right: 12px; } a.logo-normal{ display: block; opacity: 1; @include transform-translate-x(0px); } &:after{ content: ''; position: absolute; bottom: 0; right: 15px; height: 1px; width: calc(100% - 30px); background: $opacity-5; } p{ float: left; font-size: 20px; margin: 10px 10px; color: $white; line-height: 20px; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; } .simple-text{ text-transform: uppercase; padding: $padding-base-vertical 0; display: block; white-space: nowrap; font-size: $font-size-base; color: $white; text-decoration: none; font-weight: $font-weight-normal; line-height: 30px; overflow: hidden; } } .logo-tim{ border-radius: 50%; border: 1px solid #333; display: block; height: 61px; width: 61px; float: left; overflow: hidden; img{ width: 60px; height: 60px; } } &[data="blue"]{ @include linear-gradient($info-states, $info); &:before{ border-bottom-color: $info; } } &[data="green"]{ @include linear-gradient($success-states, $success); &:before{ border-bottom-color: $success; } } &[data="pro"]{ @include linear-gradient($proA, $proB); &:before{ border-bottom-color: $proB; } } &[data="orange"]{ @include linear-gradient($warning-states, $warning); &:before{ border-bottom-color: $warning; } } &[data="red"]{ @include linear-gradient($danger-states, $danger); &:before{ border-bottom-color: $danger; } } .user{ padding-bottom: 20px; margin:20px auto 0; position: relative; &:after{ content: ''; position: absolute; bottom: 0; right: 15px; height: 1px; width: calc(100% - 30px); background: $opacity-5; } .photo{ width: 34px; height: 34px; overflow: hidden; float: left; z-index: 5; margin-right: 10px; border-radius: 50%; margin-left: 23px; box-shadow: $box-shadow-raised; @extend .animation-transition-general; img{ width: $full-width; } } a{ color: $white; text-decoration: none; padding: $padding-base-vertical 15px; white-space: nowrap; @extend .animation-transition-general; } .info{ > a{ display: block; line-height: 18px; > span{ @extend .animation-transition-general; display: block; position: relative; opacity: 1; } } .caret{ position: absolute; top: 8px; right: 18px; } } } &:before{ content: ""; position: absolute; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 5px solid $primary; top: -5px; left: 40px; transform: translate(-50%); } } .visible-on-sidebar-regular{ display: inline-block !important; } .visible-on-sidebar-mini{ display: none !important; } .off-canvas-sidebar{ .nav { > li > a, > li > a:hover{ color: $white; } > li > a:focus{ background: rgba(200, 200, 200, 0.2); } } } .main-panel { position: relative; float: right; width: $full-width; min-height: 100vh; border-top: 2px solid $primary; background: linear-gradient($background-black, $background-states-black); @include transitions (0.50s, cubic-bezier(0.685, 0.0473, 0.346, 1)); &[data="blue"]{ border-top: 2px solid $info; } &[data="green"]{ border-top: 2px solid $success; } &[data="pro"]{ border-top: 2px solid $proB; } &[data="orange"]{ border-top: 2px solid $warning; } &[data="red"]{ border-top: 2px solid $danger; } &[data="primary"]{ border-top: 2px solid $primary; } > .content { padding: 80px 30px 30px 280px; min-height: calc(100vh - 70px); &.inside-layout{ min-height: auto; } &.nopaddingtop{ padding-top: 0px!important; } } > .navbar { margin-bottom: 0; } .header { margin-bottom: 50px; } } .perfect-scrollbar-on{ .sidebar, .main-panel{ height: 100%; max-height: 100%; } } .panel-header { height: $sidebar-width; padding-top: 80px; padding-bottom: 45px; background: #141E30; /* fallback for old browsers */ background: -webkit-gradient(linear, left top, right top, from(#0c2646), color-stop(60%, #204065), to(#2a5788)); background: linear-gradient(to right, #0c2646 0%, #204065 60%, #2a5788 100%); position: relative; overflow: hidden; .header{ .title{ color: $white; } .category{ max-width: 600px; color: $opacity-5; margin: 0 auto; font-size: 13px; a{ color: $white; } } } } .panel-header-sm{ height: 135px; } .panel-header-lg{ height: 380px } @include media-breakpoint-down(md){ .sidebar{ position: fixed; display: block; top: 0; height: 100vh; width: $sidebar-width; right: auto; left: 0; margin: 0; border-radius: 0; z-index: 1032; visibility: visible; overflow-y: visible; padding: 0; @include transition($sidebar-transition); @include transform-translate-x(-$sidebar-width); .sidebar-wrapper{ height: 100vh; } } .minimize-sidebar{ display: none; } .nav-open{ .main-panel{ right: 0; @include transform-translate-x($sidebar-width); } .sidebar{ @include transition($sidebar-transition); @include transform-translate-x(0px); &:before{ content: unset; } } body{ position: relative; overflow-x: hidden; } .menu-on-right{ .main-panel{ @include transform-translate-x(-$sidebar-width); } .navbar-collapse, .sidebar{ @include transform-translate-x(0px); } .bodyClick{ right: $sidebar-width; left: auto; } } } .menu-on-right{ .sidebar{ left: auto; right: 0; @include transform-translate-x($sidebar-width); } } .bodyClick{ height: 100%; width: 100%; position: fixed; opacity: 1; top: 0; right: 0; left: $sidebar-width; content: ""; z-index: 9999; overflow-x: hidden; background-color: transparent; @include transitions (0.50s, cubic-bezier(0.685, 0.0473, 0.346, 1)); } .wrapper{ @include transitions (0.50s, cubic-bezier(0.685, 0.0473, 0.346, 1)); } .main-panel{ width: 100%; .content{ padding-left: 30px; } } } @include media-breakpoint-up(lg){ .sidebar, .main-panel, .sidebar-wrapper{ -webkit-transition-property: top,bottom,width; transition-property: top,bottom, width; -webkit-transition-duration: .2s,.2s, .35s; transition-duration: .2s,.2s, .35s; -webkit-transition-timing-function: linear,linear,ease; transition-timing-function: linear,linear,ease; -webkit-overflow-scrolling: touch; } .sidebar-mini{ .visible-on-sidebar-regular{ display: none !important; } .visible-on-sidebar-mini{ display: inline-block !important; } .sidebar{ width: 80px; .sidebar-wrapper{ width: 100% !important; } } .sidebar{ display: block; z-index: 1030; box-shadow: $sidebar-box-shadow; .logo{ a.logo-normal{ opacity: 0; @include transform-translate-x(-25px); } } .sidebar-wrapper{ > .nav [data-toggle="collapse"] ~ div > ul > li > a .sidebar-normal, .user .info [data-toggle="collapse"] ~ div > ul > li > a .sidebar-normal, .user .info > a > span, > .nav li > a p{ @include transform-translate-x(-25px); opacity: 0; } } .nav [data-toggle="collapse"] ~ div > ul > li > a .sidebar-mini-icon{ opacity: 1; } } .sidebar:hover { width: $sidebar-width; .logo { a.logo-normal { opacity: 1; @include transform-translate-x(0); } } .navbar-minimize{ opacity: 1; } .sidebar-wrapper{ width: $sidebar-width; > .nav li > a p, > .nav [data-toggle="collapse"] ~ div > ul > li > a .sidebar-normal, .user .info [data-toggle="collapse"] ~ div > ul > li > a .sidebar-normal, .user .info > a > span{ @include transform-translate-x(0px); opacity: 1; } } .nav [data-toggle="collapse"] ~ div > ul > li > a .sidebar-mini-icon{ opacity: 0; } } .main-panel{ > .content{ padding-left: 130px; } } footer{ padding-left: 130px; } } .navbar-minimize{ button { margin-left: 10px; i{ color: $white; font-size: 20px; } } } } @include media-breakpoint-down(sm){ .main-panel .content { padding-left: 15px; padding-right: 15px; } } @include media-breakpoint-between (md, lg){ .wrapper{ @include transitions (0.50s, cubic-bezier(0.685, 0.0473, 0.346, 1)); } .sidebar{ position: fixed; display: block; top: 0; height: 100vh; width: $sidebar-width !important; right: auto; left: 0; margin: 0; border-radius: 0; z-index: 1032; visibility: visible; overflow-y: visible; padding: 0; @include transition($sidebar-transition); @include transform-translate-x(-$sidebar-width); .sidebar-wrapper{ height: 100vh; } } .main-panel{ @include transition($sidebar-transition); } .nav-open{ .main-panel{ right: 0; @include transform-translate-x($sidebar-width); } .sidebar{ @include transition($sidebar-transition); @include transform-translate-x(0px); &:before{ content: unset; } } body{ position: relative; overflow-x: hidden; } .menu-on-right{ .main-panel{ @include transform-translate-x(-$sidebar-width); } .navbar-collapse, .sidebar{ @include transform-translate-x(0px); } .bodyClick{ right: $sidebar-width; left: auto; } } } .menu-on-right{ .sidebar{ left: auto; right: 0; @include transform-translate-x($sidebar-width); } } .bodyClick { height: 100%; width: 100%; position: fixed; opacity: 1; top: 0; right: 0; left: $sidebar-width; content: ""; z-index: 9999; overflow-x: hidden; background-color: transparent; @include transitions(0.50s, cubic-bezier(0.685, 0.0473, 0.346, 1)); } .main-panel .content { padding-left: 30px !important; } .sidebar-mini .sidebar .logo a.logo-normal{ opacity: 1; transform: translate3d(0px,0,0); } .sidebar-mini .sidebar .sidebar-wrapper>.nav li>a p{ opacity: 1; } .sidebar-mini .sidebar .sidebar-wrapper .nav li a p{ opacity: 1 !important; transform: translate3d(0px,0,0); } .minimize-sidebar { display: none; } }