Palette dynamique dans BookPlayer et admin
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
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:
@@ -58,7 +58,7 @@ function addItem() {
|
||||
.field-label {
|
||||
font-size: 0.8rem;
|
||||
font-weight: 500;
|
||||
color: hsl(20 8% 60%);
|
||||
color: hsl(var(--color-text-muted));
|
||||
}
|
||||
|
||||
.list-item {
|
||||
@@ -66,9 +66,9 @@ function addItem() {
|
||||
align-items: flex-start;
|
||||
gap: 0.5rem;
|
||||
padding: 0.5rem;
|
||||
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));
|
||||
}
|
||||
|
||||
.list-item > :deep(*:first-child) {
|
||||
@@ -101,9 +101,9 @@ function addItem() {
|
||||
gap: 0.375rem;
|
||||
padding: 0.375rem 0.75rem;
|
||||
border-radius: 0.5rem;
|
||||
border: 1px dashed hsl(20 8% 22%);
|
||||
border: 1px dashed hsl(var(--color-surface-light));
|
||||
background: none;
|
||||
color: hsl(20 8% 50%);
|
||||
color: hsl(var(--color-text-muted));
|
||||
font-size: 0.8rem;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
@@ -111,7 +111,7 @@ function addItem() {
|
||||
}
|
||||
|
||||
.list-add:hover {
|
||||
border-color: hsl(12 76% 48% / 0.4);
|
||||
color: hsl(12 76% 68%);
|
||||
border-color: hsl(var(--color-primary) / 0.4);
|
||||
color: hsl(var(--color-primary));
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -36,14 +36,14 @@ const id = computed(() => `field-${props.label.toLowerCase().replace(/\s+/g, '-'
|
||||
.field-label {
|
||||
font-size: 0.8rem;
|
||||
font-weight: 500;
|
||||
color: hsl(20 8% 60%);
|
||||
color: hsl(var(--color-text-muted));
|
||||
}
|
||||
|
||||
.field-input {
|
||||
padding: 0.5rem 0.75rem;
|
||||
border-radius: 0.5rem;
|
||||
border: 1px solid hsl(20 8% 18%);
|
||||
background: hsl(20 8% 6%);
|
||||
border: 1px solid hsl(var(--color-surface-light));
|
||||
background: hsl(var(--color-bg));
|
||||
color: white;
|
||||
font-size: 0.875rem;
|
||||
transition: border-color 0.2s;
|
||||
@@ -51,6 +51,6 @@ const id = computed(() => `field-${props.label.toLowerCase().replace(/\s+/g, '-'
|
||||
|
||||
.field-input:focus {
|
||||
outline: none;
|
||||
border-color: hsl(12 76% 48% / 0.5);
|
||||
border-color: hsl(var(--color-primary) / 0.5);
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -37,14 +37,14 @@ const id = computed(() => `field-${props.label.toLowerCase().replace(/\s+/g, '-'
|
||||
.field-label {
|
||||
font-size: 0.8rem;
|
||||
font-weight: 500;
|
||||
color: hsl(20 8% 60%);
|
||||
color: hsl(var(--color-text-muted));
|
||||
}
|
||||
|
||||
.field-textarea {
|
||||
padding: 0.5rem 0.75rem;
|
||||
border-radius: 0.5rem;
|
||||
border: 1px solid hsl(20 8% 18%);
|
||||
background: hsl(20 8% 6%);
|
||||
border: 1px solid hsl(var(--color-surface-light));
|
||||
background: hsl(var(--color-bg));
|
||||
color: white;
|
||||
font-size: 0.875rem;
|
||||
resize: vertical;
|
||||
@@ -55,6 +55,6 @@ const id = computed(() => `field-${props.label.toLowerCase().replace(/\s+/g, '-'
|
||||
|
||||
.field-textarea:focus {
|
||||
outline: none;
|
||||
border-color: hsl(12 76% 48% / 0.5);
|
||||
border-color: hsl(var(--color-primary) / 0.5);
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -19,7 +19,7 @@ defineProps<{
|
||||
|
||||
<style scoped>
|
||||
.admin-section {
|
||||
border: 1px solid hsl(20 8% 14%);
|
||||
border: 1px solid hsl(var(--color-surface-light));
|
||||
border-radius: 0.75rem;
|
||||
overflow: hidden;
|
||||
margin-bottom: 1rem;
|
||||
@@ -34,12 +34,12 @@ defineProps<{
|
||||
font-size: 0.9rem;
|
||||
color: white;
|
||||
cursor: pointer;
|
||||
background: hsl(20 8% 6%);
|
||||
background: hsl(var(--color-bg));
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.admin-section-header:hover {
|
||||
background: hsl(20 8% 8%);
|
||||
background: hsl(var(--color-surface));
|
||||
}
|
||||
|
||||
.admin-section[open] .section-arrow {
|
||||
|
||||
@@ -98,7 +98,7 @@ const renderedHtml = computed(() => {
|
||||
|
||||
<style scoped>
|
||||
.md-editor {
|
||||
border: 1px solid hsl(20 8% 18%);
|
||||
border: 1px solid hsl(var(--color-surface-light));
|
||||
border-radius: 0.5rem;
|
||||
overflow: hidden;
|
||||
}
|
||||
@@ -107,8 +107,8 @@ const renderedHtml = computed(() => {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
background: hsl(20 8% 6%);
|
||||
border-bottom: 1px solid hsl(20 8% 14%);
|
||||
background: hsl(var(--color-bg));
|
||||
border-bottom: 1px solid hsl(var(--color-surface-light));
|
||||
}
|
||||
|
||||
.md-tabs {
|
||||
@@ -122,7 +122,7 @@ const renderedHtml = computed(() => {
|
||||
padding: 0.5rem 0.875rem;
|
||||
border: none;
|
||||
background: none;
|
||||
color: hsl(20 8% 50%);
|
||||
color: hsl(var(--color-text-muted));
|
||||
font-size: 0.8rem;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
@@ -130,12 +130,12 @@ const renderedHtml = computed(() => {
|
||||
|
||||
.md-tab--active {
|
||||
color: white;
|
||||
background: hsl(20 8% 10%);
|
||||
background: hsl(var(--color-surface));
|
||||
}
|
||||
|
||||
.md-fullscreen {
|
||||
padding: 0.5rem 0.75rem;
|
||||
color: hsl(20 8% 40%);
|
||||
color: hsl(var(--color-text-muted));
|
||||
transition: color 0.2s;
|
||||
}
|
||||
.md-fullscreen:hover,
|
||||
@@ -151,14 +151,14 @@ const renderedHtml = computed(() => {
|
||||
}
|
||||
|
||||
.md-body--split .md-preview {
|
||||
border-left: 1px solid hsl(20 8% 14%);
|
||||
border-left: 1px solid hsl(var(--color-surface-light));
|
||||
}
|
||||
|
||||
.md-body--fullscreen {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 50;
|
||||
background: hsl(20 8% 4%);
|
||||
background: hsl(var(--color-bg));
|
||||
}
|
||||
|
||||
.md-body--fullscreen .md-textarea,
|
||||
@@ -170,7 +170,7 @@ const renderedHtml = computed(() => {
|
||||
width: 100%;
|
||||
padding: 1rem;
|
||||
border: none;
|
||||
background: hsl(20 8% 4%);
|
||||
background: hsl(var(--color-bg));
|
||||
color: white;
|
||||
font-family: var(--font-mono, monospace);
|
||||
font-size: 0.85rem;
|
||||
@@ -189,6 +189,6 @@ const renderedHtml = computed(() => {
|
||||
min-height: 24rem;
|
||||
max-height: 70vh;
|
||||
overflow-y: auto;
|
||||
background: hsl(20 8% 4%);
|
||||
background: hsl(var(--color-bg));
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -73,7 +73,7 @@ async function upload(files: FileList) {
|
||||
|
||||
<style scoped>
|
||||
.upload-zone {
|
||||
border: 2px dashed hsl(20 8% 22%);
|
||||
border: 2px dashed hsl(var(--color-surface-light));
|
||||
border-radius: 0.75rem;
|
||||
padding: 2rem;
|
||||
text-align: center;
|
||||
@@ -82,12 +82,12 @@ async function upload(files: FileList) {
|
||||
}
|
||||
|
||||
.upload-zone:hover {
|
||||
border-color: hsl(12 76% 48% / 0.4);
|
||||
border-color: hsl(var(--color-primary) / 0.4);
|
||||
}
|
||||
|
||||
.upload-zone--active {
|
||||
border-color: hsl(12 76% 48%);
|
||||
background: hsl(12 76% 48% / 0.05);
|
||||
border-color: hsl(var(--color-primary));
|
||||
background: hsl(var(--color-primary) / 0.05);
|
||||
}
|
||||
|
||||
.upload-progress {
|
||||
@@ -95,7 +95,7 @@ async function upload(files: FileList) {
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
color: hsl(20 8% 55%);
|
||||
color: hsl(var(--color-text-muted));
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ defineEmits<{
|
||||
padding: 0.625rem 1.25rem;
|
||||
border-radius: 0.5rem;
|
||||
border: none;
|
||||
background: hsl(12 76% 48%);
|
||||
background: hsl(var(--color-primary));
|
||||
color: white;
|
||||
font-weight: 600;
|
||||
font-size: 0.85rem;
|
||||
@@ -40,7 +40,7 @@ defineEmits<{
|
||||
}
|
||||
|
||||
.save-btn:hover:not(:disabled) {
|
||||
background: hsl(12 76% 42%);
|
||||
background: hsl(var(--color-primary));
|
||||
}
|
||||
|
||||
.save-btn:disabled {
|
||||
|
||||
@@ -91,8 +91,8 @@ async function logout() {
|
||||
|
||||
<style scoped>
|
||||
.admin-sidebar {
|
||||
background: hsl(20 8% 5%);
|
||||
border-right: 1px solid hsl(20 8% 14%);
|
||||
background: hsl(var(--color-bg));
|
||||
border-right: 1px solid hsl(var(--color-surface-light));
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100dvh;
|
||||
@@ -102,7 +102,7 @@ async function logout() {
|
||||
|
||||
.sidebar-header {
|
||||
padding: 1.25rem 1rem;
|
||||
border-bottom: 1px solid hsl(20 8% 14%);
|
||||
border-bottom: 1px solid hsl(var(--color-surface-light));
|
||||
}
|
||||
|
||||
.sidebar-nav {
|
||||
@@ -116,7 +116,7 @@ async function logout() {
|
||||
font-weight: 700;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.1em;
|
||||
color: hsl(20 8% 40%);
|
||||
color: hsl(var(--color-text-muted));
|
||||
padding: 1rem 0.75rem 0.375rem;
|
||||
margin: 0;
|
||||
}
|
||||
@@ -128,7 +128,7 @@ async function logout() {
|
||||
padding: 0.5rem 0.75rem;
|
||||
border-radius: 0.5rem;
|
||||
font-size: 0.85rem;
|
||||
color: hsl(20 8% 60%);
|
||||
color: hsl(var(--color-text-muted));
|
||||
text-decoration: none;
|
||||
transition: all 0.2s;
|
||||
border: none;
|
||||
@@ -138,18 +138,18 @@ async function logout() {
|
||||
}
|
||||
|
||||
.sidebar-link:hover {
|
||||
background: hsl(20 8% 10%);
|
||||
background: hsl(var(--color-surface));
|
||||
color: white;
|
||||
}
|
||||
|
||||
.sidebar-link--active {
|
||||
background: hsl(12 76% 48% / 0.12);
|
||||
color: hsl(12 76% 68%);
|
||||
background: hsl(var(--color-primary) / 0.12);
|
||||
color: hsl(var(--color-primary));
|
||||
}
|
||||
|
||||
.sidebar-footer {
|
||||
padding: 0.5rem;
|
||||
border-top: 1px solid hsl(20 8% 14%);
|
||||
border-top: 1px solid hsl(var(--color-surface-light));
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
|
||||
Reference in New Issue
Block a user