Browse Source

fix tabs style (#588)

baiyaaaaa 8 years ago
parent
commit
031716c227
1 changed files with 12 additions and 3 deletions
  1. 12 3
      packages/theme-default/src/tabs.css

+ 12 - 3
packages/theme-default/src/tabs.css

@@ -120,13 +120,22 @@
       .el-tabs__item {
         transition: all .3s cubic-bezier(.645,.045,.355,1);
         border: 1px solid transparent;
+        border-top: 0;
+        margin: * -1px;
 
         &.is-active {
           background-color: #fff;
-          border-right: 1px solid #d3dce6;
-          border-left: 1px solid #d3dce6;
-          margin: * -1px;
+          border-right-color: #d3dce6;
+          border-left-color: #d3dce6;
+
+          &:first-child {
+            border-left-color: #d3dce6;
+          }
+          &:last-child {
+            border-right-color: #d3dce6;
+          }
         }
+
       }
     }
   }