From cfb0f495ca0bfda1d4882bb97eadcc1293f4c043 Mon Sep 17 00:00:00 2001 From: ebolo Date: Wed, 30 Apr 2025 11:37:21 +0000 Subject: [PATCH] feat: add custom css style component This component would contain the css rules to override the default css (i.e.) of MudBlazor for custom styling --- CaddyManager/CaddyManager.csproj | 7 -- .../Components/Layout/CustomCssStyle.razor | 74 +++++++++++++++++++ .../Components/Layout/MainLayout.razor | 7 +- CaddyManager/wwwroot/app.css | 5 -- 4 files changed, 76 insertions(+), 17 deletions(-) create mode 100644 CaddyManager/Components/Layout/CustomCssStyle.razor diff --git a/CaddyManager/CaddyManager.csproj b/CaddyManager/CaddyManager.csproj index 5e26c90..506b9b4 100644 --- a/CaddyManager/CaddyManager.csproj +++ b/CaddyManager/CaddyManager.csproj @@ -25,11 +25,4 @@ - - - - - - - diff --git a/CaddyManager/Components/Layout/CustomCssStyle.razor b/CaddyManager/Components/Layout/CustomCssStyle.razor new file mode 100644 index 0000000..9fc09ab --- /dev/null +++ b/CaddyManager/Components/Layout/CustomCssStyle.razor @@ -0,0 +1,74 @@ + \ No newline at end of file diff --git a/CaddyManager/Components/Layout/MainLayout.razor b/CaddyManager/Components/Layout/MainLayout.razor index 197a72c..72795cd 100644 --- a/CaddyManager/Components/Layout/MainLayout.razor +++ b/CaddyManager/Components/Layout/MainLayout.razor @@ -1,16 +1,13 @@ @inherits LayoutComponentBase @* Required *@ - + - @* Needed for dialogs *@ - @* Needed for snackbars *@ - - + @if (!_isInitialing) { diff --git a/CaddyManager/wwwroot/app.css b/CaddyManager/wwwroot/app.css index e958b20..62eac32 100644 --- a/CaddyManager/wwwroot/app.css +++ b/CaddyManager/wwwroot/app.css @@ -11,9 +11,4 @@ .caddy-file-editor .monaco-editor { overflow: hidden; border-radius: inherit; -} - -/*This is for having the active drawer item's icon color same as the text*/ -.mud-nav-link.active svg { - color: var(--mud-palette-primary)!important; } \ No newline at end of file