任一存 1 سال پیش
والد
کامیت
0c240a1c59

BIN
public/relic-data/small-photo/第45页-146.png


+ 8 - 0
src/App.vue

@@ -365,6 +365,14 @@ button.logo{
     }
   }
 }
+
+.img-title{
+  font-family: Source Han Sans SC light;
+  line-height: 34px;
+  letter-spacing: 3px !important;
+  text-align: center;
+  font-size: 18px;
+}
 </style>
 
 <style lang="less" scoped>

+ 0 - 2
src/components/CameraContent-1-1-2.vue

@@ -279,8 +279,6 @@ const tab1ContentPageNumber = ref(1)
       }
       >.img-title{
         margin-top: -2.5em;
-        font-size: calc(20 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
-        font-family: "Source Han Sans SC light";
       }
     }
   }

+ 0 - 4
src/components/CameraContent-1-2-2.vue

@@ -151,8 +151,6 @@ const activeTabIdx = ref(0)
       }
       >.img-title{
         margin-top: 0.5em;
-        font-size: 20px;
-        font-family: "Source Han Sans SC light";
       }
     }
   }
@@ -333,8 +331,6 @@ const activeTabIdx = ref(0)
       }
       >.img-title{
         margin-top: -1em;
-        font-size: calc(20 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
-        font-family: "Source Han Sans SC light";
       }
     }
     >.tab-3-content{

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 11 - 8
src/components/CameraContent-1-3-1.vue


+ 10 - 20
src/components/CameraContent-2-1-2.vue

@@ -24,6 +24,9 @@
             :src="require(`@/assets/images/CameraContent-2-1-2-img-${currentSwitchIdx + 1}.png`)"
             alt=""
           >
+          <div class="img-title">
+            元大都水系图
+          </div>
         </div>
       </div>
     </div>
@@ -208,29 +211,16 @@ const next = () => {
         // border: 1px solid #FFE88B;
         // padding: 15px 10px;
         position: relative;
-        >.btn-left {
-          width: 50px;
-          height: 50px;
-          position: absolute;
-          left: -25px;
-          top: 50%;
-          transform: translateY(-50%);
-          z-index: 2;
-          cursor: pointer;
-        }
-        >.btn-right {
-          width: 50px;
-          height: 50px;
-          position: absolute;
-          right: -25px;
-          top: 50%;
-          transform: translateY(-50%);
-          z-index: 2;
-          cursor: pointer;
-        }
+        display: flex;
+        flex-direction: column;
+        justify-content: center;
+        align-items: center;
         >.detail-img {
           width: 100%;
         }
+        >.img-title{
+          margin-top: 0.5em;
+        }
       }
     }
   }

+ 0 - 2
src/components/CameraContent-2-2-1.vue

@@ -138,9 +138,7 @@ const emit = defineEmits(['close'])
       }
       >.img-title{
         flex: 0 0 auto;
-        font-size: calc(20 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
         margin-top: 0.5em;
-        font-family: "Source Han Sans SC light";
       }
     }
   }

+ 0 - 2
src/components/CameraContent-3-2-2.vue

@@ -211,8 +211,6 @@ const next = () => {
         }
         >.img-title{
           margin-top: 0.5em;
-          font-size: calc(20 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
-          font-family: "Source Han Sans SC light";
         }
       }
     }

+ 0 - 2
src/components/CameraContent-3-2-3.vue

@@ -119,8 +119,6 @@ const title = '表演元曲的著名演员'
         }
         >.img-title{
           margin-top: 0.5em;
-          font-size: calc(20 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
-          font-family: "Source Han Sans SC light";
         }
       }
       >.content-wrap__right {

+ 6 - 1
src/views/RelicList.vue

@@ -60,7 +60,8 @@
           <div
             class="name"
             :class="{
-              wide: item['名称'].length > 11
+              wide: item['名称'].length > 11,
+              smallFontSize: item['名称'].length > 18
             }"
             :title="item['名称']"
             v-html="item['名称']"
@@ -452,6 +453,10 @@ const handleScroll = debounce(() => {
           padding-right: 0.7em;
           z-index: 1;
         }
+        >.name.smallFontSize{
+          padding-right: calc(20 / @page-height-design-px * 100vh * 0.83);;
+          font-size: calc(14 / @page-height-design-px * 100vh * 0.83);
+        }
         >img {
           position: absolute;
           left: 0;