-
-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
To add Sidebar colors demo, fixed SidebarFooter overflowing on Collap…
…se, reverted default border radius of SidebarItem to regular (was large), + docs adjustment
- Loading branch information
Showing
21 changed files
with
128 additions
and
54 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
Havit.Blazor.Components.Web.Bootstrap/Navigation/HxSidebarBrand.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
Havit.Blazor.Components.Web.Bootstrap/Navigation/HxSidebarItemNavLinkContent.razor.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
namespace Havit.Blazor.Components.Web.Bootstrap; | ||
|
||
/// <summary> | ||
/// Innter content of the <see cref="HxSidebarItem"/>. | ||
/// </summary> | ||
public partial class HxSidebarItemNavLinkContent | ||
{ | ||
[Parameter] public string Text { get; set; } | ||
[Parameter] public bool Expandable { get; set; } | ||
[Parameter] public bool? Expanded { get; set; } | ||
[Parameter] public IconBase Icon { get; set; } | ||
[Parameter] public string InnerCssClass { get; set; } | ||
[Parameter] public RenderFragment<SidebarItemContentTemplateContext> ContentTemplate { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
Havit.Blazor.Documentation/Pages/Components/HxSidebarDoc/HxSidebar_Demo_Colors.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<div class="d-flex border rounded-3 overflow-hidden"> | ||
<HxSidebar CssClass="text-bg-light"> | ||
<HeaderTemplate> | ||
<HxSidebarBrand BrandName="Brand name" BrandNameShort="BN" /> | ||
</HeaderTemplate> | ||
|
||
<ItemsTemplate> | ||
<HxSidebarItem Text="Dashboard" Icon="BootstrapIcon.Columns" TooltipText="Dashboard" Href="/components/HxSidebar/dashboard" /> | ||
<HxSidebarItem Text="Employees" Icon="BootstrapIcon.People"> | ||
<HxSidebarItem Text="Overview" Href="/components/HxSidebar/employees" /> | ||
<HxSidebarItem Text="Absences" Href="/components/HxSidebar/absences" /> | ||
</HxSidebarItem> | ||
<HxSidebarItem Text="Mine (with icons)" Icon="BootstrapIcon.Person"> | ||
<HxSidebarItem Text="Overview" Icon="BootstrapIcon.Wallet2" Href="/components/HxSidebar/mine" Match="NavLinkMatch.All" /> | ||
<HxSidebarItem Text="Timesheets" Icon="BootstrapIcon.Clock" Href="/components/HxSidebar/mine/timesheets" /> | ||
<HxSidebarItem Text="Absences" Icon="BootstrapIcon.Exclamation" Href="/components/HxSidebar/mine/absences" /> | ||
</HxSidebarItem> | ||
<HxSidebarItem Text="Administration" Icon="BootstrapIcon.Gear" Href="/components/HxSidebar/admin" /> | ||
</ItemsTemplate> | ||
|
||
<FooterTemplate> | ||
<HxSidebarFooter Icon="BootstrapIcon.Person" TextCssClass="@(context.SidebarCollapsed ? "d-md-none" : null)" Text="Login" Href="/components/HxSidebar/login" /> | ||
</FooterTemplate> | ||
</HxSidebar> | ||
</div> |
6 changes: 6 additions & 0 deletions
6
Havit.Blazor.Documentation/Pages/Components/HxSidebarDoc/HxSidebar_Demo_Colors.razor.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
div { | ||
--hx-sidebar-item-hover-color: var(--bs-dark); | ||
--hx-sidebar-item-active-background-color: var(--bs-dark-rgb); | ||
--hx-sidebar-item-hover-background-color: var(--bs-dark-rgb); | ||
--hx-sidebar-item-icon-color: var(--bs-secondary); | ||
} |
25 changes: 25 additions & 0 deletions
25
Havit.Blazor.Documentation/Pages/Components/HxSidebarDoc/HxSidebar_Demo_Dark.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<div class="d-flex border rounded-3 overflow-hidden" data-bs-theme="dark"> | ||
<HxSidebar> | ||
<HeaderTemplate> | ||
<HxSidebarBrand BrandName="Brand name" BrandNameShort="BN" /> | ||
</HeaderTemplate> | ||
|
||
<ItemsTemplate> | ||
<HxSidebarItem Text="Dashboard" Icon="BootstrapIcon.Columns" TooltipText="Dashboard" Href="/components/HxSidebar/dashboard" /> | ||
<HxSidebarItem Text="Employees" Icon="BootstrapIcon.People"> | ||
<HxSidebarItem Text="Overview" Href="/components/HxSidebar/employees" /> | ||
<HxSidebarItem Text="Absences" Href="/components/HxSidebar/absences" /> | ||
</HxSidebarItem> | ||
<HxSidebarItem Text="Mine (with icons)" Icon="BootstrapIcon.Person"> | ||
<HxSidebarItem Text="Overview" Icon="BootstrapIcon.Wallet2" Href="/components/HxSidebar/mine" Match="NavLinkMatch.All" /> | ||
<HxSidebarItem Text="Timesheets" Icon="BootstrapIcon.Clock" Href="/components/HxSidebar/mine/timesheets" /> | ||
<HxSidebarItem Text="Absences" Icon="BootstrapIcon.Exclamation" Href="/components/HxSidebar/mine/absences" /> | ||
</HxSidebarItem> | ||
<HxSidebarItem Text="Administration" Icon="BootstrapIcon.Gear" Href="/components/HxSidebar/admin" /> | ||
</ItemsTemplate> | ||
|
||
<FooterTemplate> | ||
<HxSidebarFooter Icon="BootstrapIcon.Person" TextCssClass="@(context.SidebarCollapsed ? "d-md-none" : null)" Text="Login" Href="/components/HxSidebar/login" /> | ||
</FooterTemplate> | ||
</HxSidebar> | ||
</div> |
2 changes: 1 addition & 1 deletion
2
...Blazor.Documentation/Pages/Components/HxSidebarDoc/HxSidebar_Demo_ItemCustomContent.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
Havit.Blazor.Documentation/Pages/Components/HxSidebarDoc/HxSidebar_Demo_Logo.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...r.Documentation/Pages/Components/HxSidebarDoc/HxSidebar_Demo_MultipleItemsExpansion.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters