Skip to content

Commit 5ad122b

Browse files
committed
style: 合并样式
1 parent cc20a41 commit 5ad122b

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

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

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@
7777

7878
.has-sidebar {
7979
position: relative;
80+
flex: 1;
8081

8182
.layout-menu {
8283
height: 100%;
@@ -201,7 +202,6 @@
201202
.has-sidebar {
202203
flex-direction: row;
203204
display: flex;
204-
flex: 1;
205205
}
206206

207207
.layout-header-bar {
@@ -235,30 +235,30 @@
235235
z-index: 1036;
236236
}
237237

238-
.has-sidebar {
238+
.layout.is-collapsed {
239239
.layout-side {
240-
z-index: 1030;
240+
transform: translateX(0);
241241
}
242-
}
243242

244-
.is-collapsed .layout-side {
245-
transform: translateX(0);
246-
}
247-
248-
.layout.is-collapsed {
249243
.layout-right {
250244
overflow: hidden;
251245
height: 100vh;
252246
}
253247

254-
.has-sidebar .layout-main {
255-
overflow: hidden;
256-
height: calc(100vh - var(--bb-layout-header-height));
257-
}
258-
259248
.layout-footer {
260249
display: none;
261250
}
251+
252+
.has-sidebar {
253+
.layout-side {
254+
z-index: 1030;
255+
}
256+
257+
.layout-main {
258+
overflow: hidden;
259+
height: calc(100vh - var(--bb-layout-header-height));
260+
}
261+
}
262262
}
263263

264264
.layout .tabs.tabs-border-card {

0 commit comments

Comments
 (0)