feat(ui): polish visuel global — Font Awesome, composants partagés, fix MudMenu

This commit is contained in:
Arnaud Dartois committed 2026-07-27 20:11:31 +00:00
1 parent b1c25ac0ae
commit 219d9b73b6
26 files changed
+889 -237

No files matched your search

@@ -0,0 +1,71 @@
# Monochrome Theme Redesign — Heimdall
**Date**: 2026-07-27
**Status**: Draft
## Objectif
Refondre le thème Heimdall (dashboard surveillance MudBlazor) en noir & blanc pur,
avec ajout de Font Awesome pour les icônes, en conservant les couleurs de statut
(vert/rouge/orange) pour les indicateurs fonctionnels.
## Palette
### Light Mode
| Rôle | Couleur |
|------|---------|
| Background | `#FAFAFA` |
| Surface (cards) | `#FFFFFF` |
| Appbar | `#000000` |
| Drawer | `#FFFFFF` |
| Text Primary | `#111111` |
| Text Secondary | `#555555` |
| Lines/Inputs | `#E5E5E5` |
| Success | `#16A34A` |
| Error | `#DC2626` |
| Warning | `#EA580C` |
### Dark Mode
| Rôle | Couleur |
|------|---------|
| Background | `#0A0A0A` |
| Surface | `#1A1A1A` |
| Appbar | `#000000` |
| Drawer | `#1A1A1A` |
| Text Primary | `#F5F5F5` |
| Text Secondary | `#A3A3A3` |
| Lines/Inputs | `#333333` |
| Success | `#22C55E` |
| Error | `#EF4444` |
| Warning | `#F97316` |
## Typos
- Police existante : **Inter** (Google Fonts) — weights 300/400/500/600/700
- Police code : **Fira Code** (déjà présente)
- Hiérarchie renforcée : titres en 600/700, body en 400, labels en 500
## Icônes
- **Font Awesome 6 Free** ajouté via CDN
- Matériel Icons MudBlazor conservés pour la navigation
- Font Awesome utilisé pour : statuts, badges, auth page, empty states
## Pages impactées
1. **MainLayout.razor** — Palette MudTheme noir/blanc
2. **App.razor** — Ajout CDN Font Awesome
3. **app.css** — Refonte globale, auth pages monochrome, transitions
4. **ReconnectModal.razor.css** — Dark mode
5. **MudBlazorLayout.razor** — Ajout thème (layout fallback)
## Principes de lisibilité
- Contrastes élevés (ratio WCAG AA+)
- Ombres douces sur les cards
- Bordures fines (1px) pour les surfaces
- États de survol clairs (darken/lighten)
- Transitions smooth sur dark/light switch
- Statuts couleur qui ressortent sur fond neutre
+3 -2
View File
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!DOCTYPE html>
<html lang="en">
<head>
@@ -6,6 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<base href="/" />
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css" />
<link rel="stylesheet" href="@Assets["_content/MudBlazor/MudBlazor.min.css"]" />
<link rel="stylesheet" href="@Assets["app.css"]" />
<link rel="stylesheet" href="@Assets["Heimdall.Web.styles.css"]" />
@@ -23,7 +24,7 @@
<div class="auth-page">
<div class="auth-card">
<div class="auth-header">
<MudIcon Icon="@Icons.Material.Filled.ErrorOutline" Size="Size.Large" Color="Color.Error" />
<i class="fas fa-exclamation-triangle fa-2x" style="color: var(--auth-primary);"></i>
<h1>Une erreur est survenue</h1>
<p>L'application a rencontré une erreur. <a href="">Recharger la page</a> pour réessayer.</p>
</div>
@@ -1,4 +1,4 @@
@inherits LayoutComponentBase
@inherits LayoutComponentBase
@inject AuthState Auth
@inject NavigationManager Navigation
@inject HeimdallAuthStateProvider AuthStateProvider
@@ -12,7 +12,9 @@
<MudAppBar Elevation="1">
<MudIconButton Icon="@Icons.Material.Filled.Menu" Color="Color.Inherit" aria-label="Menu"
@onclick="@(() => _drawerOpen = !_drawerOpen)" />
<MudText Typo="Typo.h6" Class="ml-2">Heimdall</MudText>
<MudText Typo="Typo.h6" Class="ml-2 d-flex align-center gap-2">
<i class="fas fa-eye"></i> Heimdall
</MudText>
@* Global Search *@
<MudTextField @bind-Value="_searchQuery" Placeholder="Rechercher..." Variant="Variant.Outlined"
@@ -27,7 +29,7 @@
OnClick="@(() => Navigation.NavigateTo("/events"))" />
<MudMenu AnchorOrigin="Origin.BottomRight">
<ActivatorContent>
<MudIconButton Icon="@Icons.Material.Filled.AccountCircle" Color="Color.Inherit" aria-label="Profil" />
<MudIconButton Icon="@Icons.Material.Filled.AccountCircle" Color="Color.Inherit" aria-label="Profil" OnClick="@context.ToggleAsync" />
</ActivatorContent>
<ChildContent>
<MudMenuItem>
@@ -48,44 +50,44 @@
<MudNavMenu>
@if (Auth.IsLoggedIn)
{
<MudText Typo="Typo.body2" Color="Color.Secondary" Class="px-4 py-2">Navigation</MudText>
<MudText Typo="Typo.overline" Color="Color.Secondary" Class="px-4 py-2">Navigation</MudText>
<MudNavLink Href="/dashboard" Match="NavLinkMatch.Prefix">
<MudIcon Icon="@Icons.Material.Filled.Dashboard" /> Dashboard
<MudNavLink Href="/dashboard" Match="NavLinkMatch.Prefix" Icon="@Icons.Material.Filled.Dashboard">
Dashboard
</MudNavLink>
<MudNavLink Href="/sites" Match="NavLinkMatch.Prefix">
<MudIcon Icon="@Icons.Material.Filled.Videocam" /> Sites &amp; Caméras
<MudNavLink Href="/sites" Match="NavLinkMatch.Prefix" Icon="@Icons.Material.Filled.Videocam">
Sites &amp; Caméras
</MudNavLink>
@if (Auth.HasPermission("Admin.Users") || Auth.HasPermission("Admin.Manage"))
{
<MudText Typo="Typo.body2" Color="Color.Secondary" Class="px-4 py-2 mt-2">Administration</MudText>
<MudNavLink Href="/users" Match="NavLinkMatch.Prefix">
<MudIcon Icon="@Icons.Material.Filled.People" /> Utilisateurs
<MudText Typo="Typo.overline" Color="Color.Secondary" Class="px-4 py-2 mt-2">Administration</MudText>
<MudNavLink Href="/users" Match="NavLinkMatch.Prefix" Icon="@Icons.Material.Filled.People">
Utilisateurs
</MudNavLink>
<MudNavLink Href="/admin/agents" Match="NavLinkMatch.Prefix">
<MudIcon Icon="@Icons.Material.Filled.Memory" /> Agents
<MudNavLink Href="/admin/agents" Match="NavLinkMatch.Prefix" Icon="@Icons.Material.Filled.Memory">
Agents
</MudNavLink>
<MudNavLink Href="/admin/roles" Match="NavLinkMatch.Prefix">
<MudIcon Icon="@Icons.Material.Filled.ManageAccounts" /> Rôles &amp; Permissions
<MudNavLink Href="/admin/roles" Match="NavLinkMatch.Prefix" Icon="@Icons.Material.Filled.ManageAccounts">
Rôles &amp; Permissions
</MudNavLink>
<MudNavLink Href="/admin/groups" Match="NavLinkMatch.Prefix">
<MudIcon Icon="@Icons.Material.Filled.Group" /> Groupes
<MudNavLink Href="/admin/groups" Match="NavLinkMatch.Prefix" Icon="@Icons.Material.Filled.Group">
Groupes
</MudNavLink>
<MudNavLink Href="/admin/claims" Match="NavLinkMatch.Prefix">
<MudIcon Icon="@Icons.Material.Filled.Policy" /> Matrice des permissions
<MudNavLink Href="/admin/claims" Match="NavLinkMatch.Prefix" Icon="@Icons.Material.Filled.Policy">
Matrice des permissions
</MudNavLink>
<MudNavLink Href="/events" Match="NavLinkMatch.Prefix">
<MudIcon Icon="@Icons.Material.Filled.Notifications" /> Événements
<MudNavLink Href="/events" Match="NavLinkMatch.Prefix" Icon="@Icons.Material.Filled.Notifications">
Événements
</MudNavLink>
<MudNavLink Href="/snapshots" Match="NavLinkMatch.Prefix">
<MudIcon Icon="@Icons.Material.Filled.PhotoLibrary" /> Snapshots
<MudNavLink Href="/snapshots" Match="NavLinkMatch.Prefix" Icon="@Icons.Material.Filled.PhotoLibrary">
Snapshots
</MudNavLink>
<MudNavLink Href="/audit-logs" Match="NavLinkMatch.Prefix">
<MudIcon Icon="@Icons.Material.Filled.History" /> Journal d'audit
<MudNavLink Href="/audit-logs" Match="NavLinkMatch.Prefix" Icon="@Icons.Material.Filled.History">
Journal d'audit
</MudNavLink>
<MudNavLink Href="/settings" Match="NavLinkMatch.Prefix">
<MudIcon Icon="@Icons.Material.Filled.Settings" /> Configuration
<MudNavLink Href="/settings" Match="NavLinkMatch.Prefix" Icon="@Icons.Material.Filled.Settings">
Configuration
</MudNavLink>
}
@@ -114,45 +116,114 @@
{
PaletteLight = new PaletteLight
{
Primary = "#1976D2",
Secondary = "#9E9E9E",
Tertiary = "#009688",
AppbarBackground = "#1565C0",
// ─── Noir & Blanc — mode clair ─────────────────────────
Black = "#000000",
White = "#FFFFFF",
Primary = "#111111",
PrimaryContrastText = "#FFFFFF",
Secondary = "#555555",
SecondaryContrastText = "#FFFFFF",
Tertiary = "#333333",
TertiaryContrastText = "#FFFFFF",
// Appbar — noir pur
AppbarBackground = "#000000",
AppbarText = "#FFFFFF",
Background = "#F5F5F5",
// Fond général
Background = "#FAFAFA",
Surface = "#FFFFFF",
// Navigation
DrawerBackground = "#FFFFFF",
DrawerText = "#424242",
TextPrimary = "#212121",
TextSecondary = "#616161",
TextDisabled = "#BDBDBD",
Dark = "#0D47A1",
DarkLighten = "#1976D2",
Info = "#42A5F5",
Warning = "#FF9800",
Error = "#F44336",
Success = "#4CAF50",
DrawerText = "#111111",
DrawerIcon = "#555555",
// Typographie
TextPrimary = "#111111",
TextSecondary = "#555555",
TextDisabled = "#A3A3A3",
// Bordures & lignes
LinesDefault = "#E5E5E5",
LinesInputs = "#D4D4D4",
// Ombres & profondeur
Dark = "#000000",
DarkLighten = "#1A1A1A",
// Couleurs de statut (volontairement vives sur fond clair)
Info = "#2563EB",
Warning = "#EA580C",
Error = "#DC2626",
Success = "#16A34A",
// Tableaux
TableLines = "#E5E5E5",
TableStriped = "#FAFAFA",
// Séparateurs
Divider = "#E5E5E5",
DividerLight = "#F0F0F0",
// Overlays & interactions
},
PaletteDark = new PaletteDark
{
Primary = "#64B5F6",
Secondary = "#BDBDBD",
Tertiary = "#80CBC4",
AppbarBackground = "#212121",
// ─── Noir & Blanc — mode sombre ────────────────────────
Black = "#000000",
White = "#FFFFFF",
Primary = "#FFFFFF",
PrimaryContrastText = "#000000",
Secondary = "#A3A3A3",
SecondaryContrastText = "#000000",
Tertiary = "#CCCCCC",
TertiaryContrastText = "#000000",
// Appbar — noir (identique au light)
AppbarBackground = "#000000",
AppbarText = "#FFFFFF",
Background = "#121212",
Surface = "#424242",
DrawerBackground = "#424242",
DrawerText = "#BDBDBD",
TextPrimary = "#E0E0E0",
TextSecondary = "#BDBDBD",
TextDisabled = "#757575",
Dark = "#1A237E",
DarkLighten = "#1976D2",
Info = "#42A5F5",
Warning = "#FFA726",
Error = "#EF5350",
Success = "#66BB6A",
// Fond général — presque noir
Background = "#0A0A0A",
Surface = "#1A1A1A",
// Navigation
DrawerBackground = "#1A1A1A",
DrawerText = "#F5F5F5",
DrawerIcon = "#A3A3A3",
// Typographie
TextPrimary = "#F5F5F5",
TextSecondary = "#A3A3A3",
TextDisabled = "#555555",
// Bordures & lignes
LinesDefault = "#333333",
LinesInputs = "#444444",
// Ombres & profondeur
Dark = "#000000",
DarkLighten = "#0A0A0A",
// Couleurs de statut (légèrement adoucies pour dark)
Info = "#60A5FA",
Warning = "#F97316",
Error = "#EF4444",
Success = "#22C55E",
// Tableaux
TableLines = "#333333",
TableStriped = "#222222",
// Séparateurs
Divider = "#333333",
DividerLight = "#2A2A2A",
// Overlays & interactions
}
};
@@ -1,6 +1,6 @@
@inherits LayoutComponentBase
<MudThemeProvider />
<MudThemeProvider Theme="@_theme" />
<MudDialogProvider />
<MudSnackbarProvider />
@@ -9,3 +9,76 @@
@Body
</MudMainContent>
</MudLayout>
@code {
// Thème monochrome noir & blanc — partagé avec MainLayout
private readonly MudTheme _theme = new()
{
PaletteLight = new PaletteLight
{
Black = "#000000",
White = "#FFFFFF",
Primary = "#111111",
PrimaryContrastText = "#FFFFFF",
Secondary = "#555555",
SecondaryContrastText = "#FFFFFF",
Tertiary = "#333333",
TertiaryContrastText = "#FFFFFF",
AppbarBackground = "#000000",
AppbarText = "#FFFFFF",
Background = "#FAFAFA",
Surface = "#FFFFFF",
DrawerBackground = "#FFFFFF",
DrawerText = "#111111",
DrawerIcon = "#555555",
TextPrimary = "#111111",
TextSecondary = "#555555",
TextDisabled = "#A3A3A3",
LinesDefault = "#E5E5E5",
LinesInputs = "#D4D4D4",
Dark = "#000000",
DarkLighten = "#1A1A1A",
Info = "#2563EB",
Warning = "#EA580C",
Error = "#DC2626",
Success = "#16A34A",
TableLines = "#E5E5E5",
TableStriped = "#FAFAFA",
Divider = "#E5E5E5",
DividerLight = "#F0F0F0",
},
PaletteDark = new PaletteDark
{
Black = "#000000",
White = "#FFFFFF",
Primary = "#FFFFFF",
PrimaryContrastText = "#000000",
Secondary = "#A3A3A3",
SecondaryContrastText = "#000000",
Tertiary = "#CCCCCC",
TertiaryContrastText = "#000000",
AppbarBackground = "#000000",
AppbarText = "#FFFFFF",
Background = "#0A0A0A",
Surface = "#1A1A1A",
DrawerBackground = "#1A1A1A",
DrawerText = "#F5F5F5",
DrawerIcon = "#A3A3A3",
TextPrimary = "#F5F5F5",
TextSecondary = "#A3A3A3",
TextDisabled = "#555555",
LinesDefault = "#333333",
LinesInputs = "#444444",
Dark = "#000000",
DarkLighten = "#0A0A0A",
Info = "#60A5FA",
Warning = "#F97316",
Error = "#EF4444",
Success = "#22C55E",
TableLines = "#333333",
TableStriped = "#222222",
Divider = "#333333",
DividerLight = "#2A2A2A",
}
};
}
@@ -1,3 +1,5 @@
/* ─── Reconnect Modal — Dark/Light compatible ───────────────── */
.components-reconnect-first-attempt-visible,
.components-reconnect-repeated-attempt-visible,
.components-reconnect-failed-visible,
@@ -19,27 +21,29 @@
display: block;
}
#components-reconnect-modal {
background-color: white;
width: 20rem;
background-color: var(--bg-card, #FFFFFF);
color: var(--text-primary, #111111);
width: 22rem;
max-width: 90vw;
margin: 20vh auto;
padding: 2rem;
border: 0;
border-radius: 0.5rem;
box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
border: 1px solid var(--border-color, #E5E5E5);
border-radius: 16px;
box-shadow: var(--shadow-xl, 0 25px 50px -12px rgba(0, 0, 0, 0.25));
opacity: 0;
transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
animation: components-reconnect-modal-fadeOutOpacity 0.5s 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: 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 {
background-color: rgba(0, 0, 0, 0.4);
background-color: rgba(0, 0, 0, 0.5);
animation: components-reconnect-modal-fadeInOpacity 0.5s ease-in-out;
opacity: 1;
}
@@ -48,30 +52,19 @@
0% {
transform: translateY(30px) scale(0.95);
}
100% {
transform: translateY(0);
}
}
@keyframes components-reconnect-modal-fadeInOpacity {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
0% { opacity: 0; }
100% { opacity: 1; }
}
@keyframes components-reconnect-modal-fadeOutOpacity {
0% {
opacity: 1;
}
100% {
opacity: 0;
}
0% { opacity: 1; }
100% { opacity: 0; }
}
.components-reconnect-container {
@@ -79,77 +72,79 @@
flex-direction: column;
align-items: center;
gap: 1rem;
text-align: center;
}
#components-reconnect-modal p {
margin: 0;
text-align: center;
}
#components-reconnect-modal button {
border: 0;
background-color: #6b9ed2;
color: white;
padding: 4px 24px;
border-radius: 4px;
border: 1.5px solid var(--border-color, #E5E5E5);
background: var(--bg-surface, #FFFFFF);
color: var(--text-primary, #111111);
padding: 8px 28px;
border-radius: 8px;
font-weight: 500;
cursor: pointer;
transition: background 0.2s ease, border-color 0.2s ease;
}
#components-reconnect-modal button:hover {
background-color: #3b6ea2;
}
#components-reconnect-modal button:hover {
background: var(--bg-hover, rgba(0, 0, 0, 0.04));
border-color: var(--text-secondary, #555555);
}
#components-reconnect-modal button:active {
background-color: #6b9ed2;
}
#components-reconnect-modal button:active {
background: var(--bg-active, rgba(0, 0, 0, 0.06));
}
/* Rejoining animation ring */
.components-rejoining-animation {
position: relative;
width: 80px;
height: 80px;
width: 72px;
height: 72px;
}
.components-rejoining-animation div {
position: absolute;
border: 3px solid #0087ff;
opacity: 1;
border-radius: 50%;
animation: components-rejoining-animation 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}
.components-rejoining-animation div {
position: absolute;
border: 3px solid #555555;
opacity: 1;
border-radius: 50%;
animation: components-rejoining-animation 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}
.components-rejoining-animation div:nth-child(2) {
animation-delay: -0.5s;
}
.components-rejoining-animation div:nth-child(2) {
animation-delay: -0.5s;
}
@keyframes components-rejoining-animation {
0% {
top: 40px;
left: 40px;
top: 36px;
left: 36px;
width: 0;
height: 0;
opacity: 0;
}
4.9% {
top: 40px;
left: 40px;
top: 36px;
left: 36px;
width: 0;
height: 0;
opacity: 0;
}
5% {
top: 40px;
left: 40px;
top: 36px;
left: 36px;
width: 0;
height: 0;
opacity: 1;
}
100% {
top: 0px;
left: 0px;
width: 80px;
height: 80px;
top: 0;
left: 0;
width: 72px;
height: 72px;
opacity: 0;
}
}
@@ -5,7 +5,7 @@
@inject ISnackbar Snackbar
<MudText Typo="Typo.h4" Class="mb-6">
<MudIcon Icon="@Icons.Material.Filled.Memory" Class="mr-2" />
<i class="fas fa-microchip mr-2"></i>
Agents
</MudText>
@@ -5,7 +5,7 @@
@inject ISnackbar Snackbar
<MudText Typo="Typo.h4" Class="mb-6">
<MudIcon Icon="@Icons.Material.Filled.Policy" Class="mr-2" />
<i class="fas fa-shield-halved mr-2"></i>
Matrice des permissions
</MudText>
@@ -5,7 +5,7 @@
@inject ISnackbar Snackbar
<MudText Typo="Typo.h4" Class="mb-6">
<MudIcon Icon="@Icons.Material.Filled.Group" Class="mr-2" />
<i class="fas fa-user-group mr-2"></i>
Groupes
</MudText>
@@ -5,7 +5,7 @@
@inject ISnackbar Snackbar
<MudText Typo="Typo.h4" Class="mb-6">
<MudIcon Icon="@Icons.Material.Filled.ManageAccounts" Class="mr-2" />
<i class="fas fa-user-shield mr-2"></i>
Rôles & Permissions
</MudText>
@@ -5,7 +5,7 @@
@inject ISnackbar Snackbar
<MudText Typo="Typo.h4" Class="mb-6">
<MudIcon Icon="@Icons.Material.Filled.History" Class="mr-2" />
<i class="fas fa-history mr-2"></i>
Journal d'audit
</MudText>
@@ -6,7 +6,7 @@
@inject NavigationManager Nav
<MudText Typo="Typo.h4" Class="mb-6">
<MudIcon Icon="@Icons.Material.Filled.Videocam" Class="mr-2" />
<i class="fas fa-camera mr-2"></i>
Caméra : @_camera?.Name
</MudText>
@@ -6,7 +6,7 @@
@inject NavigationManager Nav
<MudText Typo="Typo.h4" Class="mb-6">
<MudIcon Icon="@Icons.Material.Filled.Videocam" Class="mr-2" />
<i class="fas fa-video mr-2"></i>
Caméras du site
</MudText>
@@ -6,7 +6,7 @@
@inject NavigationManager Nav
<MudText Typo="Typo.h4" Class="mb-6">
<MudIcon Icon="@Icons.Material.Filled.Notifications" Class="mr-2" />
<i class="fas fa-bell mr-2"></i>
Événements
</MudText>
@@ -13,7 +13,7 @@
<div class="auth-card">
<div class="auth-header">
<div class="auth-icon">
<MudIcon Icon="@Icons.Material.Filled.Shield" Size="Size.Large" />
<i class="fas fa-eye"></i>
</div>
<h1>Heimdall</h1>
<p>Plateforme de surveillance vidéo</p>
@@ -1,5 +1,13 @@
@page "/not-found"
@page "/not-found"
@layout MainLayout
<h3>Not Found</h3>
<p>Sorry, the content you are looking for does not exist.</p>
<div class="empty-state" style="min-height: 50vh;">
<i class="fas fa-map-signs"></i>
<MudText Typo="Typo.h4" Color="Color.Primary" Class="mt-4">Page introuvable</MudText>
<MudText Typo="Typo.body1" Color="Color.Secondary" Class="mb-6">
Désolé, la page que vous cherchez n'existe pas ou a été déplacée.
</MudText>
<MudButton Variant="Variant.Filled" Color="Color.Primary" Href="/dashboard">
<i class="fas fa-arrow-left mr-2"></i> Retour au Dashboard
</MudButton>
</div>
@@ -7,7 +7,7 @@
@inject HeimdallAuthStateProvider AuthProvider
<MudText Typo="Typo.h4" Class="mb-6">
<MudIcon Icon="@Icons.Material.Filled.AccountCircle" Class="mr-2" />
<i class="fas fa-user-circle mr-2"></i>
Mon profil
</MudText>
@@ -11,7 +11,7 @@
<div class="auth-card">
<div class="auth-header">
<div class="auth-icon">
<MudIcon Icon="@Icons.Material.Filled.Shield" Size="Size.Large" />
<i class="fas fa-user-plus"></i>
</div>
<h1>Créer un compte</h1>
<p>Rejoignez la plateforme Heimdall</p>
@@ -6,7 +6,7 @@
<div class="d-flex align-center mb-4">
<MudText Typo="Typo.h4" Class="flex-grow-1">
<MudIcon Icon="@Icons.Material.Filled.Settings" Class="mr-2" />
<i class="fas fa-cog mr-2"></i>
Configuration
</MudText>
<MudTooltip Text="Ajouter un nouveau paramètre">
@@ -7,7 +7,7 @@
@inject IJSRuntime Js
<MudText Typo="Typo.h4" Class="mb-6">
<MudIcon Icon="@Icons.Material.Filled.Videocam" Class="mr-2" />
<i class="fas fa-video mr-2"></i>
Site : @_site?.Name
</MudText>
@@ -5,7 +5,7 @@
@inject ISnackbar Snackbar
<MudText Typo="Typo.h4" Class="mb-6">
<MudIcon Icon="@Icons.Material.Filled.Videocam" Class="mr-2" />
<i class="fas fa-video mr-2"></i>
Sites
</MudText>
@@ -6,7 +6,7 @@
@inject NavigationManager Nav
<MudText Typo="Typo.h4" Class="mb-6">
<MudIcon Icon="@Icons.Material.Filled.PhotoLibrary" Class="mr-2" />
<i class="fas fa-images mr-2"></i>
Galerie de snapshots
</MudText>
@@ -5,7 +5,7 @@
@inject ISnackbar Snackbar
<MudText Typo="Typo.h4" Class="mb-6">
<MudIcon Icon="@Icons.Material.Filled.People" Class="mr-2" />
<i class="fas fa-users mr-2"></i>
Utilisateurs
</MudText>
@@ -1,11 +1,18 @@
@* Empty state placeholder shown when a list or section has no data. *@
<MudPaper Class="@($"pa-8 text-center {Class}")" Style="border-radius: 12px;">
<MudIcon Icon="@Icon" Size="Size.Large" Color="Color.Secondary" />
<MudPaper Class="@($"pa-10 text-center {Class}")" Style="border-radius: 12px;">
@if (!string.IsNullOrEmpty(FaIcon))
{
<i class="@FaIcon" style="font-size:3rem;color:var(--mud-palette-text-disabled);margin-bottom:1rem;display:inline-block;"></i>
}
else
{
<MudIcon Icon="@Icon" Size="Size.Large" Color="Color.Secondary" />
}
<MudText Typo="Typo.h6" Color="Color.Secondary" Class="mt-4">@Title</MudText>
@if (!string.IsNullOrEmpty(Description))
{
<MudText Typo="Typo.body2" Color="Color.Secondary" Class="mb-4">@Description</MudText>
<MudText Typo="Typo.body2" Color="Color.Secondary" Class="mb-6" Style="max-width:400px;margin:0 auto;">@Description</MudText>
}
@ActionContent
</MudPaper>
@@ -18,6 +25,12 @@
[Parameter]
public string Icon { get; set; } = Icons.Material.Filled.Business;
/// <summary>
/// Optional Font Awesome icon (e.g. "fas fa-video"). Takes precedence over Icon.
/// </summary>
[Parameter]
public string FaIcon { get; set; } = string.Empty;
/// <summary>
/// Main heading text.
/// </summary>
@@ -1,14 +1,15 @@
@* Skeleton loading placeholder for cards and content areas. *@
<MudPaper Elevation="1" Class="@($"pa-4 {Class}")" Style="border-radius: 8px;">
<MudPaper Elevation="0" Class="@($"pa-4 {Class}")" Style="border-radius: 12px; border: 1px solid var(--mud-palette-lines-default);">
@if (ShowTitle)
{
<MudSkeleton Width="200px" Height="24px" />
<MudSkeleton Width="180px" Height="22px" Style="border-radius:6px;" />
}
@for (int i = 0; i < LineCount; i++)
{
<MudSkeleton Width="@(i == 0 ? "100%" : i % 2 == 0 ? "80%" : "90%")"
Height="40px" Class="@(i > 0 ? "mt-1" : "mt-2")" />
<MudSkeleton Width="@GetWidth(i)" Height="42px"
Style="border-radius:8px;"
Class="@(i > 0 || ShowTitle ? "mt-2" : "")" />
}
</MudPaper>
@@ -32,4 +33,11 @@
[Parameter]
public string Class { get; set; } = string.Empty;
private string GetWidth(int index) => (index % 3) switch
{
0 => "100%",
1 => "85%",
_ => "92%"
};
}
@@ -1,10 +1,14 @@
@* Reusable section card with title, icon, optional help tooltip and action area. *@
@* Reusable section card with title, icon (MudBlazor or Font Awesome), optional help tooltip and action area. *@
<MudPaper Elevation="@Elevation" Class="@($"pa-4 mb-4 {Class}")" Style="border-radius: 8px;">
<MudPaper Elevation="@Elevation" Class="@($"pa-4 mb-4 {Class}")" Style="border-radius: 12px;">
@if (!string.IsNullOrEmpty(Title))
{
<div class="d-flex align-center mb-4">
@if (!string.IsNullOrEmpty(Icon))
@if (!string.IsNullOrEmpty(FaIcon))
{
<i class="@FaIcon mr-2" style="font-size:1.1rem;color:var(--mud-palette-secondary);"></i>
}
else if (!string.IsNullOrEmpty(Icon))
{
<MudIcon Icon="@Icon" Size="Size.Small" Class="mr-2" Color="@IconColor" />
}
@@ -13,7 +17,7 @@
@if (!string.IsNullOrEmpty(HelpText))
{
<MudTooltip Text="@HelpText">
<MudIcon Icon="@Icons.Material.Filled.HelpOutline" Size="Size.Small" Color="Color.Secondary" />
<MudIcon Icon="@Icons.Material.Filled.HelpOutline" Size="Size.Small" Color="Color.Secondary" Class="ml-1" />
</MudTooltip>
}
</div>
@@ -35,6 +39,12 @@
[Parameter]
public string Icon { get; set; } = string.Empty;
/// <summary>
/// Optional Font Awesome icon (e.g. "fas fa-camera"). Takes precedence over Icon.
/// </summary>
[Parameter]
public string FaIcon { get; set; } = string.Empty;
/// <summary>
/// Color of the title icon. Defaults to <see cref="Color.Secondary"/>.
/// </summary>
+487 -85
View File
@@ -1,14 +1,141 @@
/* ─── Heimdall — Global Styles ────────────────────────────────── */
/* Monochrome theme · Dark/Light · Font Awesome */
/* ═══════════════════════════════════════════════════════════════════
CSS Custom Properties — switched by .mud-theme-dark on <html>
═══════════════════════════════════════════════════════════════════ */
html {
/* ── Surfaces & backgrounds ── */
--bg-app: #FAFAFA;
--bg-surface: #FFFFFF;
--bg-card: #FFFFFF;
--bg-input: #F8F8F8;
--bg-hover: rgba(0, 0, 0, 0.04);
--bg-active: rgba(0, 0, 0, 0.06);
/* ── Text ── */
--text-primary: #111111;
--text-secondary: #555555;
--text-tertiary: #888888;
--text-disabled: #A3A3A3;
--text-inverse: #FFFFFF;
/* ── Borders ── */
--border-color: #E5E5E5;
--border-light: #F0F0F0;
--border-input: #D4D4D4;
/* ── Shadows ── */
--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
--shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
/* ── Scrollbar ── */
--scrollbar-thumb: #C4C4C4;
--scrollbar-thumb-hover: #A0A0A0;
--scrollbar-track: transparent;
/* ── Auth page (light defaults) ── */
--auth-bg-start: #0A0A0A;
--auth-bg-mid: #1A1A1A;
--auth-bg-end: #0A0A0A;
--auth-primary: #111111;
--auth-primary-rgb: 17, 17, 17;
--auth-primary-hover: #000000;
--auth-accent: #333333;
--auth-bg-card: rgba(255, 255, 255, 0.98);
--auth-text-heading: #111111;
--auth-text-body: #555555;
--auth-text-link: #111111;
--auth-text-link-hover: #000000;
--auth-border: #E5E5E5;
--auth-bg-input: #F8F8F8;
--auth-shadow-card: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
--auth-border-card: rgba(0, 0, 0, 0.06);
--auth-accent-circle: rgba(17, 17, 17, 0.06);
/* ── Blazor error ── */
--error-bg: #FFF8E1;
--error-text: #8D6E00;
}
/* ═══════════════════════════════════════════════════════════════════
Dark mode — MudBlazor adds .mud-theme-dark to <html>
═══════════════════════════════════════════════════════════════════ */
html.mud-theme-dark {
--bg-app: #0A0A0A;
--bg-surface: #1A1A1A;
--bg-card: #1A1A1A;
--bg-input: #222222;
--bg-hover: rgba(255, 255, 255, 0.04);
--bg-active: rgba(255, 255, 255, 0.06);
--text-primary: #F5F5F5;
--text-secondary: #A3A3A3;
--text-tertiary: #777777;
--text-disabled: #555555;
--text-inverse: #000000;
--border-color: #333333;
--border-light: #2A2A2A;
--border-input: #444444;
--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
--shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
--scrollbar-thumb: #555555;
--scrollbar-thumb-hover: #777777;
--scrollbar-track: transparent;
--auth-primary: #FFFFFF;
--auth-primary-rgb: 255, 255, 255;
--auth-primary-hover: #E5E5E5;
--auth-accent: #CCCCCC;
--auth-bg-card: rgba(26, 26, 26, 0.98);
--auth-text-heading: #F5F5F5;
--auth-text-body: #A3A3A3;
--auth-text-link: #FFFFFF;
--auth-text-link-hover: #CCCCCC;
--auth-border: #333333;
--auth-bg-input: #222222;
--auth-shadow-card: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
--auth-border-card: rgba(255, 255, 255, 0.05);
--auth-accent-circle: rgba(255, 255, 255, 0.05);
--error-bg: #3A2A00;
--error-text: #FFD966;
}
/* ═══════════════════════════════════════════════════════════════════
Base
═══════════════════════════════════════════════════════════════════ */
html {
transition: background-color 0.3s ease, color 0.3s ease;
}
html.mud-theme-dark {
transition: background-color 0.3s ease, color 0.3s ease;
}
html, body {
font-family: 'Inter', 'Roboto', 'Helvetica', 'Arial', sans-serif;
height: 100%;
margin: 0;
background-color: #f5f5f5;
color-scheme: light dark;
background-color: var(--bg-app);
color: var(--text-primary);
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
/* ─── Scrollbar ───────────────────────────────────────────────── */
/* ═══════════════════════════════════════════════════════════════════
Scrollbar
═══════════════════════════════════════════════════════════════════ */
::-webkit-scrollbar {
width: 8px;
@@ -16,60 +143,125 @@ html, body {
}
::-webkit-scrollbar-track {
background: transparent;
background: var(--scrollbar-track);
}
::-webkit-scrollbar-thumb {
background: #c4c4c4;
background: var(--scrollbar-thumb);
border-radius: 4px;
transition: background 0.2s ease;
}
::-webkit-scrollbar-thumb:hover {
background: #a6a6a6;
background: var(--scrollbar-thumb-hover);
}
* {
scrollbar-color: #c4c4c4 transparent;
scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
scrollbar-width: thin;
}
/* ─── MudBlazor overrides ─────────────────────────────────────── */
/* ═══════════════════════════════════════════════════════════════════
MudBlazor overrides
═══════════════════════════════════════════════════════════════════ */
/* Cards arrondis propres */
.mud-dialog {
border-radius: 12px !important;
border-radius: 14px !important;
}
.mud-table {
border-radius: 12px !important;
}
/* Code blocks in tokens */
.mud-paper {
transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
/* Papier avec bordure subtile plutôt qu'ombre portée */
.mud-paper.mud-elevation-1 {
box-shadow: var(--shadow-sm);
}
.mud-paper.mud-elevation-2 {
box-shadow: var(--shadow-md);
}
.mud-paper.mud-elevation-3 {
box-shadow: var(--shadow-lg);
}
/* Boutons outline propres */
.mud-button-outlined {
border-width: 1.5px !important;
}
/* Chips de statut */
.mud-chip {
font-weight: 500 !important;
}
/* Navigation — espacement */
.mud-nav-item {
border-radius: 8px !important;
margin: 2px 8px !important;
}
.mud-nav-link {
border-radius: 8px !important;
padding: 8px 12px !important;
}
/* Drawer — fond propre */
.mud-drawer {
border-right: 1px solid var(--border-color) !important;
}
/* ═══════════════════════════════════════════════════════════════════
Font Awesome fallback helper
═══════════════════════════════════════════════════════════════════ */
.fa, .fas, .far, .fab {
font-family: 'Font Awesome 6 Free' !important;
}
/* ═══════════════════════════════════════════════════════════════════
Code blocks
═══════════════════════════════════════════════════════════════════ */
code {
font-family: 'Fira Code', 'Cascadia Code', monospace;
font-size: 0.9em;
background: var(--bg-hover);
padding: 2px 6px;
border-radius: 4px;
}
/* ─── Validation ───────────────────────────────────────────────── */
/* ═══════════════════════════════════════════════════════════════════
Validation
═══════════════════════════════════════════════════════════════════ */
.valid.modified:not([type=checkbox]) {
outline: 1px solid #26b050;
outline: 1px solid #22C55E;
}
.invalid {
outline: 1px solid #e50000;
outline: 1px solid #EF4444;
}
.validation-message {
color: #e50000;
color: #EF4444;
font-size: 0.8rem;
margin-top: 2px;
}
/* ─── Blazor error UI ─────────────────────────────────────────── */
/* ═══════════════════════════════════════════════════════════════════
Blazor error UI
═══════════════════════════════════════════════════════════════════ */
#blazor-error-ui {
color-scheme: light only;
background: lightyellow;
background: var(--error-bg);
color: var(--error-text);
bottom: 0;
box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
box-sizing: border-box;
display: none;
left: 0;
@@ -77,6 +269,7 @@ code {
position: fixed;
width: 100%;
z-index: 1000;
font-size: 0.875rem;
}
#blazor-error-ui .dismiss {
@@ -86,44 +279,66 @@ code {
top: 0.5rem;
}
/* ─── User management ──────────────────────────────────────────── */
.user-section-card {
background: var(--mud-palette-surface);
border: 1px solid var(--mud-palette-lines-inputs);
border-radius: 8px;
#blazor-error-ui .reconnect {
font-weight: 600;
text-decoration: underline;
}
/* ─── Settings page ────────────────────────────────────────────── */
/* ═══════════════════════════════════════════════════════════════════
User management cards
═══════════════════════════════════════════════════════════════════ */
.user-section-card {
background: var(--bg-surface);
border: 1px solid var(--border-color);
border-radius: 12px;
transition: border-color 0.2s ease;
}
/* ═══════════════════════════════════════════════════════════════════
Settings page
═══════════════════════════════════════════════════════════════════ */
.settings-type-chip {
padding: 2px 8px !important;
border-radius: 12px !important;
display: inline-block !important;
color: #fff !important;
font-weight: 500 !important;
}
/* ─── Auth pages (Login / Register) ─────────────────────────────── */
/* ═══════════════════════════════════════════════════════════════════
Empty states
═══════════════════════════════════════════════════════════════════ */
.empty-state {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 3rem 1rem;
text-align: center;
color: var(--text-secondary);
}
.empty-state i {
font-size: 3rem;
margin-bottom: 1rem;
color: var(--text-disabled);
}
/* ═══════════════════════════════════════════════════════════════════
Loading skeletons spacing
═══════════════════════════════════════════════════════════════════ */
.mud-skeleton {
border-radius: 6px !important;
}
/* ═══════════════════════════════════════════════════════════════════
Auth pages (Login / Register) — Monochrome
═══════════════════════════════════════════════════════════════════ */
.auth-page {
/* Theme variables — override in dark mode media query */
--auth-bg-start: #0f172a;
--auth-bg-mid: #1e293b;
--auth-bg-end: #0f172a;
--auth-primary: #6366f1;
--auth-primary-rgb: 99, 102, 241;
--auth-primary-hover: #4f46e5;
--auth-accent: #8b5cf6;
--auth-bg-card: rgba(255, 255, 255, 0.98);
--auth-text-heading: #1e293b;
--auth-text-body: #475569;
--auth-text-link: #6366f1;
--auth-text-link-hover: #4f46e5;
--auth-border: #e2e8f0;
--auth-bg-input: #f8fafc;
--auth-shadow-card: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
--auth-border-card: rgba(255, 255, 255, 0.05);
display: flex;
align-items: center;
justify-content: center;
@@ -138,24 +353,24 @@ code {
.auth-page::before {
content: '';
position: absolute;
top: -25%;
top: -30%;
right: -15%;
width: 500px;
height: 500px;
width: 600px;
height: 600px;
border-radius: 50%;
background: radial-gradient(circle, rgba(var(--auth-primary-rgb), 0.15) 0%, transparent 70%);
background: radial-gradient(circle, var(--auth-accent-circle) 0%, transparent 70%);
pointer-events: none;
}
.auth-page::after {
content: '';
position: absolute;
bottom: -20%;
bottom: -25%;
left: -10%;
width: 400px;
height: 400px;
width: 500px;
height: 500px;
border-radius: 50%;
background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, transparent 70%);
background: radial-gradient(circle, var(--auth-accent-circle) 0%, transparent 70%);
pointer-events: none;
}
@@ -171,6 +386,7 @@ code {
position: relative;
z-index: 1;
animation: auth-card-enter 0.4s ease-out;
backdrop-filter: blur(4px);
}
@keyframes auth-card-enter {
@@ -193,13 +409,14 @@ code {
display: inline-flex;
align-items: center;
justify-content: center;
width: 56px;
height: 56px;
width: 60px;
height: 60px;
border-radius: 16px;
background: linear-gradient(135deg, var(--auth-primary), var(--auth-accent));
color: #fff;
margin-bottom: 1rem;
box-shadow: 0 8px 24px rgba(var(--auth-primary-rgb), 0.3);
color: var(--text-inverse);
margin-bottom: 1.25rem;
font-size: 1.5rem;
box-shadow: 0 8px 24px rgba(var(--auth-primary-rgb), 0.2);
}
.auth-header h1 {
@@ -214,6 +431,7 @@ code {
font-size: 0.875rem;
color: var(--auth-text-body);
margin: 0;
line-height: 1.5;
}
.auth-form {
@@ -224,6 +442,7 @@ code {
.auth-form .mud-input-outlined {
background: var(--auth-bg-input);
border-radius: 10px;
}
.auth-form .auth-submit-btn {
@@ -233,11 +452,12 @@ code {
border-radius: 12px;
text-transform: none;
letter-spacing: 0.01em;
margin-top: 0.25rem;
margin-top: 0.5rem;
}
.auth-error {
margin-bottom: 0.5rem;
font-size: 0.85rem;
}
.auth-footer {
@@ -257,7 +477,7 @@ code {
color: var(--auth-text-link);
font-weight: 600;
text-decoration: none;
transition: color 0.2s;
transition: color 0.2s ease;
}
.auth-footer a:hover {
@@ -265,40 +485,222 @@ code {
text-decoration: underline;
}
/* ─── Accessibility ─────────────────────────────────────────────── */
/* ─── Auth divider with "ou" text ─── */
.auth-divider {
display: flex;
align-items: center;
gap: 1rem;
margin: 0.5rem 0;
color: var(--text-tertiary);
font-size: 0.8rem;
}
.auth-divider::before,
.auth-divider::after {
content: '';
flex: 1;
height: 1px;
background: var(--auth-border);
}
/* ═══════════════════════════════════════════════════════════════════
Accessibility — reduced motion
═══════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
.auth-card {
animation: none;
}
html, html.mud-theme-dark {
transition: none !important;
}
.auth-footer a {
transition: none;
}
}
/* ─── Dark mode ─────────────────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
html, body {
background-color: #0f172a;
}
#blazor-error-ui {
background: #3a2a00;
color: #ffd966;
}
/* Auth pages — only override variables, no selector duplication */
.auth-page {
--auth-bg-card: rgba(30, 41, 59, 0.98);
--auth-text-heading: #f1f5f9;
--auth-text-body: #cbd5e1;
--auth-text-link: #818cf8;
--auth-text-link-hover: #a5b4fc;
--auth-border: #334155;
--auth-bg-input: #1e293b;
--auth-shadow-card: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
--auth-border-card: rgba(255, 255, 255, 0.05);
*,
*::before,
*::after {
animation-duration: 0.01ms !important;
transition-duration: 0.01ms !important;
}
}
/* ═══════════════════════════════════════════════════════════════════
Utility — gap helper (for flex gap where MudBlazor doesn't apply)
═══════════════════════════════════════════════════════════════════ */
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
/* ═══════════════════════════════════════════════════════════════════
Transitions globales pour le changement de thème
═══════════════════════════════════════════════════════════════════ */
.mud-theme-provider {
transition: background-color 0.3s ease;
}
.mud-main-content {
transition: background-color 0.3s ease;
}
/* ═══════════════════════════════════════════════════════════════════
Page transitions
═══════════════════════════════════════════════════════════════════ */
.mud-main-content {
animation: page-enter 0.25s ease-out;
}
@keyframes page-enter {
from {
opacity: 0;
transform: translateY(6px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* ═══════════════════════════════════════════════════════════════════
KPI Stat Cards (Dashboard, AllAgents)
═══════════════════════════════════════════════════════════════════ */
.mud-paper.kpi-card,
.mud-paper:has(> .d-flex > .mud-typography-h4) {
transition: transform 0.2s ease, box-shadow 0.2s ease;
cursor: default;
}
.mud-paper:has(> .d-flex > .mud-typography-h4):hover {
transform: translateY(-2px);
box-shadow: var(--shadow-md);
}
/* ═══════════════════════════════════════════════════════════════════
Tables — consistent look
═══════════════════════════════════════════════════════════════════ */
.mud-table-container {
border-radius: 12px;
}
.mud-table-head {
font-weight: 600;
text-transform: none !important;
font-size: 0.8rem;
letter-spacing: 0.03em;
color: var(--mud-palette-text-secondary);
}
.mud-table-row {
transition: background-color 0.15s ease;
}
/* ═══════════════════════════════════════════════════════════════════
Dialogs — cleaner look
═══════════════════════════════════════════════════════════════════ */
.mud-dialog-content {
padding: 20px 24px !important;
}
.mud-dialog-title {
padding: 16px 24px 8px !important;
font-weight: 600 !important;
}
.mud-dialog-actions {
padding: 8px 24px 16px !important;
gap: 8px;
}
/* ═══════════════════════════════════════════════════════════════════
Buttons — clean hover states
═══════════════════════════════════════════════════════════════════ */
.mud-button-filled {
transition: opacity 0.2s ease, box-shadow 0.2s ease !important;
}
.mud-button-filled:hover {
opacity: 0.92;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}
html.mud-theme-dark .mud-button-filled:hover {
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}
.mud-button-outlined {
transition: background-color 0.2s ease, border-color 0.2s ease !important;
}
/* ═══════════════════════════════════════════════════════════════════
Navigation — active state bold
═══════════════════════════════════════════════════════════════════ */
.mud-nav-link.active {
font-weight: 600 !important;
}
.mud-nav-link.active .mud-icon-root {
color: var(--mud-palette-primary) !important;
}
/* ═══════════════════════════════════════════════════════════════════
MudChip in tables (status, type badges)
═══════════════════════════════════════════════════════════════════ */
.mud-chip-filled {
font-weight: 500 !important;
border-radius: 20px !important;
}
/* ═══════════════════════════════════════════════════════════════════
Links — clean underline on hover
═══════════════════════════════════════════════════════════════════ */
a.mud-link {
text-decoration: none !important;
transition: opacity 0.2s ease;
}
a.mud-link:hover {
opacity: 0.75;
text-decoration: underline !important;
}
/* ═══════════════════════════════════════════════════════════════════
Progress indicators
═══════════════════════════════════════════════════════════════════ */
.mud-progress-linear {
border-radius: 4px !important;
}
/* ═══════════════════════════════════════════════════════════════════
Alerts — consistent border radius
═══════════════════════════════════════════════════════════════════ */
.mud-alert {
border-radius: 10px !important;
}
/* ═══════════════════════════════════════════════════════════════════
Inputs — clean focus states
═══════════════════════════════════════════════════════════════════ */
.mud-input-outlined-border {
transition: border-color 0.15s ease !important;
}
.mud-input:focus-within .mud-input-outlined-border {
border-width: 1.5px !important;
}