231 lines
4.5 KiB
SCSS
231 lines
4.5 KiB
SCSS
@use '../globals/' as *;
|
|
@use '../util/' as *;
|
|
|
|
|
|
.sidebar{
|
|
position: fixed;
|
|
height: 100vh;
|
|
width: 100%;
|
|
color: $text-core;
|
|
background: var(--bg-core-primary);
|
|
//margin: -2rem 2rem -2rem -2rem;
|
|
z-index: 100;
|
|
transition: all 0.3s ease;
|
|
|
|
@include breakpoint(sm) {
|
|
height: calc(100% + 4rem);
|
|
position: relative;
|
|
width: 300px;
|
|
}
|
|
}
|
|
|
|
.sidebar.close{
|
|
width: 0;
|
|
transform: translateX(-75px);
|
|
@include breakpoint(sm) {
|
|
width: 75px;
|
|
transform: translateX(0);
|
|
}
|
|
}
|
|
|
|
.main {
|
|
width: calc(100% - 1.5rem) ;
|
|
margin-inline:auto;
|
|
@include breakpoint (sm) {
|
|
width: calc(100% - 300px);;
|
|
padding: 2rem;
|
|
}
|
|
}
|
|
|
|
.main.close{
|
|
@include breakpoint (sm) {
|
|
width: calc(100% - 75px);
|
|
}
|
|
}
|
|
|
|
//profile
|
|
.sidebar .profile-details{
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
color: #fff;
|
|
background-color: rgba(0,0,0,.6);
|
|
}
|
|
|
|
.sidebar .profile-details .avatar{
|
|
min-width: calc(70px - 1rem);
|
|
text-align: center;
|
|
margin: 1rem 0 1rem 1rem;
|
|
|
|
}
|
|
|
|
.sidebar .profile-details img{
|
|
height: 40px;
|
|
width: 40px;
|
|
object-fit: cover;
|
|
border-radius: 50%;
|
|
//transition: all 0.5s ease;
|
|
}
|
|
|
|
.sidebar .profile-details .name-job{
|
|
margin-right: auto;
|
|
|
|
}
|
|
|
|
.sidebar .profile-details .profile-name{
|
|
font-weight: 600;
|
|
white-space: nowrap;
|
|
}
|
|
.sidebar .profile-details .profile-job{
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.sidebar .profile-details i{
|
|
height: 50px;
|
|
min-width: 70px;
|
|
text-align: center;
|
|
line-height: 50px;
|
|
font-size: 20px;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
}
|
|
.sidebar.close .profile-details i,
|
|
.sidebar.close .profile-details .profile-name,
|
|
.sidebar.close .profile-details .profile-job{
|
|
display: none;
|
|
}
|
|
|
|
//links
|
|
.sidebar .nav-links{
|
|
height: 100%;
|
|
padding: 0;
|
|
overflow: auto;
|
|
}
|
|
.sidebar.close .nav-links{
|
|
overflow: visible;
|
|
}
|
|
.sidebar .nav-links::-webkit-scrollbar{
|
|
display: none;
|
|
}
|
|
.sidebar .nav-links li{
|
|
position: relative;
|
|
list-style: none;
|
|
transition: all 0.4s ease;
|
|
}
|
|
.sidebar .nav-links li:hover{
|
|
background: var(--bg-core-primary-lighten);
|
|
}
|
|
.sidebar .nav-links li .iocn-link{
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
.sidebar.close .nav-links li .iocn-link{
|
|
display: block
|
|
}
|
|
.sidebar .nav-links li i{
|
|
height: 50px;
|
|
min-width: 70px;
|
|
text-align: center;
|
|
line-height: 50px;
|
|
color: var(--text-core-vc);
|
|
font-size: 20px;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
}
|
|
.sidebar .nav-links li.showMenu i.arrow{
|
|
transform: rotate(-180deg);
|
|
}
|
|
.sidebar.close .nav-links i.arrow{
|
|
display: none;
|
|
}
|
|
.sidebar .nav-links li a{
|
|
display: flex;
|
|
align-items: center;
|
|
text-decoration: none;
|
|
}
|
|
.sidebar .nav-links li a .link_name{
|
|
flex: 1 0 auto;
|
|
font-weight: 400;
|
|
color: var(--text-core);
|
|
//transition: all 0.4s ease;
|
|
}
|
|
.sidebar.close .nav-links li a .link_name{
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sidebar .nav-links li .sub-menu{
|
|
padding: 6px 6px 14px 70px;
|
|
margin-top: -10px;
|
|
background:var(--bg-core-primary-lighten);
|
|
display: none;
|
|
}
|
|
.sidebar .nav-links li.showMenu .sub-menu{
|
|
display: block;
|
|
}
|
|
.sidebar .nav-links li .sub-menu a{
|
|
color: var(--text-core);
|
|
font-size: 15px;
|
|
padding: 5px 0;
|
|
white-space: nowrap;
|
|
|
|
transition: all 0.3s ease;
|
|
}
|
|
.sidebar .nav-links li .sub-menu a:hover{
|
|
color: var(--bg-core-primary-darken);
|
|
}
|
|
.sidebar.close .nav-links li .sub-menu{
|
|
position: absolute;
|
|
left: 100%;
|
|
top: -10px;
|
|
margin-top: 0;
|
|
padding: 10px 20px;
|
|
border-radius: 0 6px 6px 0;
|
|
opacity: 0;
|
|
display: block;
|
|
pointer-events: none;
|
|
transition: 0s;
|
|
}
|
|
.sidebar.close .nav-links li:hover .sub-menu{
|
|
top: 0;
|
|
opacity: 1;
|
|
pointer-events: auto;
|
|
transition: all 0.4s ease;
|
|
}
|
|
.sidebar .nav-links li .sub-menu .link_name{
|
|
display: none;
|
|
}
|
|
.sidebar.close .nav-links li .sub-menu .link_name{
|
|
font-weight: 600;
|
|
opacity: 1;
|
|
display: block;
|
|
}
|
|
.sidebar .nav-links li .sub-menu.blank{
|
|
opacity: 1;
|
|
pointer-events: auto;
|
|
padding: 3px 20px 6px 16px;
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
}
|
|
.sidebar .nav-links li:hover .sub-menu.blank{
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|