Browse Source

fix: Nesting tabs of different sizes, the style does not take effect (#11936)

pull/11960/head
tangjinzhou 6 years ago
committed by 偏右
parent
commit
c63c971ded
  1. 30
      components/tabs/style/index.less

30
components/tabs/style/index.less

@ -206,20 +206,26 @@
} }
} }
&-large &-nav-container { &-large {
font-size: @tabs-title-font-size-lg; > .@{tab-prefix-cls}-bar {
} .@{tab-prefix-cls}-nav-container {
font-size: @tabs-title-font-size-lg;
&-large &-tab { }
padding: 16px; .@{tab-prefix-cls}-tab {
} padding: 16px;
}
&-small &-nav-container { }
font-size: @tabs-title-font-size-sm;
} }
&-small &-tab { &-small {
padding: 8px 16px; > .@{tab-prefix-cls}-bar {
.@{tab-prefix-cls}-nav-container {
font-size: @tabs-title-font-size-sm;
}
.@{tab-prefix-cls}-tab {
padding: 8px 16px;
}
}
} }
&:not(&-vertical) { &:not(&-vertical) {

Loading…
Cancel
Save