Skip to content

Commit f5fa337

Browse files
committed
style: 层次化样式
1 parent 4b5ade9 commit f5fa337

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

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

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -287,11 +287,20 @@
287287
}
288288

289289
&.is-collapsed {
290-
.layout-side:not(:hover) {
291-
--bb-layout-sidebar-width: var(--bb-layout-sidebar-collapse-width);
292-
293-
.menu.is-vertical {
290+
.layout-side {
291+
&:not(:hover) {
294292
--bb-layout-sidebar-width: var(--bb-layout-sidebar-collapse-width);
293+
294+
.menu.is-vertical {
295+
--bb-layout-sidebar-width: var(--bb-layout-sidebar-collapse-width);
296+
}
297+
}
298+
299+
&:hover {
300+
.layout-title,
301+
.menu.is-vertical .menu-text {
302+
opacity: 1;
303+
}
295304
}
296305
}
297306

@@ -307,13 +316,6 @@
307316
.menu.is-vertical .menu-text {
308317
opacity: 0;
309318
}
310-
311-
.layout-side:hover {
312-
.layout-title,
313-
.menu.is-vertical .menu-text {
314-
opacity: 1;
315-
}
316-
}
317319
}
318320
}
319321
}

0 commit comments

Comments
 (0)