File tree Expand file tree Collapse file tree 2 files changed +11
-9
lines changed Expand file tree Collapse file tree 2 files changed +11
-9
lines changed Original file line number Diff line number Diff line change 1
1
#app {
2
- // 主体区域
2
+ // 主体区域 Main container
3
3
.main-container {
4
4
min-height : 100% ;
5
5
transition : margin-left .28s ;
6
- margin-left : 180 px ;
6
+ margin-left : $sideBarWidth ;
7
7
position : relative ;
8
8
}
9
- // 侧边栏
9
+ // 侧边栏 Sidebar container
10
10
.sidebar-container {
11
11
transition : width 0.28s ;
12
- width : 180 px !important ;
12
+ width : $sideBarWidth !important ;
13
13
height : 100% ;
14
14
position : fixed ;
15
15
font-size : 0px ;
90
90
}
91
91
.sidebar-container .nest-menu .el-submenu >.el-submenu__title ,
92
92
.sidebar-container .el-submenu .el-menu-item {
93
- min-width : 180 px !important ;
93
+ min-width : $sideBarWidth !important ;
94
94
background-color : $subMenuBg !important ;
95
95
& :hover {
96
96
background-color : $menuHover !important ;
97
97
}
98
98
}
99
99
.el-menu--collapse .el-menu .el-submenu {
100
- min-width : 180 px !important ;
100
+ min-width : $sideBarWidth !important ;
101
101
}
102
102
103
- // 适配移动端
103
+ // 适配移动端, Mobile responsive
104
104
.mobile {
105
105
.main-container {
106
106
margin-left : 0px ;
107
107
}
108
108
.sidebar-container {
109
109
transition : transform .28s ;
110
- width : 180 px !important ;
110
+ width : $sideBarWidth !important ;
111
111
}
112
112
& .hideSidebar {
113
113
.sidebar-container {
114
114
transition-duration : 0.3s ;
115
- transform : translate3d (-180 px , 0 , 0 );
115
+ transform : translate3d (- $sideBarWidth , 0 , 0 );
116
116
}
117
117
}
118
118
}
Original file line number Diff line number Diff line change @@ -11,3 +11,5 @@ $panGreen: #30B08F;
11
11
$menuBg :#304156 ;
12
12
$subMenuBg :#1f2d3d ;
13
13
$menuHover :#001528 ;
14
+
15
+ $sideBarWidth : 180px ;
You can’t perform that action at this time.
0 commit comments