提交 343b9b77 authored 作者: 龙菲's avatar 龙菲

删除多余的样式

上级 79d95f31
...@@ -85,10 +85,18 @@ ...@@ -85,10 +85,18 @@
<el-row :gutter="10" class="tab-bar"> <el-row :gutter="10" class="tab-bar">
<el-col :class="['left', { isMobile }]" :span="isMobile ? 24 : 8"> <el-col :class="['left', { isMobile }]" :span="isMobile ? 24 : 8">
<svg-icon name="menu" size="20" @click="showGuide"></svg-icon> <svg-icon name="menu" size="20" @click="showGuide"></svg-icon>
<!-- <svg-icon name="list" size="20" @click="showGuide"></svg-icon> --> <svg-icon
<svg-icon name="zoom-in" size="20" @click="zoomOut"></svg-icon> name="zoom-in"
<svg-icon name="zoom-out" size="20" @click="zoomIn"></svg-icon> size="20"
<!-- <svg-icon name="volumn" size="20"></svg-icon> --> v-if="!isMobile"
@click="zoomOut"
></svg-icon>
<svg-icon
name="zoom-out"
size="20"
v-if="!isMobile"
@click="zoomIn"
></svg-icon>
<!-- 修改音量图标部分 --> <!-- 修改音量图标部分 -->
<svg-icon <svg-icon
:name="isMuted ? 'volume-mute' : 'volume-high'" :name="isMuted ? 'volume-mute' : 'volume-high'"
...@@ -96,10 +104,10 @@ ...@@ -96,10 +104,10 @@
@click="toggleMute" @click="toggleMute"
/> />
</el-col> </el-col>
<el-col class="center" :span="8" v-if="!isMobile"> <el-col class="center" :span="8">
<svg-icon name="to-first" size="30" @click="toFirst"></svg-icon> <svg-icon name="to-first" size="30" @click="toFirst"></svg-icon>
<svg-icon name="to-left" size="22" @click="previous"></svg-icon> <svg-icon name="to-left" size="22" @click="previous"></svg-icon>
<div class="page-count">{{ currentPage }}</div> <div class="page-count" v-if="!isMobile">{{ currentPage }}</div>
<svg-icon name="to-right" size="22" @click="next"></svg-icon> <svg-icon name="to-right" size="22" @click="next"></svg-icon>
<svg-icon name="to-end" size="30" @click="toEnd"></svg-icon> <svg-icon name="to-end" size="30" @click="toEnd"></svg-icon>
</el-col> </el-col>
...@@ -368,9 +376,9 @@ const initBook = async () => { ...@@ -368,9 +376,9 @@ const initBook = async () => {
width: isMobile.value ? pageWidth : pageWidth * 2, width: isMobile.value ? pageWidth : pageWidth * 2,
height: pageHeight, height: pageHeight,
display: isMobile.value ? "single" : "double", display: isMobile.value ? "single" : "double",
acceleration: false, acceleration: true,
gradients: true, gradients: true,
elevation: 50, elevation: 100,
duration: 800, duration: 800,
autoCenter: true, autoCenter: true,
turnCorners: "bl,br", turnCorners: "bl,br",
...@@ -809,19 +817,18 @@ const showGuide = () => { ...@@ -809,19 +817,18 @@ const showGuide = () => {
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
@import "./mobile.scss"; // .page {
.page { // width: 100%;
width: 100%; // height: 100%;
height: 100%; // background-color: white !important; // 确保翻页时有白色背景
background-color: white; // 确保翻页时有白色背景 // overflow: hidden;
overflow: hidden; // backface-visibility: visible; // 确保背面可见
// img {
img { // width: 100%;
width: 100%; // height: 100%;
height: 100%; // object-fit: contain;
object-fit: contain; // }
} // }
}
.book-reader-container { .book-reader-container {
position: relative; position: relative;
...@@ -871,26 +878,26 @@ const showGuide = () => { ...@@ -871,26 +878,26 @@ const showGuide = () => {
box-shadow: 0 0 20px rgba(0, 0, 0, 0.2); box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
will-change: transform; will-change: transform;
visibility: visible !important; visibility: visible !important;
backface-visibility: hidden; // backface-visibility: hidden;
transform-style: preserve-3d; transform-style: preserve-3d;
} }
// .magazine::after { .magazine::after {
// content: ""; content: "";
// position: absolute; position: absolute;
// top: 0; top: 0;
// left: 50%; left: 50%;
// width: 1px; width: 1px;
// height: 100%; height: 100%;
// background: linear-gradient( background: linear-gradient(
// to bottom, to bottom,
// rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.1) 0%,
// rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.2) 50%,
// rgba(0, 0, 0, 0.1) 100% rgba(0, 0, 0, 0.1) 100%
// ); );
// z-index: 10; z-index: 10;
// pointer-events: none; pointer-events: none;
// } }
.page { .page {
background-color: white; background-color: white;
...@@ -900,105 +907,105 @@ const showGuide = () => { ...@@ -900,105 +907,105 @@ const showGuide = () => {
overflow: hidden; overflow: hidden;
user-select: none; user-select: none;
visibility: visible !important; visibility: visible !important;
backface-visibility: hidden; backface-visibility: visible;
transform-style: preserve-3d; transform-style: preserve-3d;
transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);
box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.05); box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.05);
} }
.page:before { // .page:before {
content: ""; // content: "";
position: absolute; // position: absolute;
width: 100px; // width: 100px;
height: 100px; // height: 100px;
bottom: 0; // bottom: 0;
z-index: 10; // z-index: 10;
} // }
.page.odd:before { // .page.odd:before {
right: 0; // right: 0;
background: linear-gradient(315deg, rgba(0, 0, 0, 0.2) 0%, transparent 50%); // background: linear-gradient(315deg, rgba(0, 0, 0, 0.2) 0%, transparent 50%);
} // }
.page.even:before { // .page.even:before {
left: 0; // left: 0;
background: linear-gradient(45deg, rgba(0, 0, 0, 0.2) 0%, transparent 50%); // background: linear-gradient(45deg, rgba(0, 0, 0, 0.2) 0%, transparent 50%);
} // }
.page-image { // .page-image {
width: 100%; // width: 100%;
height: 100%; // height: 100%;
object-fit: contain; // object-fit: contain;
pointer-events: none; // pointer-events: none;
visibility: visible !important; // visibility: visible !important;
backface-visibility: hidden; // // backface-visibility: hidden;
transform-style: preserve-3d; // transform-style: preserve-3d;
transform: translate3d(0, 0, 0); // transform: translate3d(0, 0, 0);
} // }
.exit-message { // .exit-message {
position: fixed; // position: fixed;
top: 20px; // top: 20px;
left: 50%; // left: 50%;
transform: translateX(-50%); // transform: translateX(-50%);
background: rgba(0, 0, 0, 0.5); // background: rgba(0, 0, 0, 0.5);
color: white; // color: white;
padding: 10px 20px; // padding: 10px 20px;
border-radius: 4px; // border-radius: 4px;
z-index: 1000; // z-index: 1000;
} // }
.page.wide-page { // .page.wide-page {
width: 200% !important; // width: 200% !important;
left: 0 !important; // left: 0 !important;
z-index: 5 !important; // z-index: 5 !important;
} // }
.page.wide-page.isHidden { // .page.wide-page.isHidden {
display: none !important; // display: none !important;
} // }
.wide-image { // .wide-image {
width: 100%; // width: 100%;
height: 100%; // height: 100%;
object-fit: contain; // object-fit: contain;
} // }
/* 确保宽图页面的阴影效果 */ /* 确保宽图页面的阴影效果 */
.page.wide-page::after { // .page.wide-page::after {
content: ""; // content: "";
position: absolute; // position: absolute;
top: 0; // top: 0;
left: 0; // left: 0;
right: 0; // right: 0;
bottom: 0; // bottom: 0;
box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.2); // box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.2);
pointer-events: none; // pointer-events: none;
z-index: 1; // z-index: 1;
} // }
/* 角落悬停效果 */ /* 角落悬停效果 */
.page.hover::before { // .page.hover::before {
content: ""; // content: "";
position: absolute; // position: absolute;
width: 100px; // width: 100px;
height: 100px; // height: 100px;
pointer-events: none; // pointer-events: none;
z-index: 10; // z-index: 10;
transition: all 0.3s ease; // transition: all 0.3s ease;
} // }
.page.hover:nth-child(odd)::before { // .page.hover:nth-child(odd)::before {
right: 0; // right: 0;
bottom: 0; // bottom: 0;
background: linear-gradient(315deg, rgba(0, 0, 0, 0.2) 0%, transparent 80%); // background: linear-gradient(315deg, rgba(0, 0, 0, 0.2) 0%, transparent 80%);
} // }
.page.hover:nth-child(even)::before { // .page.hover:nth-child(even)::before {
left: 0; // left: 0;
bottom: 0; // bottom: 0;
background: linear-gradient(45deg, rgba(0, 0, 0, 0.2) 0%, transparent 80%); // background: linear-gradient(45deg, rgba(0, 0, 0, 0.2) 0%, transparent 80%);
} // }
/* 缩放状态样式 */ /* 缩放状态样式 */
.magazine.zoomed { .magazine.zoomed {
...@@ -1017,15 +1024,6 @@ const showGuide = () => { ...@@ -1017,15 +1024,6 @@ const showGuide = () => {
} }
} }
.magazine-viewport.turn-page-wrapper .turn-page {
overflow: hidden !important;
background-color: red;
}
#magazine .turn-page {
background-color: red;
background-size: 100% 100%;
}
.small-images-overlay { .small-images-overlay {
position: absolute; position: absolute;
top: 0; top: 0;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论