Browse Source

docs: site css modify

richard1015 4 years ago
parent
commit
969517a570

+ 1 - 1
index.html

@@ -3,7 +3,7 @@
   <head>
     <meta charset="utf-8" />
     <meta content="telephone=no" name="format-detection" />
-    <link rel="shortcut icon" href="https://nutui.jd.com/favicon.ico" />
+    <link rel="shortcut icon" href="https://img14.360buyimg.com/imagetools/jfs/t1/167902/2/8762/791358/603742d7E9b4275e3/e09d8f9a8bf4c0ef.png" />
     <meta
       content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"
       name="viewport"

+ 1 - 1
src/docs/intro.md

@@ -3,7 +3,7 @@
 NutUI 是一套京东风格的移动端组件库,开发和服务于移动Web界面的企业级产品。
 
 <div style="margin:30px 0;">
-    <img src="http://img14.360buyimg.com/uba/jfs/t1/8543/6/11560/22014/5c2c6136E8023ac0a/6abbd9de10999c48.png" width="150" alt="NutUI">
+    <img src="https://img14.360buyimg.com/imagetools/jfs/t1/167902/2/8762/791358/603742d7E9b4275e3/e09d8f9a8bf4c0ef.png" width="150" alt="NutUI">
 </div>
 
 <iframe src="https://ghbtns.com/github-btn.html?user=jdf2e&repo=nutui&type=star&count=true" frameborder="0" scrolling="0" width="60px" height="20px"></iframe>

+ 4 - 3
src/sites/assets/styles/md-style.scss

@@ -3,9 +3,10 @@
 .doc-content-document {
   position: relative;
   background: #fff;
-  padding-left: 58px;
-  padding-left: 58px;
-  padding-right: 400px;
+  padding-top: 48px;
+  padding-bottom: 48px;
+  padding-left: 40px;
+  padding-right: 445px;
   .card {
     margin-bottom: 24px;
     padding: 24px;

+ 1 - 1
src/sites/doc/components/Footer.vue

@@ -197,7 +197,6 @@ export default defineComponent({
       }
     }
     &-desc {
-      margin-top: 30px;
       font-size: 12px;
     }
     &-select-hd {
@@ -252,6 +251,7 @@ export default defineComponent({
 }
 // 颜色
 .doc-footer {
+  height: 240px;
   // 黑色
   &-black {
     background: $theme-black-footer-bg;

+ 16 - 13
src/sites/doc/views/Main.vue

@@ -91,7 +91,7 @@
           class="sub-more"
           href="https://jelly.jd.com/search/all?keyword=nutui"
           target="_blank"
-          >更多内容</a
+          >More</a
         >
       </div>
       <ul class="more-list">
@@ -181,18 +181,21 @@ export default defineComponent({
     line-height: 52px;
     margin-bottom: 50px;
     text-align: center;
+    position: relative;
     .sub-more {
-      float: right;
+      position: absolute;
+      right: 0;
+      font-size: 14px;
       color: $theme-red;
     }
   }
   &-title {
     display: inline-block;
-    font-size: 36px;
+    font-size: 26px;
     font-family: PingFangSC-Medium;
   }
   &-features {
-    width: 1230px;
+    width: 1200px;
     margin: 0 auto 90px;
     .features-list {
       display: flex;
@@ -203,20 +206,19 @@ export default defineComponent({
       width: 296px;
       text-align: center;
       img {
-        width: 160px;
-        height: 160px;
+        width: 100px;
+        height: 100px;
         margin-bottom: 20px;
       }
     }
     .features-title {
-      margin-bottom: 18px;
-      line-height: 50px;
+      margin-bottom: 20px;
       font-family: PingFangSC-Medium;
-      font-size: 36px;
+      font-size: 24px;
     }
     .features-desc {
-      font-size: 18px;
-      line-height: 24px;
+      font-size: 14px;
+      line-height: 18px;
     }
   }
   &-more {
@@ -238,13 +240,14 @@ export default defineComponent({
         height: 170px;
         margin-bottom: 20px;
         border-radius: 6px;
+        box-shadow: 0px 1px 7px 0px rgba(237, 238, 241, 1);
       }
     }
     .more-title {
       width: 280px;
       height: 44px;
       line-height: 22px;
-      font-size: 16px;
+      font-size: 14px;
       text-overflow: -o-ellipsis-lastline;
       overflow: hidden;
       text-overflow: ellipsis;
@@ -257,7 +260,7 @@ export default defineComponent({
 }
 .doc-content-index {
   display: flex;
-  flex: 1;
+  height: 926px;
   margin-bottom: 70px;
   background-color: #070505;
   .content-left {

+ 2 - 2
src/sites/mobile/App.vue

@@ -87,8 +87,8 @@ export default defineComponent({
       background: transparent;
     }
     > h2 {
-      height: 56px;
-      line-height: 56px;
+      margin-top: 30px;
+      margin-bottom: 10px;
       font-size: 14px;
       color: rgba(144, 156, 164, 1);
     }