1

Amélioration des listes de définition

This commit is contained in:
2025-10-29 15:25:42 +01:00
parent 74d178045a
commit c1492b52e3

View File

@@ -69,6 +69,40 @@ article.article-body {
}
}
dl {
margin: var(--margin) auto;
max-width: 100%;
display: grid;
grid-template-columns: 40% 60%;
row-gap: 0;
border: var(--border-panel-outer);
overflow: hidden;
margin: var(--margin) auto;
font-size: 1rem;
}
/* Base commune */
dt,
dd {
padding: var(--padding-half) var(--padding);
}
/* Colonne de gauche */
dt {
font-weight: bold;
}
/* Colonne de droite */
dd {
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: var(--background-body-alt);
}
>ul,
>ol,
>details ul,