File tree Expand file tree Collapse file tree 2 files changed +52
-16
lines changed Expand file tree Collapse file tree 2 files changed +52
-16
lines changed Original file line number Diff line number Diff line change @@ -52,16 +52,16 @@ export default {
52
52
top : 70px ;
53
53
bottom : 0 ;
54
54
overflow-y : scroll ;
55
- box-shadow : 0 0 1.2em rgba (0 , 0 , 0 , 0.12 );
56
55
}
57
56
.sidebar ::-webkit-scrollbar {
58
57
width : 0 ;
59
58
}
60
59
.sidebar-el-menu {
61
60
height : calc (100vh - 50px );
61
+ box-shadow : 0 0 1.2em rgba (0 , 0 , 0 , 0.12 );
62
62
}
63
63
.sidebar-el-menu :not (.el-menu--collapse ) {
64
- width : 230 px ;
64
+ width : 240 px ;
65
65
}
66
66
.sidebar > ul {
67
67
height : 100% ;
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div class =" app-header" >
3
3
<div class =" logo" >
4
- <router-link to =" /" >XX公司权限管理平台</router-link >
4
+ <router-link to =" /" >
5
+ <div
6
+ class =" log1"
7
+ v-if =" sidebarOpened"
8
+ ></div >
9
+ <div
10
+ class =" log2"
11
+ v-else
12
+ ></div >
13
+ </router-link >
5
14
</div >
6
15
<!-- 头部切换左侧菜单 -->
7
16
<div
10
19
>
11
20
<i
12
21
v-if =" sidebarOpened"
13
- class =" el-icon-s-fold"
22
+ class =" trigger el-icon-s-fold"
14
23
></i >
15
24
<i
16
25
v-else
17
- class =" el-icon-s-unfold"
26
+ class =" trigger el-icon-s-unfold"
18
27
></i >
19
28
</div >
20
29
<!-- 头部导航 -->
@@ -82,19 +91,46 @@ export default {
82
91
flex-direction : row ;
83
92
line-height : 50px ;
84
93
color : #fff ;
85
- .menus {
86
- width : 30px ;
87
- height : 30px ;
88
- font-size : 25px ;
89
- padding : 0 21px ;
90
- cursor : pointer ;
91
- }
92
94
.logo {
93
- width : 240px ;
94
- height : inherit ;
95
+ height : 50px ;
96
+ display : flex ;
97
+ flex-direction : column ;
98
+ justify-content : center ;
99
+ align-items : center ;
100
+ transition : width 0.3s ;
101
+ .log1 {
102
+ width : 240px ;
103
+ height : 40px ;
104
+ background : rgba (255 , 255 , 255 , 0.2 );
105
+ }
106
+ .log2 {
107
+ width : 65px ;
108
+ height : 40px ;
109
+ background : rgba (255 , 255 , 255 , 0.2 );
110
+ }
111
+ }
112
+ .menus {
113
+ width : 50px ;
114
+ height : 50px ;
95
115
text-align : center ;
96
- a {
97
- text-decoration : none ;
116
+ line-height : 50px ;
117
+ display : flex ;
118
+ flex-direction : column ;
119
+ justify-content : center ;
120
+ align-items : center ;
121
+ margin-left : 5px ;
122
+ .trigger {
123
+ color : #fff ;
124
+ font-size : 30px ;
125
+ width : 35px ;
126
+ height : 35px ;
127
+ padding : 5px ;
128
+ margin-top : 4px ;
129
+ cursor : pointer ;
130
+ transition : color 0.3s ;
131
+ }
132
+ .trigger :hover {
133
+ background : #40a9ff ;
98
134
color : #fff ;
99
135
}
100
136
}
You can’t perform that action at this time.
0 commit comments