mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-13 17:05:47 +08:00
fix(components): [tabs] card type fixed height (#7840)
This commit is contained in:
parent
ca58f2beb3
commit
e4bb98102c
@ -1147,6 +1147,16 @@ $timeline: map.merge(
|
||||
$timeline
|
||||
);
|
||||
|
||||
// Tabs
|
||||
// css3 var in packages/theme-chalk/src/tabs.scss
|
||||
$tabs: () !default;
|
||||
$tabs: map.merge(
|
||||
(
|
||||
'header-height': 40px,
|
||||
),
|
||||
$tabs
|
||||
);
|
||||
|
||||
// Backtop
|
||||
// css3 var in packages/theme-chalk/src/backtop.scss
|
||||
$backtop: () !default;
|
||||
|
@ -2,6 +2,8 @@
|
||||
@use 'common/var' as *;
|
||||
|
||||
@include b(tabs) {
|
||||
@include set-component-css-var('tabs', $tabs);
|
||||
|
||||
@include e(header) {
|
||||
padding: 0;
|
||||
position: relative;
|
||||
@ -106,9 +108,9 @@
|
||||
}
|
||||
@include e(item) {
|
||||
padding: 0 20px;
|
||||
height: 40px;
|
||||
height: getCssVar('tabs', 'header-height');
|
||||
box-sizing: border-box;
|
||||
line-height: 40px;
|
||||
line-height: getCssVar('tabs', 'header-height');
|
||||
display: inline-block;
|
||||
list-style: none;
|
||||
font-size: getCssVar('font-size-base');
|
||||
@ -168,6 +170,7 @@
|
||||
@include m(card) {
|
||||
> .#{$namespace}-tabs__header {
|
||||
border-bottom: 1px solid getCssVar('border-color-light');
|
||||
height: getCssVar('tabs', 'header-height');
|
||||
}
|
||||
> .#{$namespace}-tabs__header .#{$namespace}-tabs__nav-wrap::after {
|
||||
content: none;
|
||||
|
Loading…
Reference in New Issue
Block a user