mirror of
https://github.com/dotnetcore/BootstrapBlazor.git
synced 2025-12-20 02:16:40 +08:00
doc(Layout): update Layout sample (#2753)
This commit is contained in:
@@ -13,7 +13,7 @@ public sealed partial class PageLayout
|
||||
|
||||
private string? Theme { get; set; }
|
||||
|
||||
private string? LayoutClassString => CssBuilder.Default()
|
||||
private string? LayoutClassString => CssBuilder.Default("layout-demo")
|
||||
.AddClass(Theme)
|
||||
.AddClass("is-fixed-tab", IsFixedTab)
|
||||
.Build();
|
||||
|
||||
@@ -64,7 +64,7 @@
|
||||
}
|
||||
|
||||
.layout.is-page.color1 .layout-drawer:hover {
|
||||
background-color: #3184dc;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.color2,
|
||||
@@ -187,7 +187,7 @@
|
||||
}
|
||||
|
||||
.layout-drawer:hover {
|
||||
background-color: #1893a7;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.layout-drawer-body {
|
||||
|
||||
@@ -229,6 +229,22 @@ code {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.layout-demo {
|
||||
--bb-layout-sidebar-banner-background: var(--bb-primary-color);
|
||||
--bb-layout-title-color: #fff;
|
||||
--bb-layout-header-background: var(--bb-primary-color);
|
||||
--bb-layout-header-color: #fff;
|
||||
}
|
||||
|
||||
.layout-demo .widget {
|
||||
--bb-widget-toggle-color: #fff;
|
||||
margin-right: 1rem;
|
||||
}
|
||||
|
||||
.layout-demo .layout-avatar-right {
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
:root {
|
||||
--bs-header-height: 50px;
|
||||
|
||||
Reference in New Issue
Block a user