1

Improved dl, dt and dd visual representation

This commit is contained in:
2025-04-09 01:47:48 +02:00
parent fa774677f9
commit b0c699f3c3

View File

@@ -97,22 +97,46 @@ article aside {
} }
dl { dl {
display: grid;
grid-template-columns: 40% 60%;
row-gap: 0;
border: 1px solid #444;
border-radius: 4px;
overflow: hidden;
margin: 2em 0; margin: 2em 0;
padding: 0;
} }
/* Base commune */
dt,
dd {
padding: 0.6em 1em;
border-bottom: 1px solid #444;
}
/* Colonne de gauche */
dt { dt {
font-weight: bold; font-weight: bold;
color: #fff; color: #fff;
margin-top: 1.5em; border-right: 1px solid #444;
} }
/* Colonne de droite */
dd { dd {
margin-left: 1em;
color: #ccc; color: #ccc;
line-height: 1.6; 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;
}
dl dt:nth-of-type(even),
dl dd:nth-of-type(even) {
background-color: #1a1a1a;
}
del { del {
display: inline; display: inline;
text-decoration: line-through; text-decoration: line-through;