Amélioration des listes de définition
This commit is contained in:
@@ -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,
|
>ul,
|
||||||
>ol,
|
>ol,
|
||||||
>details ul,
|
>details ul,
|
||||||
|
|||||||
Reference in New Issue
Block a user