Skip to content

Commit 4bde375

Browse files
committed
refactor: 精简样式
1 parent b61eed9 commit 4bde375

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

src/BootstrapBlazor/Components/Menu/Menu.razor.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ public partial class Menu
1616
protected string? ClassString => CssBuilder.Default("menu")
1717
.AddClass("is-bottom", IsBottom)
1818
.AddClass("is-vertical", IsVertical)
19-
.AddClass("is-collapsed", IsVertical && IsCollapsed)
2019
.AddClassFromAttributes(AdditionalAttributes)
2120
.Build();
2221

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

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -180,12 +180,6 @@
180180
background-image: none;
181181
}
182182

183-
@media (min-width: 768px) {
184-
.layout-side.is-collapsed:not(:hover) .menu.is-collapsed .submenu .text {
185-
width: 0;
186-
}
187-
}
188-
189183
.menu.is-bottom {
190184
position: absolute;
191185
bottom: 0;
@@ -208,9 +202,3 @@
208202
.menu.is-bottom .dropdown-menu-arrow:after {
209203
content: none;
210204
}
211-
212-
@media (min-width: 768px) {
213-
.is-collapsed .menu .menu-text {
214-
opacity: 0;
215-
}
216-
}

0 commit comments

Comments
 (0)