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 11#app {
2- // 主体区域
2+ // 主体区域 Main container
33 .main-container {
44 min-height : 100% ;
55 transition : margin-left .28s ;
6- margin-left : 180 px ;
6+ margin-left : $sideBarWidth ;
77 position : relative ;
88 }
9- // 侧边栏
9+ // 侧边栏 Sidebar container
1010 .sidebar-container {
1111 transition : width 0.28s ;
12- width : 180 px !important ;
12+ width : $sideBarWidth !important ;
1313 height : 100% ;
1414 position : fixed ;
1515 font-size : 0px ;
9090 }
9191 .sidebar-container .nest-menu .el-submenu >.el-submenu__title ,
9292 .sidebar-container .el-submenu .el-menu-item {
93- min-width : 180 px !important ;
93+ min-width : $sideBarWidth !important ;
9494 background-color : $subMenuBg !important ;
9595 & :hover {
9696 background-color : $menuHover !important ;
9797 }
9898 }
9999 .el-menu--collapse .el-menu .el-submenu {
100- min-width : 180 px !important ;
100+ min-width : $sideBarWidth !important ;
101101 }
102102
103- // 适配移动端
103+ // 适配移动端, Mobile responsive
104104 .mobile {
105105 .main-container {
106106 margin-left : 0px ;
107107 }
108108 .sidebar-container {
109109 transition : transform .28s ;
110- width : 180 px !important ;
110+ width : $sideBarWidth !important ;
111111 }
112112 & .hideSidebar {
113113 .sidebar-container {
114114 transition-duration : 0.3s ;
115- transform : translate3d (-180 px , 0 , 0 );
115+ transform : translate3d (- $sideBarWidth , 0 , 0 );
116116 }
117117 }
118118 }
Original file line number Diff line number Diff line change @@ -11,3 +11,5 @@ $panGreen: #30B08F;
1111$menuBg :#304156 ;
1212$subMenuBg :#1f2d3d ;
1313$menuHover :#001528 ;
14+
15+ $sideBarWidth : 180px ;
You can’t perform that action at this time.
0 commit comments