From f0411d37b69b7727c415606b10af824d41c1bf11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=7BAI=7Df=20D=2E=20M=C3=BCller?= Date: Fri, 13 Feb 2026 19:47:38 +0100 Subject: [PATCH] fix: Add CSS styles for AsciiDoc definition lists - Add proper styling for dl, dt, dd elements - Bold labels (dt) with proper spacing - Indented definitions (dd) - Support for nested definition lists (:::) - Matches existing AsciiDoc content style Fixes definition lists not being visually distinguishable. Co-Authored-By: Claude Sonnet 4.5 --- website/src/styles/asciidoctor-scoped.css | 40 +++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/website/src/styles/asciidoctor-scoped.css b/website/src/styles/asciidoctor-scoped.css index 078ad3b..7b7c624 100644 --- a/website/src/styles/asciidoctor-scoped.css +++ b/website/src/styles/asciidoctor-scoped.css @@ -104,6 +104,46 @@ margin: 0.5rem 0; } + /* Definition Lists */ + & dl { + margin: 1.25rem 0; + } + + & dt { + font-weight: 700; + margin-top: 1rem; + margin-bottom: 0.5rem; + color: inherit; + } + + & dt:first-child { + margin-top: 0; + } + + & dd { + margin-left: 2rem; + margin-bottom: 1rem; + } + + & dd:last-child { + margin-bottom: 0; + } + + /* Nested definition lists (:::) */ + & dd > dl { + margin-top: 0.5rem; + margin-left: 0; + } + + & dd > dl dt { + font-weight: 600; + margin-top: 0.5rem; + } + + & dd > dl dd { + margin-left: 1.5rem; + } + & table { border-collapse: collapse; width: 100%;