Skip to content

Commit d78b498

Browse files
committed
refine css
1 parent dd9ef51 commit d78b498

File tree

3 files changed

+13
-18
lines changed

3 files changed

+13
-18
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"codemirror": "5.26.0",
1818
"dropzone": "5.1.0",
1919
"echarts": "3.6.1",
20-
"element-ui": "1.4.0",
20+
"element-ui": "1.4.1",
2121
"file-saver": "1.3.3",
2222
"jquery": "3.1.1",
2323
"js-cookie": "2.1.4",

src/styles/sidebar.scss

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@
1111
margin-right: 0;
1212
}
1313

14+
.hideSidebar .el-submenu>.el-submenu__title,
15+
.hideSidebar .submenu-title-noDropdown {
16+
padding-left: 10px!important;
17+
}
18+
1419
.hideSidebar .submenu-title-noDropdown span,
1520
.hideSidebar .el-submenu>.el-submenu__title span {
1621
height: 0;
@@ -22,6 +27,7 @@
2227

2328
.hideSidebar .nest-menu .el-submenu__title {
2429
text-align: initial!important;
30+
padding-left: 20px!important;
2531
span {
2632
height: auto;
2733
width: auto;
@@ -69,4 +75,3 @@
6975
.el-submenu .el-menu-item {
7076
min-width: 180px!important;
7177
}
72-

src/views/layout/Layout.vue

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -35,35 +35,25 @@
3535
width: 100%;
3636
&.hideSidebar {
3737
.sidebar-container{
38-
width:56px;
38+
width:36px;
3939
}
4040
.main-container {
41-
margin-left: 56px;
41+
margin-left: 36px;
4242
}
43-
// .sidebar-wrapper {
44-
// transform: translate(-140px, 0);
45-
// .sidebar-container {
46-
// transform: translate(132px, 0);
47-
// }
48-
// &:hover {
49-
// transform: translate(0, 0);
50-
// .sidebar-container {
51-
// transform: translate(0, 0);
52-
// }
53-
// }
54-
// }
55-
5643
}
5744
.sidebar-container {
5845
transition: all .28s ease-out;
5946
width: 180px;
60-
height: 1000px;
47+
height: 100%;
6148
position: fixed;
6249
top: 0;
6350
bottom: 0;
6451
left: 0;
6552
z-index: 1001;
6653
background: red;
54+
// overflow-y: auto;
55+
&::-webkit-scrollbar {display:none}
56+
6757
}
6858
.main-container {
6959
min-height: 100%;

0 commit comments

Comments
 (0)