From 20ad09e560a4bd124c1884c066dee02c79bb95ae Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sun, 20 Mar 2022 15:24:22 +0900 Subject: [ruby/rdoc] Use the custom style `details summary` only in `nav-section` https://github.com/ruby/rdoc/commit/7736d3a89c --- lib/rdoc/generator/template/darkfish/css/rdoc.css | 35 ++++++++++++----------- 1 file changed, 19 insertions(+), 16 deletions(-) (limited to 'lib') diff --git a/lib/rdoc/generator/template/darkfish/css/rdoc.css b/lib/rdoc/generator/template/darkfish/css/rdoc.css index 8c2b2ac6cb..3d5b4b993e 100644 --- a/lib/rdoc/generator/template/darkfish/css/rdoc.css +++ b/lib/rdoc/generator/template/darkfish/css/rdoc.css @@ -309,6 +309,25 @@ dl.note-list dt { background: url(../images/arrow_up.png) no-repeat right center; } +.nav-section details summary { + display: block; +} + +.nav-section details summary::-webkit-details-marker { + display: none; +} + +.nav-section details summary:before { + content: ""; +} + +.nav-section details summary:after { + content: " \25B6"; /* BLACK RIGHT-POINTING TRIANGLE */ +} +.nav-section details[open] > summary:after { + content: " \25BD"; /* WHITE DOWN-POINTING TRIANGLE */ +} + /* @end */ /* @group Documentation Section */ @@ -484,22 +503,6 @@ main header h3 { /* @group Method Details */ -details summary { - display: block; -} -details summary::-webkit-details-marker { - display: none; -} -details summary:before { - content: ""; -} -details summary:after { - content: " ▶"; -} -details[open] > summary:after { - content: " ▽"; -} - main .method-source-code { max-height: 0; overflow: hidden; -- cgit v1.2.3