diff --git a/src/Heimdall.Web/Components/Layout/MainLayout.razor.css b/src/Heimdall.Web/Components/Layout/MainLayout.razor.css index 38d1f25..fccf2e1 100644 --- a/src/Heimdall.Web/Components/Layout/MainLayout.razor.css +++ b/src/Heimdall.Web/Components/Layout/MainLayout.razor.css @@ -1,98 +1,2 @@ -.page { - position: relative; - display: flex; - flex-direction: column; -} - -main { - flex: 1; -} - -.sidebar { - background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%); -} - -.top-row { - background-color: #f7f7f7; - border-bottom: 1px solid #d6d5d5; - justify-content: flex-end; - height: 3.5rem; - display: flex; - align-items: center; -} - - .top-row ::deep a, .top-row ::deep .btn-link { - white-space: nowrap; - margin-left: 1.5rem; - text-decoration: none; - } - - .top-row ::deep a:hover, .top-row ::deep .btn-link:hover { - text-decoration: underline; - } - - .top-row ::deep a:first-child { - overflow: hidden; - text-overflow: ellipsis; - } - -@media (max-width: 640.98px) { - .top-row { - justify-content: space-between; - } - - .top-row ::deep a, .top-row ::deep .btn-link { - margin-left: 0; - } -} - -@media (min-width: 641px) { - .page { - flex-direction: row; - } - - .sidebar { - width: 250px; - height: 100vh; - position: sticky; - top: 0; - } - - .top-row { - position: sticky; - top: 0; - z-index: 1; - } - - .top-row.auth ::deep a:first-child { - flex: 1; - text-align: right; - width: 0; - } - - .top-row, article { - padding-left: 2rem !important; - padding-right: 1.5rem !important; - } -} - -#blazor-error-ui { - color-scheme: light only; - background: lightyellow; - bottom: 0; - box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2); - box-sizing: border-box; - display: none; - left: 0; - padding: 0.6rem 1.25rem 0.7rem 1.25rem; - position: fixed; - width: 100%; - z-index: 1000; -} - - #blazor-error-ui .dismiss { - cursor: pointer; - position: absolute; - right: 0.75rem; - top: 0.5rem; - } +/* MainLayout styles are handled by MudBlazor components (MudAppBar, MudDrawer, etc.). + This file intentionally left minimal — global styles live in app.css. */ diff --git a/src/Heimdall.Web/Components/Layout/ReconnectModal.razor.css b/src/Heimdall.Web/Components/Layout/ReconnectModal.razor.css index 3ad3773..d8beb8f 100644 --- a/src/Heimdall.Web/Components/Layout/ReconnectModal.razor.css +++ b/src/Heimdall.Web/Components/Layout/ReconnectModal.razor.css @@ -31,13 +31,11 @@ opacity: 0; transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete; animation: components-reconnect-modal-fadeOutOpacity 0.5s both; - &[open] - -{ - animation: components-reconnect-modal-slideUp 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity 0.5s ease-in-out 0.3s; - animation-fill-mode: both; } +#components-reconnect-modal[open] { + animation: components-reconnect-modal-slideUp 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity 0.5s ease-in-out 0.3s; + animation-fill-mode: both; } #components-reconnect-modal::backdrop { diff --git a/src/Heimdall.Web/Components/Pages/Login.razor b/src/Heimdall.Web/Components/Pages/Login.razor index 7ee8a67..9565197 100644 --- a/src/Heimdall.Web/Components/Pages/Login.razor +++ b/src/Heimdall.Web/Components/Pages/Login.razor @@ -18,21 +18,24 @@ Plateforme de surveillance vidéo - - +
+ + - @if (!string.IsNullOrEmpty(_errorMessage)) - { - @_errorMessage - } + @if (!string.IsNullOrEmpty(_errorMessage)) + { + @_errorMessage + } - - @if (_loading) { } - Se connecter - + + @if (_loading) { } + Se connecter + + Pas encore de compte ? diff --git a/src/Heimdall.Web/Components/Pages/Register.razor b/src/Heimdall.Web/Components/Pages/Register.razor index b223b30..5fad836 100644 --- a/src/Heimdall.Web/Components/Pages/Register.razor +++ b/src/Heimdall.Web/Components/Pages/Register.razor @@ -11,24 +11,29 @@ Créer un compte - - - +
+ + + - @if (!string.IsNullOrEmpty(_errorMessage)) - { - @_errorMessage - } + @if (!string.IsNullOrEmpty(_errorMessage)) + { + @_errorMessage + } - - @if (_loading) { } - S'inscrire - + + @if (_loading) { } + S'inscrire + + Déjà un compte ? diff --git a/src/Heimdall.Web/wwwroot/app.css b/src/Heimdall.Web/wwwroot/app.css index c069001..780a3f8 100644 --- a/src/Heimdall.Web/wwwroot/app.css +++ b/src/Heimdall.Web/wwwroot/app.css @@ -4,9 +4,37 @@ html, body { font-family: 'Inter', 'Roboto', 'Helvetica', 'Arial', sans-serif; height: 100%; margin: 0; + background-color: #f5f5f5; + color-scheme: light dark; } -/* MudBlazor overrides */ +/* ─── Scrollbar ───────────────────────────────────────────────── */ + +::-webkit-scrollbar { + width: 8px; + height: 8px; +} + +::-webkit-scrollbar-track { + background: transparent; +} + +::-webkit-scrollbar-thumb { + background: #c4c4c4; + border-radius: 4px; +} + +::-webkit-scrollbar-thumb:hover { + background: #a6a6a6; +} + +* { + scrollbar-color: #c4c4c4 transparent; + scrollbar-width: thin; +} + +/* ─── MudBlazor overrides ─────────────────────────────────────── */ + .mud-dialog { border-radius: 12px !important; } @@ -21,7 +49,8 @@ code { font-size: 0.9em; } -/* Validation */ +/* ─── Validation ───────────────────────────────────────────────── */ + .valid.modified:not([type=checkbox]) { outline: 1px solid #26b050; } @@ -33,3 +62,39 @@ code { .validation-message { color: #e50000; } + +/* ─── Blazor error UI ─────────────────────────────────────────── */ + +#blazor-error-ui { + color-scheme: light only; + background: lightyellow; + bottom: 0; + box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2); + box-sizing: border-box; + display: none; + left: 0; + padding: 0.6rem 1.25rem 0.7rem 1.25rem; + position: fixed; + width: 100%; + z-index: 1000; +} + +#blazor-error-ui .dismiss { + cursor: pointer; + position: absolute; + right: 0.75rem; + top: 0.5rem; +} + +/* ─── Dark mode ────────────────────────────────────────────────── */ + +@media (prefers-color-scheme: dark) { + html, body { + background-color: #1e1e2e; + } + + #blazor-error-ui { + background: #3a2a00; + color: #ffd966; + } +}