Explorar el Código

修改字体引入

wangfumin hace 3 meses
padre
commit
45af3850bd
Se han modificado 3 ficheros con 9 adiciones y 8 borrados
  1. 8 0
      index.html
  2. 0 6
      src/assets/base.css
  3. 1 2
      src/views/collection/collectDetail.vue

+ 8 - 0
index.html

@@ -7,6 +7,14 @@
     <title>克拉玛依市博物馆</title>
   </head>
   <body>
+    <style lang="scss">
+      @font-face {
+        font-family: 'heavy';
+        src: url('/wxImg/SOURCEHANSERIFSC-HEAVY.OTF') format('opentype');
+        font-weight: normal;
+        font-style: normal;
+      }
+    </style>
     <div id="app"></div>
     <script src="/lib/js/jssdk.js"></script>
     <script type="module" src="/src/main.js"></script>

+ 0 - 6
src/assets/base.css

@@ -1,10 +1,4 @@
 /* 自定义字体定义 */
-@font-face {
-  font-family: 'heavy';
-  src: url('/wxImg/SOURCEHANSERIFSC-HEAVY.OTF') format('opentype');
-  font-weight: normal;
-  font-style: normal;
-}
 
 @font-face {
   font-family: 'bold';

+ 1 - 2
src/views/collection/collectDetail.vue

@@ -444,7 +444,7 @@ onMounted(() => {
   height: 55%;
   //background: linear-gradient(180deg, #372918 0%, #776655 100%);
   background-color: #615446;
-  padding: 20px 0;
+  padding: 0 0 20px 0;
   transition: height 0.3s ease;
 
   &.zoomed {
@@ -576,7 +576,6 @@ onMounted(() => {
     font-weight: bold;
     color: #584735;
     margin-bottom: 10px;
-    font-family: 'heavy';
   }
 
   .artifact-meta {