Skip to content

Commit c9a901f

Browse files
committed
doc: 增加分隔栏
1 parent aaf1910 commit c9a901f

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

src/BootstrapBlazor.Server/Components/Layout/TutorialsLayout.razor

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
</div>
1010
<TutorialsNavMenu></TutorialsNavMenu>
1111
<Wwads IsVertical="true"></Wwads>
12+
<LayoutSplitebar Min="220" Max="330" ContainerSelector=".section"></LayoutSplitebar>
1213
</aside>
1314

1415
<section class="main">

src/BootstrapBlazor.Server/Components/Layout/TutorialsLayout.razor.css

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
.section {
2-
--bb-sidebar-width: 0;
3-
}
4-
5-
.main {
1+
.main {
62
padding: 1rem;
73
}
84

@@ -24,7 +20,7 @@
2420

2521
@media (min-width: 768px) {
2622
.section {
27-
--bb-sidebar-width: 300px;
23+
--bb-layout-sidebar-width: 300px;
2824
display: flex;
2925
flex-direction: row;
3026
-webkit-font-smoothing: antialiased;
@@ -35,7 +31,7 @@
3531
}
3632

3733
.sidebar {
38-
width: var(--bb-sidebar-width);
34+
width: var(--bb-layout-sidebar-width);
3935
height: calc(100vh);
4036
position: sticky;
4137
top: 0;
@@ -44,7 +40,8 @@
4440
}
4541

4642
.main {
47-
flex: 1;
43+
flex: 1 1 0%;
44+
min-width: 0px;
4845
height: 100%;
4946
}
5047
}

0 commit comments

Comments
 (0)