From c1492b52e35518d6f5397522cd44559433d8b5f9 Mon Sep 17 00:00:00 2001 From: Richard Dern Date: Wed, 29 Oct 2025 15:25:42 +0100 Subject: [PATCH] =?UTF-8?q?Am=C3=A9lioration=20des=20listes=20de=20d=C3=A9?= =?UTF-8?q?finition?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/42/assets/css/article-body.css | 34 +++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/themes/42/assets/css/article-body.css b/themes/42/assets/css/article-body.css index 3d57716d..c28e359d 100644 --- a/themes/42/assets/css/article-body.css +++ b/themes/42/assets/css/article-body.css @@ -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,