File tree Expand file tree Collapse file tree 1 file changed +29
-3
lines changed Expand file tree Collapse file tree 1 file changed +29
-3
lines changed Original file line number Diff line number Diff line change @@ -178,18 +178,44 @@ const articleDetailsStyle = css({
178178 "&[open] > summary::before" : {
179179 content : "'expand_more'" ,
180180 } ,
181- // nested lists: give visual indentation for hierarchy
181+ // nested lists: draw vertical guide lines inside the padded area
182182 "& ul" : {
183183 listStyle : "none" ,
184184 margin : 0 ,
185- paddingLeft : 0 ,
185+ paddingLeft : getSpace ( 1 ) ,
186186 } ,
187187 "& ul ul" : {
188- paddingLeft : getSpace ( 4 ) ,
188+ position : "relative" ,
189+ paddingLeft : getSpace ( 3 ) ,
190+ } ,
191+ "& ul ul::before" : {
192+ content : "''" ,
193+ position : "absolute" ,
194+ left : getSpace ( 3 ) ,
195+ top : 0 ,
196+ bottom : 0 ,
197+ width : 1 ,
198+ backgroundColor : Colors . gray20 ,
199+ } ,
200+ "& ul ul > li" : {
201+ paddingLeft : getSpace ( 1.5 ) ,
189202 } ,
190203 "& ul ul ul" : {
204+ position : "relative" ,
191205 paddingLeft : getSpace ( 4 ) ,
192206 } ,
207+ "& ul ul ul::before" : {
208+ content : "''" ,
209+ position : "absolute" ,
210+ left : getSpace ( 3 ) ,
211+ top : 0 ,
212+ bottom : 0 ,
213+ width : 1 ,
214+ backgroundColor : Colors . gray20 ,
215+ } ,
216+ "& ul ul ul > li" : {
217+ paddingLeft : getSpace ( 1.5 ) ,
218+ } ,
193219} ) ;
194220
195221const articleSummaryStyle = css ( {
You can’t perform that action at this time.
0 commit comments