Skip to content

Commit

Permalink
toc hover arrow
Browse files Browse the repository at this point in the history
  • Loading branch information
choldgraf committed May 14, 2020
1 parent 59f67c0 commit 4092513
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion sphinx_book_theme/static/sphinx-book-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -543,10 +543,23 @@ button.topbarbtn img {
max-height: 100vh;
opacity: 1;
}

// Hide the arrow when we display the toc
.tocsection:after {
opacity: 0;
}
}

.tocsection {
padding: .5rem 0 .5rem 1rem !important
padding: .5rem 0 .5rem 1rem !important;

&:after {
content: "\f107";
font-family: "Font Awesome 5 Free";
font-weight: 900;
padding-left: .5em;
transition: opacity .3s ease;
}
}

.toc-entry a {
Expand Down

0 comments on commit 4092513

Please sign in to comment.