From f2eb62f6f871b25e183d4d5f4548378a52f93e03 Mon Sep 17 00:00:00 2001 From: Ufuk Kayserilioglu Date: Sat, 24 Aug 2024 14:15:17 -0400 Subject: [PATCH] Make the summary triangle appear in the correct place when the summary text overflows to next line. (#1160) --- lib/rdoc/generator/template/darkfish/css/rdoc.css | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/rdoc/generator/template/darkfish/css/rdoc.css b/lib/rdoc/generator/template/darkfish/css/rdoc.css index 872b1a0413..f8d1bc3df0 100644 --- a/lib/rdoc/generator/template/darkfish/css/rdoc.css +++ b/lib/rdoc/generator/template/darkfish/css/rdoc.css @@ -239,14 +239,15 @@ nav ul li details { nav ul li details > summary { list-style: none; /* Remove the default marker */ + position: relative; /* So that the open/close triangle can position itself absolutely inside */ } nav ul li details > summary::after { content: '▶'; /* Unicode right-pointing triangle */ position: absolute; font-size: 0.8em; - top: 0.3em; - padding-left: 0.2em; + bottom: 0.1em; + margin-left: 0.3em; transition: transform 0.2s ease; }