Skip to content

Commit b813364

Browse files
committed
refine css && refine sidebar
1 parent b7f96a0 commit b813364

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

src/styles/index.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,13 @@ code {
221221
z-index: 1000 !important;
222222
}
223223

224+
//refine simplemde
225+
.simplemde-container{
226+
.editor-toolbar.fullscreen,.CodeMirror-fullscreen{
227+
z-index: 1003;
228+
}
229+
}
230+
224231
//暂时性解决diolag 问题 https://github.com/ElemeFE/element/issues/2461
225232
.el-dialog {
226233
transform: none;

src/views/layout/Layout.vue

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,22 +54,20 @@
5454
height: 100%;
5555
width: 100%;
5656
&.hideSidebar {
57-
padding-left: 40px;
5857
.sidebar-wrapper {
5958
transform: translate(-140px, 0);
6059
.sidebar-container {
6160
transform: translate(132px, 0);
6261
}
6362
&:hover {
6463
transform: translate(0, 0);
65-
z-index: 1001;
6664
.sidebar-container {
6765
transform: translate(0, 0);
6866
}
6967
}
7068
}
7169
.main-container{
72-
padding-left: 0px;
70+
margin-left: 40px;
7371
}
7472
}
7573
.sidebar-wrapper {
@@ -78,7 +76,7 @@
7876
top: 0;
7977
bottom: 0;
8078
left: 0;
81-
z-index: 2;
79+
z-index: 1001;
8280
overflow-x: hidden;
8381
transition: all .28s ease-out;
8482
@include scrollBar;
@@ -87,10 +85,9 @@
8785
transition: all .28s ease-out;
8886
}
8987
.main-container {
90-
width: 100%;
9188
min-height: 100%;
9289
transition: all .28s ease-out;
93-
padding-left: 180px;
90+
margin-left: 180px;
9491
}
9592
}
9693
</style>

src/views/layout/Sidebar.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<el-menu mode="vertical" theme="dark" :default-active="$route.path">
2+
<el-menu :unique-opened='true' mode="vertical" theme="dark" :default-active="$route.path">
33
<template v-for="item in permissionRoutes" v-if="!item.hidden">
44
<el-submenu :index="item.name" v-if="!item.noDropdown">
55
<template slot="title">

0 commit comments

Comments
 (0)