Skip to content

Commit

Permalink
Navbar - move inline styles to CSS isolation
Browse files Browse the repository at this point in the history
  • Loading branch information
Harvey1214 authored and hakenr committed Nov 5, 2024
1 parent 004408b commit 0e61406
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Havit.Blazor.Documentation/Shared/Navbar.razor
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="@CssClassHelper.Combine(CssClass, "nav-container mx-auto sticky-top bg-body")" style="z-index: 1030;">
<div class="@CssClassHelper.Combine(CssClass, "nav-container mx-auto sticky-top bg-body")">
<HxNavbar ContainerCssClass="container-fluid">
<HxNavbarBrand CssClass="py-0">
<img src="./logo.png" width="32" alt="HAVIT Blazor">
Expand Down
9 changes: 5 additions & 4 deletions Havit.Blazor.Documentation/Shared/Navbar.razor.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@
}

.nav-container {
--bs-bg-opacity: .8;
background-color: rgba(var(--bs-body-bg-rgb),var(--bs-bg-opacity))!important;
backdrop-filter: saturate(120%) blur(20px);
-webkit-backdrop-filter: saturate(120%) blur(20px);
--bs-bg-opacity: .8;
background-color: rgba(var(--bs-body-bg-rgb),var(--bs-bg-opacity)) !important;
backdrop-filter: saturate(120%) blur(20px);
-webkit-backdrop-filter: saturate(120%) blur(20px);
z-index: 1030;
}

0 comments on commit 0e61406

Please sign in to comment.