Commit 584bfc4b by PLN (Algolia)

dark mode: sweep site-wide des surfaces en dur vers les tokens…

dark mode: sweep site-wide des surfaces en dur vers les tokens (utils.module.css, main.css) — les cards blanches sur fond sombre deviennent var(--surface) ; palettes de marque gelées intouchables, ombrages rgba neutres conservés, light inchangé (valeurs identiques aux anciens hardcodes)
parent d7a39b4f
...@@ -59,7 +59,7 @@ small { ...@@ -59,7 +59,7 @@ small {
.site-shell footer { .site-shell footer {
margin-top: 4em; margin-top: 4em;
text-align: center; text-align: center;
color: #228; color: var(--text-muted);
} }
h1 a, h2 a, h3 a, h4 a, h5 a { h1 a, h2 a, h3 a, h4 a, h5 a {
...@@ -91,5 +91,5 @@ h1 a, h2 a, h3 a, h4 a, h5 a { ...@@ -91,5 +91,5 @@ h1 a, h2 a, h3 a, h4 a, h5 a {
.divider { .divider {
margin: 1.5em 0 0.75em 0; margin: 1.5em 0 0.75em 0;
height: 1px; height: 1px;
background-color: #e0e0e0; background-color: var(--border);
} }
\ No newline at end of file
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
} }
.lightText { .lightText {
color: #666; color: var(--text-muted);
} }
.filters { .filters {
...@@ -63,12 +63,12 @@ ...@@ -63,12 +63,12 @@
.filters select { .filters select {
margin-left: 0.5rem; margin-left: 0.5rem;
padding: 0.25rem; padding: 0.25rem;
border: 1px solid #ddd; border: 1px solid var(--border);
border-radius: 4px; border-radius: 4px;
} }
.poemCard { .poemCard {
background-color: #fff; background-color: var(--surface);
border-radius: 8px; border-radius: 8px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
padding: 1.5rem; padding: 1.5rem;
...@@ -86,7 +86,7 @@ ...@@ -86,7 +86,7 @@
flex-wrap: wrap; flex-wrap: wrap;
gap: 0.5rem; gap: 0.5rem;
margin-top: 0.5rem; margin-top: 0.5rem;
color: #666; color: var(--text-muted);
font-size: 0.9rem; font-size: 0.9rem;
} }
...@@ -109,20 +109,20 @@ ...@@ -109,20 +109,20 @@
} }
.tag { .tag {
background-color: #f0f0f0; background-color: var(--surface-raised);
border-radius: 12px; border-radius: 12px;
padding: 0.25rem 0.75rem; padding: 0.25rem 0.75rem;
font-size: 0.85rem; font-size: 0.85rem;
color: #555; color: var(--text-muted);
transition: background-color 0.2s; transition: background-color 0.2s;
} }
.tag:hover { .tag:hover {
background-color: #e0e0e0; background-color: var(--border);
} }
.filtersContainer { .filtersContainer {
background-color: #f8f9fa; background-color: var(--surface-raised);
border-radius: 8px; border-radius: 8px;
padding: 1.5rem; padding: 1.5rem;
margin-bottom: 2rem; margin-bottom: 2rem;
...@@ -150,29 +150,29 @@ ...@@ -150,29 +150,29 @@
.filterLabel { .filterLabel {
font-weight: 600; font-weight: 600;
color: #333; color: var(--text-primary);
min-width: 80px; min-width: 80px;
} }
.filterSelect { .filterSelect {
padding: 0.5rem 0.75rem; padding: 0.5rem 0.75rem;
border: 1px solid #ddd; border: 1px solid var(--border);
border-radius: 4px; border-radius: 4px;
background-color: white; background-color: var(--surface);
min-width: 120px; min-width: 120px;
font-size: 0.9rem; font-size: 0.9rem;
color: #333; color: var(--text-primary);
transition: border-color 0.2s, box-shadow 0.2s; transition: border-color 0.2s, box-shadow 0.2s;
} }
.filterSelect:focus { .filterSelect:focus {
border-color: #0070f3; border-color: var(--link);
box-shadow: 0 0 0 2px rgba(0, 112, 243, 0.2); box-shadow: 0 0 0 2px rgba(0, 112, 243, 0.2);
outline: none; outline: none;
} }
.filterSelect:hover { .filterSelect:hover {
border-color: #999; border-color: var(--text-muted);
} }
.poemContent { .poemContent {
...@@ -180,7 +180,7 @@ ...@@ -180,7 +180,7 @@
line-height: 1.8; line-height: 1.8;
white-space: pre-wrap; white-space: pre-wrap;
font-size: 1.1rem; font-size: 1.1rem;
color: #333; color: var(--text-primary);
max-width: 70ch; max-width: 70ch;
} }
...@@ -242,7 +242,7 @@ ...@@ -242,7 +242,7 @@
max-width: 800px; max-width: 800px;
margin: 2rem auto; margin: 2rem auto;
padding: 2rem; padding: 2rem;
background-color: #fff; background-color: var(--surface);
border-radius: 8px; border-radius: 8px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
} }
...@@ -250,14 +250,14 @@ ...@@ -250,14 +250,14 @@
.backLink { .backLink {
display: inline-block; display: inline-block;
margin: 1rem 0; margin: 1rem 0;
color: #666; color: var(--text-muted);
text-decoration: none; text-decoration: none;
font-size: 0.9rem; font-size: 0.9rem;
transition: color 0.2s; transition: color 0.2s;
} }
.backLink:hover { .backLink:hover {
color: #0070f3; color: var(--link);
text-decoration: underline; text-decoration: underline;
} }
...@@ -283,7 +283,7 @@ ...@@ -283,7 +283,7 @@
} }
.hydraLinks a { .hydraLinks a {
color: #0070f3; color: var(--link);
text-decoration: none; text-decoration: none;
} }
...@@ -294,7 +294,7 @@ ...@@ -294,7 +294,7 @@
.toggleButton { .toggleButton {
background: none; background: none;
border: none; border: none;
color: #0070f3; color: var(--link);
cursor: pointer; cursor: pointer;
font-size: 0.95rem; font-size: 0.95rem;
padding: 0; padding: 0;
...@@ -309,14 +309,14 @@ ...@@ -309,14 +309,14 @@
margin-top: 1rem; margin-top: 1rem;
border-radius: 8px; border-radius: 8px;
overflow: hidden; overflow: hidden;
background-color: #f6f8fa; background-color: var(--surface-raised);
} }
.searchContainer { .searchContainer {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
gap: 1rem; gap: 1rem;
background-color: #f8f9fa; background-color: var(--surface-raised);
border-radius: 8px; border-radius: 8px;
padding: 1rem; padding: 1rem;
margin-bottom: 1.5rem; margin-bottom: 1.5rem;
...@@ -327,15 +327,15 @@ ...@@ -327,15 +327,15 @@
flex: 1; flex: 1;
min-width: 200px; min-width: 200px;
padding: 0.6rem 1rem; padding: 0.6rem 1rem;
border: 1px solid #ddd; border: 1px solid var(--border);
border-radius: 4px; border-radius: 4px;
font-size: 0.95rem; font-size: 0.95rem;
background-color: white; background-color: var(--surface);
} }
.searchBar:focus { .searchBar:focus {
outline: none; outline: none;
border-color: #0070f3; border-color: var(--link);
box-shadow: 0 0 0 2px rgba(0, 112, 243, 0.2); box-shadow: 0 0 0 2px rgba(0, 112, 243, 0.2);
} }
...@@ -347,15 +347,15 @@ ...@@ -347,15 +347,15 @@
.filterSelect { .filterSelect {
padding: 0.6rem; padding: 0.6rem;
border: 1px solid #ddd; border: 1px solid var(--border);
border-radius: 4px; border-radius: 4px;
font-size: 0.9rem; font-size: 0.9rem;
background-color: white; background-color: var(--surface);
min-width: 120px; min-width: 120px;
} }
.hydraCard { .hydraCard {
background-color: #fff; background-color: var(--surface);
border-radius: 8px; border-radius: 8px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
padding: 1.5rem; padding: 1.5rem;
...@@ -370,7 +370,7 @@ ...@@ -370,7 +370,7 @@
/* Hover Popup Styles */ /* Hover Popup Styles */
.hoverReveal { .hoverReveal {
position: relative; position: relative;
border-bottom: 1px dotted #666; border-bottom: 1px dotted var(--text-muted);
cursor: help; cursor: help;
} }
...@@ -387,15 +387,15 @@ ...@@ -387,15 +387,15 @@
max-width: 350px; max-width: 350px;
padding: 1rem; padding: 1rem;
background: #fff; background: var(--surface);
color: #333; color: var(--text-primary);
font-size: 1rem; font-size: 1rem;
line-height: 1.5; line-height: 1.5;
text-align: center; text-align: center;
border-radius: 8px; border-radius: 8px;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
border: 1px solid #eee; border: 1px solid var(--border);
opacity: 0; opacity: 0;
visibility: hidden; visibility: hidden;
...@@ -412,7 +412,7 @@ ...@@ -412,7 +412,7 @@
border-width: 5px; border-width: 5px;
border-style: solid; border-style: solid;
border-color: #eee transparent transparent transparent; border-color: var(--border) transparent transparent transparent;
opacity: 0; opacity: 0;
visibility: hidden; visibility: hidden;
...@@ -451,7 +451,7 @@ ...@@ -451,7 +451,7 @@
/* Ensure links within tooltips are clickable */ /* Ensure links within tooltips are clickable */
.hoverReveal:hover::after a, .hoverReveal:hover::after a,
.hoverReveal:focus::after a { .hoverReveal:focus::after a {
color: #0070f3; color: var(--link);
text-decoration: underline; text-decoration: underline;
position: relative; position: relative;
z-index: 101; z-index: 101;
...@@ -459,15 +459,15 @@ ...@@ -459,15 +459,15 @@
/* Paper-like effect for tooltips */ /* Paper-like effect for tooltips */
.hoverReveal::after { .hoverReveal::after {
background-image: linear-gradient(to bottom, #fff 0%, #f9f9f9 100%); background-image: linear-gradient(to bottom, var(--surface) 0%, var(--surface-raised) 100%);
border-left: 1px solid #f0f0f0; border-left: 1px solid var(--border);
border-right: 1px solid #f0f0f0; border-right: 1px solid var(--border);
} }
/* Advanced Tooltip Styles */ /* Advanced Tooltip Styles */
.hoverTrigger { .hoverTrigger {
position: relative; position: relative;
border-bottom: 1px dotted #666; border-bottom: 1px dotted var(--text-muted);
cursor: help; cursor: help;
display: inline-block; display: inline-block;
} }
...@@ -492,20 +492,20 @@ ...@@ -492,20 +492,20 @@
} }
.popupContent { .popupContent {
background: #fff; background: var(--surface);
color: #333; color: var(--text-primary);
padding: 1rem; padding: 1rem;
border-radius: 8px; border-radius: 8px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
border: 1px solid #eee; border: 1px solid var(--border);
font-size: 1rem; font-size: 1rem;
line-height: 1.6; line-height: 1.6;
text-align: left; text-align: left;
/* Paper-like effect */ /* Paper-like effect */
background-image: linear-gradient(to bottom, #fff 0%, #f9f9f9 100%); background-image: linear-gradient(to bottom, var(--surface) 0%, var(--surface-raised) 100%);
border-left: 1px solid #f0f0f0; border-left: 1px solid var(--border);
border-right: 1px solid #f0f0f0; border-right: 1px solid var(--border);
} }
.popupText { .popupText {
...@@ -533,17 +533,17 @@ ...@@ -533,17 +533,17 @@
.popupLinks a { .popupLinks a {
display: inline-block; display: inline-block;
color: #0070f3; color: var(--link);
text-decoration: none; text-decoration: none;
font-size: 0.9rem; font-size: 0.9rem;
background: #f5f7ff; background: var(--surface-raised);
padding: 0.25rem 0.6rem; padding: 0.25rem 0.6rem;
border-radius: 4px; border-radius: 4px;
transition: all 0.2s ease; transition: all 0.2s ease;
} }
.popupLinks a:hover { .popupLinks a:hover {
background: #e6eaff; background: var(--border);
text-decoration: underline; text-decoration: underline;
} }
...@@ -556,7 +556,7 @@ ...@@ -556,7 +556,7 @@
border-width: 5px; border-width: 5px;
border-style: solid; border-style: solid;
border-color: #eee transparent transparent transparent; border-color: var(--border) transparent transparent transparent;
} }
@keyframes fadeIn { @keyframes fadeIn {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment