Skip to content

Commit d2df72b

Browse files
committed
style: 兼容 Menu 组件
1 parent 3b7dc76 commit d2df72b

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -319,10 +319,6 @@
319319
}
320320

321321
.layout.is-collapsed {
322-
.layout-title {
323-
opacity: 0;
324-
}
325-
326322
.layout-main {
327323
display: block;
328324
}
@@ -336,6 +332,11 @@
336332
--bb-layout-sidebar-width: var(--bb-layout-sidebar-collapse-width);
337333
}
338334

335+
.layout-title,
336+
.menu.is-vertical .menu-text {
337+
opacity: 0;
338+
}
339+
339340
.layout-side:hover {
340341
.layout-title,
341342
.menu.is-vertical .menu-text {

src/BootstrapBlazor/Components/Menu/Menu.razor.scss

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -202,9 +202,3 @@
202202
.menu.is-bottom .dropdown-menu-arrow:after {
203203
content: none;
204204
}
205-
206-
@media (min-width: 768px) {
207-
.is-collapsed .menu .menu-text {
208-
opacity: 0;
209-
}
210-
}

0 commit comments

Comments
 (0)