Skip to content

Commit 3531e98

Browse files
authored
feat(Layout): add style for tab context menu (#5735)
1 parent 32eb2b1 commit 3531e98

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

src/BootstrapBlazor/Components/Layout/Layout.razor.scss

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[data-bs-theme='dark'] .layout {
1+
[data-bs-theme='dark'] .layout {
22
--bb-layout-header-background: #{$bb-layout-header-background-dark};
33
--bb-layout-header-border-color: #{$bb-layout-header-border-color-dark};
44
--bb-layout-banner-border-color: #{$bb-layout-banner-border-color-dark};
@@ -48,7 +48,15 @@
4848
--bb-layout-height: 100vh;
4949

5050
.layout-main {
51-
min-height: calc(var(--bb-layout-height) - var(--bb-layout-header-height) - var(--bb-layout-footer-height))
51+
min-height: calc(var(--bb-layout-height) - var(--bb-layout-header-height) - var(--bb-layout-footer-height));
52+
53+
> .tabs,
54+
> .bb-cm-zone > .tabs {
55+
margin: -1rem;
56+
border: none;
57+
border-radius: unset;
58+
min-height: calc(100% + 2rem);
59+
}
5260
}
5361
}
5462

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

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.tabs {
1+
.tabs {
22
--bb-tabs-item-padding: #{$bb-tabs-item-padding};
33
--bb-tabs-item-height: #{$bb-tabs-item-height};
44
--bb-tabs-item-active-color: #{$bb-tabs-item-active-color};
@@ -464,13 +464,6 @@
464464
left: 0;
465465
}
466466

467-
.is-page .layout-main > .tabs {
468-
margin: -1rem;
469-
border: none;
470-
border-radius: unset;
471-
min-height: calc(100% + 2rem);
472-
}
473-
474467
.tab-dragging {
475468
.tabs-item-wrap:not(:hover) .tabs-item {
476469
pointer-events: none;

0 commit comments

Comments
 (0)