Skip to content

Commit

Permalink
Use the custom style details summary only in nav-section
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Mar 20, 2022
1 parent 3beb6d6 commit 7736d3a
Showing 1 changed file with 19 additions and 16 deletions.
35 changes: 19 additions & 16 deletions lib/rdoc/generator/template/darkfish/css/rdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 7736d3a

Please sign in to comment.