Skip to content

Commit

Permalink
improve new sidebar & interactive TOC styling
Browse files Browse the repository at this point in the history
- update the arrow icon to open the interactive TOC
- minor style improvements & fixes
  • Loading branch information
jothepro committed Aug 29, 2022
1 parent fe37c76 commit 7221204
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions doxygen-awesome.css
Original file line number Diff line number Diff line change
Expand Up @@ -1054,6 +1054,12 @@ div.toc h3 {
div.toc li {
padding: 0;
background: none;
line-height: var(--toc-font-size);
margin: var(--toc-font-size) 0 0 0;
}

div.toc li::before {
display: none;
}

div.toc ul {
Expand All @@ -1075,15 +1081,6 @@ div.toc li a.aboveActive {
}


div.toc ul li.level1 {
margin: 0;
}

div.toc ul li.level2, div.toc ul li.level3 {
margin-top: 0;
}


@media screen and (max-width: 999px) {
div.contents .toc {
max-height: 45vh;
Expand Down Expand Up @@ -1112,6 +1109,7 @@ div.toc ul li.level2, div.toc ul li.level3 {
background-color: var(--toc-background);
margin: 0;
padding: var(--spacing-large) 0;
display: block;
}

div.contents .toc.interactive > h3::before {
Expand All @@ -1120,11 +1118,10 @@ div.toc ul li.level2, div.toc ul li.level3 {
height: 0;
border-left: 4px solid transparent;
border-right: 4px solid transparent;
border-top: 7px solid var(--primary-color);
margin-top: 5px;
display: block;
float: left;
border-top: 5px solid var(--primary-color);
display: inline-block;
margin-right: var(--spacing-small);
margin-bottom: calc(var(--navigation-font-size) / 4);
transform: rotate(-90deg);
transition: transform 0.25s ease-out;
}
Expand Down

0 comments on commit 7221204

Please sign in to comment.