File tree 1 file changed +13
-20
lines changed
src/components/RightPanel
1 file changed +13
-20
lines changed Original file line number Diff line number Diff line change @@ -86,32 +86,27 @@ export default {
86
86
87
87
<style lang="scss" scoped>
88
88
.rightPanel-background {
89
+ position : fixed ;
90
+ top : 0 ;
91
+ left : 0 ;
89
92
opacity : 0 ;
90
93
transition : opacity .3s cubic-bezier (.7 , .3 , .1 , 1 );
91
94
background : rgba (0 , 0 , 0 , .2 );
92
- width : 0 ;
93
- height : 0 ;
94
- top : 0 ;
95
- left : 0 ;
96
- position : fixed ;
97
95
z-index : -1 ;
98
96
}
99
97
100
98
.rightPanel {
101
- background : #fff ;
102
- z-index : 3000 ;
103
- position : fixed ;
104
- height : 100vh ;
105
99
width : 100% ;
106
100
max-width : 260px ;
107
- top : 0px ;
108
- left : 0px ;
101
+ height : 100vh ;
102
+ position : fixed ;
103
+ top : 0 ;
104
+ right : 0 ;
109
105
box-shadow : 0px 0px 15px 0px rgba (0 , 0 , 0 , .05 );
110
106
transition : all .25s cubic-bezier (.7 , .3 , .1 , 1 );
111
107
transform : translate (100% );
108
+ background : #fff ;
112
109
z-index : 40000 ;
113
- left : auto ;
114
- right : 0px ;
115
110
}
116
111
117
112
.show {
@@ -130,20 +125,18 @@ export default {
130
125
}
131
126
132
127
.handle-button {
128
+ width : 48px ;
129
+ height : 48px ;
133
130
position : absolute ;
134
131
left : -48px ;
132
+ text-align : center ;
133
+ font-size : 24px ;
135
134
border-radius : 6px 0 0 6px !important ;
136
- width : 48px ;
137
- height : 48px ;
138
- pointer-events : auto ;
139
135
z-index : 0 ;
140
- cursor : pointer ;
141
136
pointer-events : auto ;
142
- font-size : 24px ;
143
- text-align : center ;
137
+ cursor : pointer ;
144
138
color : #fff ;
145
139
line-height : 48px ;
146
-
147
140
i {
148
141
font-size : 24px ;
149
142
line-height : 48px ;
You can’t perform that action at this time.
0 commit comments