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 {
.site-shell footer {
margin-top: 4em;
text-align: center;
color: #228;
color: var(--text-muted);
}
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 {
margin: 1.5em 0 0.75em 0;
height: 1px;
background-color: #e0e0e0;
background-color: var(--border);
}
\ No newline at end of file
......@@ -50,7 +50,7 @@
}
.lightText {
color: #666;
color: var(--text-muted);
}
.filters {
......@@ -63,12 +63,12 @@
.filters select {
margin-left: 0.5rem;
padding: 0.25rem;
border: 1px solid #ddd;
border: 1px solid var(--border);
border-radius: 4px;
}
.poemCard {
background-color: #fff;
background-color: var(--surface);
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
padding: 1.5rem;
......@@ -86,7 +86,7 @@
flex-wrap: wrap;
gap: 0.5rem;
margin-top: 0.5rem;
color: #666;
color: var(--text-muted);
font-size: 0.9rem;
}
......@@ -109,20 +109,20 @@
}
.tag {
background-color: #f0f0f0;
background-color: var(--surface-raised);
border-radius: 12px;
padding: 0.25rem 0.75rem;
font-size: 0.85rem;
color: #555;
color: var(--text-muted);
transition: background-color 0.2s;
}
.tag:hover {
background-color: #e0e0e0;
background-color: var(--border);
}
.filtersContainer {
background-color: #f8f9fa;
background-color: var(--surface-raised);
border-radius: 8px;
padding: 1.5rem;
margin-bottom: 2rem;
......@@ -150,29 +150,29 @@
.filterLabel {
font-weight: 600;
color: #333;
color: var(--text-primary);
min-width: 80px;
}
.filterSelect {
padding: 0.5rem 0.75rem;
border: 1px solid #ddd;
border: 1px solid var(--border);
border-radius: 4px;
background-color: white;
background-color: var(--surface);
min-width: 120px;
font-size: 0.9rem;
color: #333;
color: var(--text-primary);
transition: border-color 0.2s, box-shadow 0.2s;
}
.filterSelect:focus {
border-color: #0070f3;
border-color: var(--link);
box-shadow: 0 0 0 2px rgba(0, 112, 243, 0.2);
outline: none;
}
.filterSelect:hover {
border-color: #999;
border-color: var(--text-muted);
}
.poemContent {
......@@ -180,7 +180,7 @@
line-height: 1.8;
white-space: pre-wrap;
font-size: 1.1rem;
color: #333;
color: var(--text-primary);
max-width: 70ch;
}
......@@ -242,7 +242,7 @@
max-width: 800px;
margin: 2rem auto;
padding: 2rem;
background-color: #fff;
background-color: var(--surface);
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
......@@ -250,14 +250,14 @@
.backLink {
display: inline-block;
margin: 1rem 0;
color: #666;
color: var(--text-muted);
text-decoration: none;
font-size: 0.9rem;
transition: color 0.2s;
}
.backLink:hover {
color: #0070f3;
color: var(--link);
text-decoration: underline;
}
......@@ -283,7 +283,7 @@
}
.hydraLinks a {
color: #0070f3;
color: var(--link);
text-decoration: none;
}
......@@ -294,7 +294,7 @@
.toggleButton {
background: none;
border: none;
color: #0070f3;
color: var(--link);
cursor: pointer;
font-size: 0.95rem;
padding: 0;
......@@ -309,14 +309,14 @@
margin-top: 1rem;
border-radius: 8px;
overflow: hidden;
background-color: #f6f8fa;
background-color: var(--surface-raised);
}
.searchContainer {
display: flex;
flex-wrap: wrap;
gap: 1rem;
background-color: #f8f9fa;
background-color: var(--surface-raised);
border-radius: 8px;
padding: 1rem;
margin-bottom: 1.5rem;
......@@ -327,15 +327,15 @@
flex: 1;
min-width: 200px;
padding: 0.6rem 1rem;
border: 1px solid #ddd;
border: 1px solid var(--border);
border-radius: 4px;
font-size: 0.95rem;
background-color: white;
background-color: var(--surface);
}
.searchBar:focus {
outline: none;
border-color: #0070f3;
border-color: var(--link);
box-shadow: 0 0 0 2px rgba(0, 112, 243, 0.2);
}
......@@ -347,15 +347,15 @@
.filterSelect {
padding: 0.6rem;
border: 1px solid #ddd;
border: 1px solid var(--border);
border-radius: 4px;
font-size: 0.9rem;
background-color: white;
background-color: var(--surface);
min-width: 120px;
}
.hydraCard {
background-color: #fff;
background-color: var(--surface);
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
padding: 1.5rem;
......@@ -370,7 +370,7 @@
/* Hover Popup Styles */
.hoverReveal {
position: relative;
border-bottom: 1px dotted #666;
border-bottom: 1px dotted var(--text-muted);
cursor: help;
}
......@@ -387,15 +387,15 @@
max-width: 350px;
padding: 1rem;
background: #fff;
color: #333;
background: var(--surface);
color: var(--text-primary);
font-size: 1rem;
line-height: 1.5;
text-align: center;
border-radius: 8px;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
border: 1px solid #eee;
border: 1px solid var(--border);
opacity: 0;
visibility: hidden;
......@@ -412,7 +412,7 @@
border-width: 5px;
border-style: solid;
border-color: #eee transparent transparent transparent;
border-color: var(--border) transparent transparent transparent;
opacity: 0;
visibility: hidden;
......@@ -451,7 +451,7 @@
/* Ensure links within tooltips are clickable */
.hoverReveal:hover::after a,
.hoverReveal:focus::after a {
color: #0070f3;
color: var(--link);
text-decoration: underline;
position: relative;
z-index: 101;
......@@ -459,15 +459,15 @@
/* Paper-like effect for tooltips */
.hoverReveal::after {
background-image: linear-gradient(to bottom, #fff 0%, #f9f9f9 100%);
border-left: 1px solid #f0f0f0;
border-right: 1px solid #f0f0f0;
background-image: linear-gradient(to bottom, var(--surface) 0%, var(--surface-raised) 100%);
border-left: 1px solid var(--border);
border-right: 1px solid var(--border);
}
/* Advanced Tooltip Styles */
.hoverTrigger {
position: relative;
border-bottom: 1px dotted #666;
border-bottom: 1px dotted var(--text-muted);
cursor: help;
display: inline-block;
}
......@@ -492,20 +492,20 @@
}
.popupContent {
background: #fff;
color: #333;
background: var(--surface);
color: var(--text-primary);
padding: 1rem;
border-radius: 8px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
border: 1px solid #eee;
border: 1px solid var(--border);
font-size: 1rem;
line-height: 1.6;
text-align: left;
/* Paper-like effect */
background-image: linear-gradient(to bottom, #fff 0%, #f9f9f9 100%);
border-left: 1px solid #f0f0f0;
border-right: 1px solid #f0f0f0;
background-image: linear-gradient(to bottom, var(--surface) 0%, var(--surface-raised) 100%);
border-left: 1px solid var(--border);
border-right: 1px solid var(--border);
}
.popupText {
......@@ -533,17 +533,17 @@
.popupLinks a {
display: inline-block;
color: #0070f3;
color: var(--link);
text-decoration: none;
font-size: 0.9rem;
background: #f5f7ff;
background: var(--surface-raised);
padding: 0.25rem 0.6rem;
border-radius: 4px;
transition: all 0.2s ease;
}
.popupLinks a:hover {
background: #e6eaff;
background: var(--border);
text-decoration: underline;
}
......@@ -556,7 +556,7 @@
border-width: 5px;
border-style: solid;
border-color: #eee transparent transparent transparent;
border-color: var(--border) transparent transparent transparent;
}
@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