Skip to content

Commit 7b54f98

Browse files
committed
style: 优化移动端视频播放器关闭按钮的位置
1 parent 49fb111 commit 7b54f98

File tree

1 file changed

+23
-10
lines changed

1 file changed

+23
-10
lines changed

src/components/preview/VideoPreview.vue

+23-10
Original file line numberDiff line numberDiff line change
@@ -296,9 +296,10 @@ export default {
296296
.close-bar {
297297
z-index: 2006;
298298
position: relative;
299-
top: -25px;
300-
right: -25px;
299+
top: -30px;
300+
right: -30px;
301301
float: right;
302+
font-size: 18px;
302303
color: #fff0f0;
303304
background: #d4d4d475;
304305
border-color: rgba(0, 0, 0, 0) rgba(0, 0, 0, 0) rgba(0, 0, 0, 0) #69696975;
@@ -309,15 +310,27 @@ export default {
309310
border-color: #fff0f0;
310311
}
311312
312-
.audio-player-close {
313-
transform: rotate(315deg);
314-
z-index: 2009;
315-
position: absolute;
316-
font-size: 18px;
317-
top: -8px;
318-
right: 13px;
319-
}
313+
}
320314
315+
@media screen and (max-width: 768px) {
316+
.block {
317+
.close-bar {
318+
z-index: 2006;
319+
position: relative;
320+
top: 0;
321+
right: 0;
322+
font-size: 18px;
323+
float: right;
324+
color: #fff0f0;
325+
background: #d4d4d475;
326+
border-color: rgba(0, 0, 0, 0) rgba(0, 0, 0, 0) rgba(0, 0, 0, 0) #69696975;
327+
}
328+
329+
.close-bar:hover {
330+
cursor: pointer;
331+
border-color: #fff0f0;
332+
}
333+
}
321334
}
322335
323336
.wrapper {

0 commit comments

Comments
 (0)