1

Factorise la palette du thème par défaut

This commit is contained in:
2025-09-16 01:54:46 +02:00
parent 1e062196ab
commit c7a4ba0053
10 changed files with 142 additions and 111 deletions

View File

@@ -7,7 +7,7 @@ article {
.article-content,
article aside {
a {
color: #8ab4f8;
color: var(--link-blue);
text-decoration: underline;
text-underline-offset: 2px;
text-decoration-thickness: 1.5px;
@@ -15,40 +15,40 @@ article aside {
&:hover,
&:focus {
color: #64c7ff;
color: var(--accent-blue);
outline: none;
}
&:focus-visible {
outline: 2px solid #64c7ff;
outline: 2px solid var(--accent-blue);
outline-offset: 3px;
}
}
a.affiliated {
color: #e553ff;
color: var(--accent-purple-bright);
/* or: gold */
text-decoration: underline;
}
a.affiliated:hover,
a.affiliated:focus {
color: #f6a7ff;
color: var(--accent-pink-bright);
}
a.external {
color: #f38c8c;
color: var(--heading-pink);
/* or: gold */
text-decoration: underline;
}
a.external:hover,
a.external:focus {
color: #ffd8d8;
color: var(--accent-rose-light);
}
a.active {
color: #fff !important;
color: var(--text-white) !important;
}
abbr {
@@ -60,10 +60,10 @@ article aside {
display: block;
margin: 2em;
padding: 1em 1.5em;
border-left: 4px solid #64c7ff;
border-left: 4px solid var(--accent-blue);
background-color: rgba(255, 255, 255, 0.03);
font-size: 0.9em;
color: #ccc;
color: var(--text-light);
font-style: normal;
border-radius: 0.5em;
line-height: 1.6;
@@ -79,8 +79,8 @@ article aside {
blockquote {
margin: 2em 0;
padding-left: 1.5em;
border-left: 4px solid #64c7ff;
color: #ccc;
border-left: 4px solid var(--accent-blue);
color: var(--text-light);
font-style: italic;
font-size: 1.1em;
line-height: 1.6;
@@ -91,7 +91,7 @@ article aside {
margin-top: 1em;
font-style: normal;
font-size: 0.9em;
color: #999;
color: var(--text-muted2);
text-align: right;
}
}
@@ -100,7 +100,7 @@ article aside {
display: grid;
grid-template-columns: 40% 60%;
row-gap: 0;
border: 1px solid #444;
border: 1px solid var(--border-dark);
border-radius: 4px;
overflow: hidden;
margin: 2em 0;
@@ -110,37 +110,37 @@ article aside {
dt,
dd {
padding: 0.6em 1em;
border-bottom: 1px solid #444;
border-bottom: 1px solid var(--border-dark);
}
/* Colonne de gauche */
dt {
font-weight: bold;
color: #fff;
border-right: 1px solid #444;
color: var(--text-white);
border-right: 1px solid var(--border-dark);
}
/* Colonne de droite */
dd {
color: #ccc;
color: var(--text-light);
line-height: 1.6;
}
/* Effet zébré sur les paires dt/dd */
dl dt:nth-of-type(odd),
dl dd:nth-of-type(odd) {
background-color: #222;
background-color: var(--surface-dark);
}
dl dt:nth-of-type(even),
dl dd:nth-of-type(even) {
background-color: #1a1a1a;
background-color: var(--surface-overlay);
}
del {
display: inline;
text-decoration: line-through;
color: #d44;
color: var(--text-red);
background-color: rgba(255, 0, 0, 0.1);
padding: 0 0.2em;
border-radius: 0.2em;
@@ -160,11 +160,11 @@ article aside {
}
&.spoiler {
border-left: 4px solid #888;
border-left: 4px solid var(--border-muted);
background-color: rgba(255, 255, 255, 0.03);
summary {
color: #aaa;
color: var(--text-muted);
&::before {
content: "⚠️ ";
@@ -173,16 +173,16 @@ article aside {
}
&[open] summary {
color: #fff;
color: var(--text-white);
}
}
&.update {
border-left: 4px solid #64c7ff;
border-left: 4px solid var(--accent-blue);
background-color: rgba(100, 199, 255, 0.1);
summary {
color: #64c7ff;
color: var(--accent-blue);
&::before {
content: "🛈 ";
@@ -191,7 +191,7 @@ article aside {
}
&[open] summary {
color: #fff;
color: var(--text-white);
}
}
@@ -201,7 +201,7 @@ article aside {
summary {
font-weight: normal;
color: #8ab4f8;
color: var(--link-blue);
text-decoration: underline dotted;
&::before {
@@ -210,7 +210,7 @@ article aside {
}
&:hover {
color: #64c7ff;
color: var(--accent-blue);
}
}
@@ -223,7 +223,7 @@ article aside {
dfn {
font-style: italic;
font-weight: normal;
border-bottom: 1px dashed #64c7ff;
border-bottom: 1px dashed var(--accent-blue);
cursor: help;
text-decoration: none;
}
@@ -257,7 +257,7 @@ article aside {
}
figcaption {
color: #aaa;
color: var(--text-muted);
margin-top: 0.5em;
line-height: 1.4;
font-style: italic;
@@ -265,7 +265,7 @@ article aside {
font-size: 1rem;
em {
color: #eee;
color: var(--text-softest);
}
}
}
@@ -290,7 +290,7 @@ article aside {
margin-right: 0.5em;
vertical-align: text-bottom;
/* ⬅ correction ici */
border: 2px solid #888;
border: 2px solid var(--border-muted);
border-radius: 0.2em;
background-color: transparent;
position: relative;
@@ -303,7 +303,7 @@ article aside {
left: 50%;
transform: translate(-50%, -50%);
/* ⬅ centrage parfait */
color: #64c7ff;
color: var(--accent-blue);
font-weight: bold;
font-size: 0.85em;
/* ⬅ très léger ajustement */
@@ -319,7 +319,7 @@ article aside {
display: inline;
text-decoration: none;
font-weight: bold;
color: #2c5;
color: var(--text-green);
background-color: rgba(0, 255, 0, 0.1);
padding: 0 0.2em;
border-radius: 0.2em;
@@ -332,8 +332,8 @@ article aside {
font-family: inherit;
font-size: 0.9em;
line-height: 1.2;
color: #aaa;
background-color: #111;
color: var(--text-muted);
background-color: var(--bg-dark);
border-radius: 0.3em;
box-shadow:
0 0 6px rgba(255, 255, 255, 0.25),
@@ -378,7 +378,7 @@ article aside {
&::before {
content: "•";
color: #64c7ff;
color: var(--accent-blue);
position: absolute;
left: 0;
top: 0.1em;
@@ -397,7 +397,7 @@ article aside {
list-style: decimal;
li::marker {
color: #9fd356;
color: var(--heading-green);
font-variant-numeric: tabular-nums;
}
}
@@ -421,7 +421,7 @@ article aside {
q {
quotes: "«\00a0" " »" "“" "”";
font-style: italic;
color: #aaa;
color: var(--text-muted);
&::before {
content: open-quote;
@@ -439,8 +439,8 @@ article aside {
font-family: 'Courier New', monospace;
font-size: 0.9em;
line-height: 1.4;
color: #a8ff60;
background-color: #111;
color: var(--accent-green-bright);
background-color: var(--bg-dark);
border-radius: 0.3em;
box-shadow:
0 0 1px rgba(0, 255, 0, 0.2),
@@ -452,8 +452,8 @@ article aside {
display: block;
padding: 1em;
margin: 2em auto;
background-color: #111;
color: #a8ff60;
background-color: var(--bg-dark);
color: var(--accent-green-bright);
border-radius: 0.5em;
box-shadow:
0 0 10px rgba(0, 255, 100, 0.05),
@@ -464,7 +464,7 @@ article aside {
}
strong {
color: white;
color: var(--text-white);
}
sub,
@@ -489,7 +489,7 @@ article aside {
margin: 3em 0;
font-size: 0.95em;
line-height: 1.5;
border: 1px solid #444;
border: 1px solid var(--border-dark);
background-color: rgba(255, 255, 255, 0.015);
/* Suppression des coins arrondis */
border-radius: 0;
@@ -497,13 +497,13 @@ article aside {
thead {
background-color: rgba(255, 255, 255, 0.04);
color: #fff;
color: var(--text-white);
font-weight: bold;
}
thead th {
padding: 0.75em 1em;
border: 1px solid #444;
border: 1px solid var(--border-dark);
text-align: left;
white-space: nowrap;
background: linear-gradient(to bottom, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.4));
@@ -511,10 +511,10 @@ article aside {
tbody td {
padding: 0.75em 1em;
border: 1px solid #444;
border: 1px solid var(--border-dark);
vertical-align: top;
text-align: left;
color: #ccc;
color: var(--text-light);
background-color: transparent;
transition: background-color 0.2s;
}
@@ -538,9 +538,9 @@ article aside {
tfoot td {
padding: 0.75em 1em;
font-style: italic;
color: #aaa;
color: var(--text-muted);
background-color: rgba(255, 255, 255, 0.02);
border: 1px solid #444;
border: 1px solid var(--border-dark);
}
}
@@ -561,7 +561,7 @@ aside {
counter-increment: h2;
margin: 2.2em 0 1em;
font-size: 1.8em;
color: #64c7ff;
color: var(--accent-blue);
scroll-margin-top: 4rem;
&::before {
@@ -574,7 +574,7 @@ aside {
counter-increment: h3;
margin: 2em 0 0.8em;
font-size: 1.5em;
color: #9fd356;
color: var(--heading-green);
scroll-margin-top: 4rem;
&::before {
@@ -587,7 +587,7 @@ aside {
counter-increment: h4;
margin: 1.8em 0 0.7em;
font-size: 1.3em;
color: #e6c84f;
color: var(--heading-yellow);
scroll-margin-top: 4rem;
&::before {
@@ -600,7 +600,7 @@ aside {
counter-increment: h5;
margin: 1.6em 0 0.6em;
font-size: 1.1em;
color: #da88ff;
color: var(--heading-purple);
scroll-margin-top: 4rem;
&::before {
@@ -612,11 +612,11 @@ aside {
counter-increment: h6;
margin: 1.4em 0 0.5em;
font-size: 1em;
color: #f38c8c;
color: var(--heading-pink);
scroll-margin-top: 4rem;
&::before {
content: counter(h2) "." counter(h3) "." counter(h4) "." counter(h5) "." counter(h6) ". ";
}
}
}
}