Skip to content

Commit cc7554f

Browse files
Liugq5713PanJiaChen
authored andcommitted
perf[RightPanel]: tidy css (#2101)
1 parent 4f9efc8 commit cc7554f

File tree

1 file changed

+13
-20
lines changed

1 file changed

+13
-20
lines changed

src/components/RightPanel/index.vue

+13-20
Original file line numberDiff line numberDiff line change
@@ -86,32 +86,27 @@ export default {
8686

8787
<style lang="scss" scoped>
8888
.rightPanel-background {
89+
position: fixed;
90+
top: 0;
91+
left: 0;
8992
opacity: 0;
9093
transition: opacity .3s cubic-bezier(.7, .3, .1, 1);
9194
background: rgba(0, 0, 0, .2);
92-
width: 0;
93-
height: 0;
94-
top: 0;
95-
left: 0;
96-
position: fixed;
9795
z-index: -1;
9896
}
9997
10098
.rightPanel {
101-
background: #fff;
102-
z-index: 3000;
103-
position: fixed;
104-
height: 100vh;
10599
width: 100%;
106100
max-width: 260px;
107-
top: 0px;
108-
left: 0px;
101+
height: 100vh;
102+
position: fixed;
103+
top: 0;
104+
right: 0;
109105
box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, .05);
110106
transition: all .25s cubic-bezier(.7, .3, .1, 1);
111107
transform: translate(100%);
108+
background: #fff;
112109
z-index: 40000;
113-
left: auto;
114-
right: 0px;
115110
}
116111
117112
.show {
@@ -130,20 +125,18 @@ export default {
130125
}
131126
132127
.handle-button {
128+
width: 48px;
129+
height: 48px;
133130
position: absolute;
134131
left: -48px;
132+
text-align: center;
133+
font-size: 24px;
135134
border-radius: 6px 0 0 6px !important;
136-
width: 48px;
137-
height: 48px;
138-
pointer-events: auto;
139135
z-index: 0;
140-
cursor: pointer;
141136
pointer-events: auto;
142-
font-size: 24px;
143-
text-align: center;
137+
cursor: pointer;
144138
color: #fff;
145139
line-height: 48px;
146-
147140
i {
148141
font-size: 24px;
149142
line-height: 48px;

0 commit comments

Comments
 (0)