Skip to content

Commit

Permalink
feat: use primary color for highlighted items in table of contents (f…
Browse files Browse the repository at this point in the history
…acebook#1628)

Currently the items in table of contents are highlighted as bold based on items being
viewed on the screen or as the user scrolls up/down on a page. Added the `primaryColor`
of the site's configuration to make the current section being viewed standout more
in the table of content.

closes facebook#1608
  • Loading branch information
parkas2018 authored and jamesgeorge007 committed Jul 3, 2019
1 parent 15eb8f2 commit aa8eda3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/docusaurus-1.x/lib/static/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -1979,6 +1979,7 @@ input::placeholder {

.onPageNav .toc-headings > li > a.active {
font-weight: 600;
color: $primaryColor;
}

.onPageNav ul {
Expand Down

0 comments on commit aa8eda3

Please sign in to comment.