Skip to content

Commit 76222c0

Browse files
committed
Use the custom style details summary only in nav-section
1 parent 3a8d6df commit 76222c0

File tree

1 file changed

+19
-16
lines changed
  • lib/rdoc/generator/template/darkfish/css

1 file changed

+19
-16
lines changed

lib/rdoc/generator/template/darkfish/css/rdoc.css

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,25 @@ dl.note-list dt {
309309
background: url(../images/arrow_up.png) no-repeat right center;
310310
}
311311

312+
.nav-section details summary {
313+
display: block;
314+
}
315+
316+
.nav-section details summary::-webkit-details-marker {
317+
display: none;
318+
}
319+
320+
.nav-section details summary:before {
321+
content: "";
322+
}
323+
324+
.nav-section details summary:after {
325+
content: " \25B6"; /* BLACK RIGHT-POINTING TRIANGLE */
326+
}
327+
.nav-section details[open] > summary:after {
328+
content: " \25BD"; /* WHITE DOWN-POINTING TRIANGLE */
329+
}
330+
312331
/* @end */
313332

314333
/* @group Documentation Section */
@@ -484,22 +503,6 @@ main header h3 {
484503

485504
/* @group Method Details */
486505

487-
details summary {
488-
display: block;
489-
}
490-
details summary::-webkit-details-marker {
491-
display: none;
492-
}
493-
details summary:before {
494-
content: "";
495-
}
496-
details summary:after {
497-
content: " ▶";
498-
}
499-
details[open] > summary:after {
500-
content: " ▽";
501-
}
502-
503506
main .method-source-code {
504507
max-height: 0;
505508
overflow: hidden;

0 commit comments

Comments
 (0)