Skip to content

Commit

Permalink
added depth-agnostic css to deal with arbitrary depth in toc
Browse files Browse the repository at this point in the history
  • Loading branch information
ayys committed Jun 1, 2020
1 parent 9429527 commit ae66dae
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions styles/readtheorg/css/readtheorg.css
Original file line number Diff line number Diff line change
Expand Up @@ -800,6 +800,45 @@ hr{
font-size: 100%;
margin-bottom:0.809em}

ul.nav > li ul {
display: none;
}

li.active {
background-color: #e3e3e3;
}

li.active>a {
color: black !important;
}

ul.nav>li.active a {
color: #404040 !important;
}

ul.nav>li.active li.active {
background-color: #c9c9c9;
}

ul.nav>li.active li.active>a {
color: black !important;
border-right:solid 1px #c9c9c9 !important;
font-weight: bold !important;
display: block !important;
}

ul.nav>li.active>a {
background-color: #fcfcfc;
color: black !important;
border-bottom:solid 1px #c9c9c9 !important; /* XXX Restrict it to 2nd level */
border-right:solid 1px #c9c9c9 !important;
font-weight: bold !important;
display: block !important;
}

li.active>ul {
display: inline !important;
}
/* ul.nav li ul li { */
/* display: none; */
/* } */
Expand Down

0 comments on commit ae66dae

Please sign in to comment.