diff options
author | Nobuyoshi Nakada <[email protected]> | 2022-03-20 15:24:22 +0900 |
---|---|---|
committer | git <[email protected]> | 2022-03-20 15:38:28 +0900 |
commit | 20ad09e560a4bd124c1884c066dee02c79bb95ae (patch) | |
tree | 1b7b244203ba5991a9c294748bcda632a83a6953 /lib | |
parent | 7b3fdcdf03aea63eacb266229ae349a554ccbcae (diff) |
[ruby/rdoc] Use the custom style `details summary` only in `nav-section`
https://github.com/ruby/rdoc/commit/7736d3a89c
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rdoc/generator/template/darkfish/css/rdoc.css | 35 |
1 files changed, 19 insertions, 16 deletions
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; |