diff --git a/components/tabs/style/index.less b/components/tabs/style/index.less index 1d6be76efa..3ef2183572 100644 --- a/components/tabs/style/index.less +++ b/components/tabs/style/index.less @@ -206,20 +206,26 @@ } } - &-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) {