File tree Expand file tree Collapse file tree
docfx/templates/darkerfx/styles Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ // Collapse inherited members section
2+ document . addEventListener ( "DOMContentLoaded" , function ( ) {
3+ document . querySelectorAll ( "h3, h2" ) . forEach ( function ( heading ) {
4+ if ( heading . textContent . trim ( ) === "Inherited Members" ) {
5+ var list = heading . nextElementSibling ;
6+ if ( ! list ) return ;
7+
8+ heading . style . cursor = "pointer" ;
9+ heading . style . userSelect = "none" ;
10+
11+ var indicator = document . createElement ( "span" ) ;
12+ indicator . className = "inherited-toggle" ;
13+ indicator . textContent = " ▶" ;
14+ heading . appendChild ( indicator ) ;
15+
16+ list . style . display = "none" ;
17+
18+ heading . addEventListener ( "click" , function ( ) {
19+ var collapsed = list . style . display === "none" ;
20+ list . style . display = collapsed ? "" : "none" ;
21+ indicator . textContent = collapsed ? " ▼" : " ▶" ;
22+ } ) ;
23+ }
24+ } ) ;
25+ } ) ;
26+
127const sw = document . getElementById ( "switch-style" ) , b = document . body ;
228
329if ( sw && b ) {
You can’t perform that action at this time.
0 commit comments