Files
finanzas_api/APP/assets/sass/dashboard/custom/_sidebar-and-main-panel.scss
2021-04-21 21:47:04 -05:00

739 lines
16 KiB
SCSS

.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(100vh - 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-y: auto;
overflow-x: hidden;
.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;
}
i{
font-size: 17px;
line-height: 20px;
width: 26px;
}
}
}
}
.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;
font-weight: $font-weight-normal;
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;
}
&: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;
&: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: #FFFFFF;
opacity: 1;
}
}
.logo{
position: relative;
display: flex;
align-items: center;
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: 38px;
height: 38px;
min-width: 38px;
text-align: center;
padding: 0;
margin-left: 12px;
margin-right: 12px;
border-radius: 50%;
background-color: rgba($white,0.9);
img {
padding: 5px;
}
}
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="vue"] {
@include linear-gradient($vue-states, $vue);
&:before{
border-bottom-color: $vue;
}
}
.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;
}
}
}
}
.visible-on-sidebar-regular{
display: inline-block !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="primary"]{
border-top: 2px solid $primary;
}
&[data="vue"]{
border-top: 2px solid $vue;
}
> .content {
padding: 80px 30px 30px 280px;
min-height: calc(100vh - 70px);
}
> .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;
}
}
.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 .nav-open{
.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 .nav>li.active-pro {
position: absolute;
width: 100%;
bottom: 10px;
}
}
@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;
}
}