Skip to content

Commit

Permalink
fix: Nesting tabs of different sizes, the style does not take effect #…
Browse files Browse the repository at this point in the history
  • Loading branch information
tangjinzhou committed Aug 29, 2018
1 parent f157298 commit 0b31163
Showing 1 changed file with 18 additions and 13 deletions.
31 changes: 18 additions & 13 deletions components/tabs/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -205,21 +205,26 @@
font-weight: 500;
}
}

&-large &-nav-container {
font-size: @tabs-title-font-size-lg;
}

&-large &-tab {
padding: 16px;
}

&-small &-nav-container {
font-size: @tabs-title-font-size-sm;
&-large {
> .@{tab-prefix-cls}-bar {
.@{tab-prefix-cls}-nav-container {
font-size: @tabs-title-font-size-lg;
}
.@{tab-prefix-cls}-tab {
padding: 16px;
}
}
}

&-small &-tab {
padding: 8px 16px;
&-small {
> .@{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) {
Expand Down

0 comments on commit 0b31163

Please sign in to comment.