【前端】智能库房综合管理系统前端项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

292 lines
5.5 KiB

#app {
.main-container {
min-height: 100%;
transition: margin-left .28s;
margin-left: $sideBarWidth;
position: relative;
padding-top: 100px;
}
.sidebar-container {
transition: width 0.28s;
width: $sideBarWidth !important;
background-color: $menuBg;
height: 100%;
position: fixed;
font-size: 0;
top: 100px;
bottom: 0;
left: 0;
z-index: 99;
background: url(~@/assets/images/sidebar_bg.png) #031435 no-repeat right bottom;
background-size: contain;
box-shadow: 5px 2px 10px 1px rgba(15,164,222,0.16);
overflow: hidden;
// reset element-ui css
.horizontal-collapse-transition {
transition: 0s width ease-in-out, 0s padding-left ease-in-out, 0s padding-right ease-in-out;
}
.scrollbar-wrapper {
overflow-x: hidden !important;
}
.el-scrollbar__bar.is-vertical {
right: 0;
}
.el-scrollbar {
height: 100%;
}
&.has-logo {
.el-scrollbar {
height: calc(100% - 50px);
}
}
.is-horizontal {
display: none;
}
a {
display: inline-block;
width: 100%;
overflow: hidden;
}
.svg-icon {
margin-right: 10px;
}
.el-submenu__icon-arrow{
font-size: 18px;
color: #339CFF;
right: 60px;
}
.el-menu {
border: none;
height: 100%;
width: 100% !important;
background-color: transparent !important;
}
// menu hover
.submenu-title-noDropdown,
.el-submenu__title {
font-size: 16px;
height: 60px !important;
line-height: 60px !important;
padding: 0 60px 0 58px !important;
background-color: transparent !important;
&:hover {
background-image: $menuActiveBg !important;
&::before{
content: "";
position: absolute;
left: 0;
top: 0;
width: 5px;
height: 60px;
background-color: #339CFF;
}
}
}
.is-active>.el-submenu__title,
.is-active.submenu-title-noDropdown {
position: relative;
color: $subMenuActiveText !important;
background-image: $menuActiveBg !important;
&::before{
content: "";
position: absolute;
left: 0;
top: 0;
width: 5px;
height: 60px;
background-color: #339CFF;
}
}
& .nest-menu .el-submenu>.el-submenu__title,
& .el-submenu .el-menu-item {
min-width: $sideBarWidth !important;
background-color: transparent !important;
&:hover {
background-image: $subMenuHover !important;
}
}
& .el-submenu .el-menu-item{
position: relative;
padding: 0 60px 0 82px !important;
height: 40px !important;
line-height: 40px;
&::before{
content: "";
position: absolute;
left: 56px;
top: 50%;
width: 6px;
height: 6px;
background-color: #fff;
border-radius: 50%;
transform: translateY(-50%);
}
.svg-icon {
display: none;
}
}
}
.hideSidebar {
.sidebar-container {
width: 54px !important;
}
.main-container {
margin-left: 54px;
}
.submenu-title-noDropdown {
padding: 0 !important;
position: relative;
.el-tooltip {
padding: 0 !important;
.svg-icon {
margin-left: 20px;
}
}
}
.el-submenu {
overflow: hidden;
&>.el-submenu__title {
padding: 0 !important;
.svg-icon {
margin-left: 20px;
}
.el-submenu__icon-arrow {
display: none;
}
}
}
.el-menu--collapse {
.el-submenu {
&>.el-submenu__title {
&>span {
height: 0;
width: 0;
overflow: hidden;
visibility: hidden;
display: inline-block;
}
}
}
}
.main-breadcrumb{
left: 54px;
}
}
.el-menu--collapse .el-menu .el-submenu {
min-width: $sideBarWidth !important;
}
// mobile responsive
.mobile {
.main-container {
margin-left: 0;
}
.sidebar-container {
transition: transform .28s;
width: $sideBarWidth !important;
}
&.hideSidebar {
.sidebar-container {
pointer-events: none;
transition-duration: 0.3s;
transform: translate3d(-$sideBarWidth, 0, 0);
}
}
}
.withoutAnimation {
.main-container,
.sidebar-container {
transition: none;
}
}
}
.is-active.el-menu-item {
background-image: $subMenuActiveBg !important;
}
// when menu collapsed
.el-menu--vertical {
&>.el-menu {
.svg-icon {
display: none;
margin-right: 16px;
}
}
.nest-menu .el-submenu>.el-submenu__title,
.el-menu-item {
position: relative;
padding-left: 50px !important;
height: 40px !important;
line-height: 40px;
&::before{
content: "";
position: absolute;
left: 30px;
top: 50%;
width: 6px;
height: 6px;
background-color: #fff;
border-radius: 50%;
transform: translateY(-50%);
}
&:hover {
background-image: $subMenuHover !important;
}
}
// the scroll bar appears when the subMenu is too long
>.el-menu--popup {
max-height: 100vh;
overflow-y: auto;
&::-webkit-scrollbar-track-piece {
background: #d3dce6;
}
&::-webkit-scrollbar {
width: 6px;
}
&::-webkit-scrollbar-thumb {
background: #99a9bf;
border-radius: 20px;
}
}
}