mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-03 16:39:41 +08:00
Merge pull request #17969 from ant-design/fix-tabs-extra
fix: Tabs extraContent line-height
This commit is contained in:
commit
c033c1ea2c
@ -72,7 +72,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
&-extra-content {
|
&-extra-content {
|
||||||
line-height: @tabs-card-height;
|
line-height: @tabs-title-font-size * @line-height-base + extract(@tabs-horizontal-padding, 1) *
|
||||||
|
2;
|
||||||
|
|
||||||
.@{tab-prefix-cls}-new-tab {
|
.@{tab-prefix-cls}-new-tab {
|
||||||
position: relative;
|
position: relative;
|
||||||
@ -101,6 +102,23 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// https://github.com/ant-design/ant-design/issues/17865
|
||||||
|
&&-large &-extra-content {
|
||||||
|
line-height: @tabs-title-font-size-lg * @line-height-base +
|
||||||
|
extract(@tabs-horizontal-padding-lg, 1) * 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
// https://github.com/ant-design/ant-design/issues/17865
|
||||||
|
&&-small &-extra-content {
|
||||||
|
line-height: @tabs-title-font-size-sm * @line-height-base +
|
||||||
|
extract(@tabs-horizontal-padding-sm, 1) * 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
// https://github.com/ant-design/ant-design/issues/17865
|
||||||
|
&&-card &-extra-content {
|
||||||
|
line-height: @tabs-card-height;
|
||||||
|
}
|
||||||
|
|
||||||
// https://github.com/ant-design/ant-design/issues/4669
|
// https://github.com/ant-design/ant-design/issues/4669
|
||||||
&-vertical&-card &-card-bar&-left-bar,
|
&-vertical&-card &-card-bar&-left-bar,
|
||||||
&-vertical&-card &-card-bar&-right-bar {
|
&-vertical&-card &-card-bar&-right-bar {
|
||||||
|
Loading…
Reference in New Issue
Block a user