Skip to content

Commit 8e721e7

Browse files
committed
style: 增加 Tab 全屏样式
1 parent e9ebfae commit 8e721e7

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

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

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,20 @@
2020
}
2121
}
2222

23+
&:not(:has(> .tabs-header)) {
24+
> .tabs-body {
25+
--bb-tabs-item-height: 0px;
26+
}
27+
}
28+
29+
> .tabs-body {
30+
background-color: var(--bs-body-bg);
31+
padding: var(--bb-tabs-body-padding);
32+
flex: 1;
33+
height: 1%;
34+
min-height: 0;
35+
}
36+
2337
.tabs-body-content {
2438
background-color: var(--bs-body-bg);
2539

@@ -209,14 +223,6 @@
209223
}
210224
}
211225

212-
.tabs > .tabs-body {
213-
background-color: var(--bs-body-bg);
214-
padding: var(--bb-tabs-body-padding);
215-
flex: 1;
216-
height: 1%;
217-
min-height: 0;
218-
}
219-
220226
/*Card*/
221227
.tabs.tabs-card,
222228
.tabs.tabs-border-card {

0 commit comments

Comments
 (0)