fe-drone-ci/src/styles/sidebar.scss

114 lines
2.1 KiB
SCSS
Raw Normal View History

2017-11-02 07:51:29 +00:00
// 主体区域
.main-container {
min-height: 100%;
transition: margin-left 0.28s;
margin-left: 180px;
}
2017-07-24 06:41:02 +00:00
// 侧边栏
2017-11-02 07:51:29 +00:00
.hideSidebar {
.sidebar-container {
2017-11-02 07:55:56 +00:00
width: 36px!important;
overflow: inherit;
2017-11-02 07:51:29 +00:00
}
.main-container {
margin-left: 36px;
}
}
.sidebar-container {
2017-11-02 07:55:56 +00:00
transition: width 0.28s;
2017-11-02 07:51:29 +00:00
width: 180px!important;
height: 100%;
position: fixed;
top: 0;
bottom: 0;
left: 0;
2017-11-02 07:55:56 +00:00
z-index: 1001;
overflow-y: auto;
2017-11-02 07:51:29 +00:00
&::-webkit-scrollbar {
display: none
}
}
2017-07-24 06:41:02 +00:00
.sidebar-container>.el-menu {
width: 100%!important;
2017-08-02 06:42:20 +00:00
min-height: 100%;
2017-07-24 06:41:02 +00:00
}
.sidebar-container .svg-icon {
margin-right: 16px;
}
2017-07-28 06:19:48 +00:00
.hideSidebar .el-submenu>.el-submenu__title,
.hideSidebar .submenu-title-noDropdown {
padding-left: 10px!important;
}
2017-07-24 06:41:02 +00:00
.hideSidebar .submenu-title-noDropdown span,
2017-07-28 07:52:22 +00:00
.hideSidebar .el-submenu>.el-submenu__title>span {
2017-07-24 06:41:02 +00:00
height: 0;
width: 0;
overflow: hidden;
visibility: hidden;
display: inline-block;
}
.hideSidebar .nest-menu .el-submenu__title {
text-align: initial!important;
2017-07-28 06:19:48 +00:00
padding-left: 20px!important;
2017-07-24 06:41:02 +00:00
span {
height: auto;
width: auto;
visibility: visible;
2017-07-28 07:52:22 +00:00
display: inline;
2017-07-24 06:41:02 +00:00
}
.el-submenu__icon-arrow {
display: block!important;
}
}
.hideSidebar .menu-wrapper>.el-menu-item,
.hideSidebar .submenu-title-noDropdown,
.hideSidebar .menu-wrapper>.el-submenu .el-submenu__title {
text-align: center;
}
.hideSidebar .el-menu-item .el-submenu__icon-arrow,
.hideSidebar .el-submenu .el-submenu__title .el-submenu__icon-arrow {
display: none;
}
.hideSidebar .submenu-title-noDropdown {
position: relative;
span {
transition: opacity .3s cubic-bezier(.55, 0, .1, 1);
opacity: 0;
}
&:hover {
span {
display: block;
border-radius: 3px;
z-index: 1002;
width: 140px;
height: 56px;
visibility: visible;
position: absolute;
right: -145px;
2017-07-28 07:52:22 +00:00
text-align: left;
text-indent: 20px;
2017-07-24 06:41:02 +00:00
top: 0px;
2017-11-02 07:51:29 +00:00
background-color: #2B2C2D!important;
2017-07-24 06:41:02 +00:00
opacity: 1;
}
}
}
.el-submenu .el-menu-item {
min-width: 180px!important;
2017-11-02 07:51:29 +00:00
background-color: #2B2C2D!important;
&:hover {
background-color: rgb(67, 74, 80)!important;
}
2017-07-24 06:41:02 +00:00
}