Ver código fonte

Tabs: fix padding-left for nested tabs

Leopoldthecoder 7 anos atrás
pai
commit
aa09c460ff
1 arquivos alterados com 6 adições e 1 exclusões
  1. 6 1
      packages/theme-chalk/src/tabs.scss

+ 6 - 1
packages/theme-chalk/src/tabs.scss

@@ -225,9 +225,14 @@
     }
   }
   @include m((top, bottom)) {
-    &:not(.el-tabs--border-card):not(.el-tabs--card) .el-tabs__item:nth-child(2) {
+    .el-tabs__item:nth-child(2) {
       padding-left: 0;
     }
+
+    &.el-tabs--border-card .el-tabs__item:nth-child(2),
+    &.el-tabs--card .el-tabs__item:nth-child(2) {
+      padding-left: 20px;
+    }
   }
   @include m(bottom) {
     .el-tabs__header {