From 13adb144a6b0532f6b639c53cc2deb244662a7da Mon Sep 17 00:00:00 2001 From: daniel-c-harvey Date: Sun, 7 Jun 2026 06:53:21 -0400 Subject: [PATCH] feature: Mobile Menu & Style Polish --- .../AudioPlayerBar/AudioPlayerBar.razor.css | 6 +- .../Controls/PlayStateIcon.razor | 41 +++++----- .../Controls/PlayStateIcon.razor.css | 15 +++- .../Layout/DeepDrftFooter.razor | 5 +- .../Layout/DeepDrftMenu.razor | 78 +++++++------------ DeepDrftPublic.Client/Layout/Pages.cs | 7 +- .../wwwroot/styles/deepdrft-tokens.css | 1 + 7 files changed, 69 insertions(+), 84 deletions(-) diff --git a/DeepDrftPublic.Client/Controls/AudioPlayerBar/AudioPlayerBar.razor.css b/DeepDrftPublic.Client/Controls/AudioPlayerBar/AudioPlayerBar.razor.css index 1cced0f..7363e5c 100644 --- a/DeepDrftPublic.Client/Controls/AudioPlayerBar/AudioPlayerBar.razor.css +++ b/DeepDrftPublic.Client/Controls/AudioPlayerBar/AudioPlayerBar.razor.css @@ -46,8 +46,8 @@ /* Minimized floating dock — positioning + hover only; colour from MudFab */ .minimized-dock { position: fixed; - bottom: 60px; - right: 60px; + bottom: 30px; + right: 30px; z-index: 1300; } @@ -56,7 +56,7 @@ } @media (max-width: 768px) { - ::deep .minimized-dock { + .minimized-dock { bottom: 15px; right: 15px; } diff --git a/DeepDrftPublic.Client/Controls/PlayStateIcon.razor b/DeepDrftPublic.Client/Controls/PlayStateIcon.razor index 30d5bfa..8317591 100644 --- a/DeepDrftPublic.Client/Controls/PlayStateIcon.razor +++ b/DeepDrftPublic.Client/Controls/PlayStateIcon.razor @@ -1,21 +1,22 @@ @namespace DeepDrftPublic.Client.Controls - -@if (!RendererInfo.IsInteractive) -{ - @* Interactive runtime (WASM, or Server on first visit) not attached yet — the prerendered - button has no wired click handler, so clicks would vanish. Show a spinner in its place - until the component hydrates, at which point it re-renders into the live button. *@ - -} -else -{ - -} +
+ @if (!RendererInfo.IsInteractive) + { + @* Interactive runtime (WASM, or Server on first visit) not attached yet — the prerendered + button has no wired click handler, so clicks would vanish. Show a spinner in its place + until the component hydrates, at which point it re-renders into the live button. *@ + + } + else + { + + + } +
diff --git a/DeepDrftPublic.Client/Controls/PlayStateIcon.razor.css b/DeepDrftPublic.Client/Controls/PlayStateIcon.razor.css index 64e8c42..a7d846d 100644 --- a/DeepDrftPublic.Client/Controls/PlayStateIcon.razor.css +++ b/DeepDrftPublic.Client/Controls/PlayStateIcon.razor.css @@ -1,7 +1,14 @@ -::deep .xxxx { - background-color: var(--deepdrft-muted) +.icon-container { + display: flex; + justify-content: center; + align-content: center; + background-color: var(--deepdrft-soft); + border-radius: 50%; + height: 60px; + width: 60px; + transition: background-color 1s ease-in-out; } -::deep .xxxx:hover { - background-color: color-mix(var(--deepdrft-muted), var(--deepdrft-navy)); +.icon-container:hover { + background-color: color-mix(var(--deepdrft-soft), var(--deepdrft-navy-mid) 25%); } \ No newline at end of file diff --git a/DeepDrftPublic.Client/Layout/DeepDrftFooter.razor b/DeepDrftPublic.Client/Layout/DeepDrftFooter.razor index 2238093..88653d8 100644 --- a/DeepDrftPublic.Client/Layout/DeepDrftFooter.razor +++ b/DeepDrftPublic.Client/Layout/DeepDrftFooter.razor @@ -1,9 +1,6 @@