Skip to content

Commit 2906e95

Browse files
committed
refactor: 适配紧凑模式
1 parent ad4a5be commit 2906e95

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

src/BootstrapBlazor.Server/wwwroot/css/devui.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,4 +176,5 @@ pre code.hljs {
176176

177177
.tabs-chrome {
178178
--bb-tabs-item-wrap-padding-x: 0.5rem;
179+
--bb-tabs-item-body-margin-bottom: 2px;
179180
}

src/BootstrapBlazor/Components/Tab/Tab.razor.scss

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -574,6 +574,7 @@
574574
.tabs-chrome {
575575
--bb-tabs-header-padding: 0 0.25rem;
576576
--bb-tabs-item-wrap-padding-x: 1rem;
577+
--bb-tabs-item-body-margin-bottom: 4px;
577578
}
578579

579580
.tabs-chrome > .tabs-header {
@@ -617,11 +618,14 @@
617618
}
618619
}
619620
}
621+
}
620622

621-
&:hover + .tabs-item-wrap {
623+
&.active,
624+
&:hover {
625+
+ .tabs-item-wrap {
622626
.tabs-item {
623627
&:before {
624-
content: none;
628+
content: none !important;
625629
}
626630
}
627631
}
@@ -634,7 +638,7 @@
634638
height: var(--bb-tabs-header-height) !important;
635639

636640
.tabs-item-body {
637-
margin-bottom: 4px;
641+
margin-bottom: var(--bb-tabs-item-body-margin-bottom);
638642
}
639643
}
640644

0 commit comments

Comments
 (0)