Skip to content

Commit

Permalink
Merge pull request #874 from nobu/summary-style
Browse files Browse the repository at this point in the history
Use the custom style `details summary` only in `nav-section`
  • Loading branch information
nobu authored Mar 20, 2022
2 parents 3beb6d6 + 7736d3a commit 27ef092
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 27ef092

Please sign in to comment.