Browse Source

修改样式

lilinsen 7 years ago
parent
commit
fcf6d5571a
2 changed files with 5 additions and 2 deletions
  1. 2 0
      sites/doc/asset/css/common.scss
  2. 3 2
      sites/doc/compents/hidden/hidden.vue

+ 2 - 0
sites/doc/asset/css/common.scss

@@ -136,6 +136,7 @@ pre {
     position: relative;
     max-width: 100%;
     overflow: auto;
+    margin
     .code-wrapper{
         width:100%;
         overflow:auto;
@@ -183,6 +184,7 @@ pre {
     border-radius: 4px;
     border: none;
     padding: 20px;
+    margin: 0;
     &>span {
         position: absolute;
         right: 5px;

+ 3 - 2
sites/doc/compents/hidden/hidden.vue

@@ -62,7 +62,7 @@ export default {
     mounted(){     
         this.heightSlot = this.$slots.default[0].elm.offsetHeight;
         if(this.heightSlot<400){
-            this.siteHeight = {height:this.heightSlot + 'px'};           
+            this.siteHeight = {height:''};           
         }else{
             this.siteHeight = {height:'300px'};          
         }
@@ -74,6 +74,7 @@ export default {
     position: relative;
    
     background: #F2F4F5;
+    margin: 16px 0;
 }
 .hasPadding{
      padding-bottom:30px;
@@ -89,7 +90,7 @@ export default {
     height: 30px;
     width: 100%;
     bottom: 0;
-    background: linear-gradient(rgba(255, 255, 255, 0.2),#fafafa);
+    background: linear-gradient(rgba(255, 255, 255, 0),#fafafa);
     position: absolute;
     z-index: 999 ;
     text-align: center;