Palette dynamique dans BookPlayer et admin
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

- BookPlayer : toutes les couleurs HSL en dur remplacées par variables CSS palette
- Admin (sidebar, formulaires, pages, book, songs, messages, media, login) : idem
- L'ambiance graphique suit maintenant la palette active partout

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Yvv
2026-03-14 16:41:23 +01:00
parent 9caf11c8ab
commit 8f548afb17
19 changed files with 170 additions and 170 deletions

View File

@@ -102,18 +102,18 @@ function formatSize(bytes: number): string {
.filter-btn {
padding: 0.25rem 0.625rem;
border-radius: 9999px;
border: 1px solid hsl(20 8% 18%);
border: 1px solid hsl(var(--color-surface-light));
background: none;
color: hsl(20 8% 55%);
color: hsl(var(--color-text-muted));
font-size: 0.75rem;
cursor: pointer;
transition: all 0.2s;
}
.filter-btn--active {
background: hsl(12 76% 48% / 0.15);
border-color: hsl(12 76% 48% / 0.3);
color: hsl(12 76% 68%);
background: hsl(var(--color-primary) / 0.15);
border-color: hsl(var(--color-primary) / 0.3);
color: hsl(var(--color-primary));
}
.media-grid {
@@ -123,7 +123,7 @@ function formatSize(bytes: number): string {
}
.media-card {
border: 1px solid hsl(20 8% 14%);
border: 1px solid hsl(var(--color-surface-light));
border-radius: 0.5rem;
overflow: hidden;
cursor: pointer;
@@ -131,18 +131,18 @@ function formatSize(bytes: number): string {
}
.media-card:hover {
border-color: hsl(20 8% 22%);
border-color: hsl(var(--color-surface-light));
}
.media-card--selected {
border-color: hsl(12 76% 48%);
box-shadow: 0 0 0 1px hsl(12 76% 48% / 0.3);
border-color: hsl(var(--color-primary));
box-shadow: 0 0 0 1px hsl(var(--color-primary) / 0.3);
}
.media-thumb {
aspect-ratio: 1;
overflow: hidden;
background: hsl(20 8% 6%);
background: hsl(var(--color-bg));
}
.media-thumb img {
@@ -156,8 +156,8 @@ function formatSize(bytes: number): string {
display: flex;
align-items: center;
justify-content: center;
background: hsl(20 8% 6%);
color: hsl(20 8% 40%);
background: hsl(var(--color-bg));
color: hsl(var(--color-text-muted));
}
.media-info {
@@ -177,7 +177,7 @@ function formatSize(bytes: number): string {
.media-size {
font-size: 0.65rem;
color: hsl(20 8% 40%);
color: hsl(var(--color-text-muted));
}
.media-actions {
@@ -186,9 +186,9 @@ function formatSize(bytes: number): string {
justify-content: space-between;
margin-top: 1rem;
padding: 0.75rem;
border: 1px solid hsl(20 8% 14%);
border: 1px solid hsl(var(--color-surface-light));
border-radius: 0.5rem;
background: hsl(20 8% 5%);
background: hsl(var(--color-bg));
}
.delete-btn {