File tree Expand file tree Collapse file tree 3 files changed +30
-1
lines changed
Expand file tree Collapse file tree 3 files changed +30
-1
lines changed Original file line number Diff line number Diff line change 2424 content : "" ;
2525 background : url (/img/icons/active_marker.min.svg);
2626 }
27+
28+ & .child-indicator > a ::before {
29+ content : "•" ;
30+ @apply absolute left-[3px ] top-0 text-gray-500;
31+ }
2732 }
2833 }
2934
3035 .sub--on {
3136 > h2 {
32- @apply mb-2;
37+ @apply mb-2 font-semibold ;
3338 }
3439
3540 ul {
Original file line number Diff line number Diff line change @@ -49,6 +49,18 @@ function setupNavCurrentLinkHandling() {
4949 }
5050 } ) ;
5151 } ) ;
52+
53+ // Add .has-children class to parent elements
54+ [ ...document . querySelectorAll ( '.docs_sidebar ul li' ) ] . forEach ( el => {
55+ if ( el . querySelector ( 'ul' ) ) {
56+ el . classList . add ( 'has-children' ) ;
57+ }
58+ } ) ;
59+
60+ // Add .child-indicator class to child elements
61+ [ ...document . querySelectorAll ( '.docs_sidebar ul ul li' ) ] . forEach ( el => {
62+ el . classList . add ( 'child-indicator' ) ;
63+ } ) ;
5264}
5365
5466function replaceBlockquotesWithCalloutsInDocs ( ) {
Original file line number Diff line number Diff line change @@ -32,5 +32,17 @@ class="lg:hidden"
3232 x-transition:leave =" duration-100 ease-in"
3333 x-cloak
3434 >
35+ <nav class =" bg-white shadow-lg" >
36+ <ul class =" space-y-2" >
37+ <li class =" has-children" >
38+ <a href =" #" class =" block px-4 py-2 text-gray-700" >Parent Item</a >
39+ <ul class =" pl-4 space-y-1" >
40+ <li class =" child-indicator" >
41+ <a href =" #" class =" block px-4 py-2 text-gray-700" >Child Item</a >
42+ </li >
43+ </ul >
44+ </li >
45+ </ul >
46+ </nav >
3547 </div >
3648</header >
You can’t perform that action at this time.
0 commit comments