feat: refactor styles dans custom_views.css et tag.cloud.html pour utiliser des variables CSS sémantiques, amélioration de la cohérence visuelle et suppression des couleurs hardcodées

This commit is contained in:
2026-04-20 18:48:39 -04:00
parent 561249ba06
commit 0f1bed5e15
3 changed files with 32 additions and 29 deletions
+10 -10
View File
@@ -39,7 +39,7 @@ body.view-todo #linklist {
}
.create-task-btn:hover {
background-color: var(--primary-dark, #1d4ed8);
background-color: var(--primary-hover);
transform: translateY(-1px);
}
@@ -60,8 +60,8 @@ body.view-todo #linklist {
}
.todo-list-item.active {
background-color: rgba(37, 99, 235, 0.1);
color: var(--primary-color, #2563eb);
background-color: color-mix(in srgb, var(--primary) 10%, transparent);
color: var(--primary);
font-weight: 600;
margin: 0;
}
@@ -113,7 +113,7 @@ body.view-todo #linklist {
.todo-item.completed .todo-title {
text-decoration: line-through;
color: var(--text-light, #94a3b8);
color: var(--text-muted);
}
.todo-meta {
@@ -187,7 +187,7 @@ body.view-archive .content-container {
}
.icon-btn:hover {
background-color: rgba(136, 136, 136, 0.1);
background-color: color-mix(in srgb, var(--text-muted) 10%, transparent);
}
.icon-btn.active {
@@ -304,7 +304,7 @@ body.view-archive .content-container {
.note-modal-pin-toggle:hover,
.note-modal-pin-toggle.active {
background-color: rgba(255, 255, 255, 0.14);
background-color: color-mix(in srgb, var(--text-main) 14%, transparent);
}
.note-body {
@@ -584,11 +584,11 @@ body.view-todo .note-card.todo-card .todo-checklist-preview-wrap {
}
.todo-item-text:focus {
background: rgba(0, 0, 0, 0.06);
background: color-mix(in srgb, var(--text-main) 6%, transparent);
}
[data-theme="dark"] .todo-item-text:focus {
background: rgba(255, 255, 255, 0.08);
background: color-mix(in srgb, var(--text-main) 8%, transparent);
}
.todo-item-delete {
@@ -608,11 +608,11 @@ body.view-todo .note-card.todo-card .todo-checklist-preview-wrap {
.todo-item-delete:hover {
opacity: 1;
background: rgba(0, 0, 0, 0.08);
background: color-mix(in srgb, var(--text-main) 8%, transparent);
}
[data-theme="dark"] .todo-item-delete:hover {
background: rgba(255, 255, 255, 0.12);
background: color-mix(in srgb, var(--text-main) 12%, transparent);
}
.todo-item-delete i {