Skip to content

Commit

Permalink
Docs table of contents list style fix (twbs#30176)
Browse files Browse the repository at this point in the history
* Fix missing bullets from table of contents top level

* Add .text-muted to toc for lighter bullets
  • Loading branch information
mdo authored and olsza committed Oct 3, 2020
1 parent 0d70ffc commit a19d5a9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions site/assets/scss/_toc.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,9 @@
border-left: .25em solid $gray-200;

> ul {
padding-left: .5rem;
margin-bottom: 0;
}

> ul > li {
display: block;
}

li ul li {
margin-bottom: .25rem;
list-style-type: disc;
Expand Down
2 changes: 1 addition & 1 deletion site/layouts/_default/docs.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ <h1 class="bd-title" id="content">{{ .Title | markdownify }}</h1>

{{ if (eq .Page.Params.toc true) }}
<strong class="d-block h3 mt-5 mb-3">On this page</strong>
<nav class="bd-toc mb-5" aria-label="Secondary navigation">
<nav class="bd-toc mb-5 text-muted" aria-label="Secondary navigation">
{{ .TableOfContents }}
</nav>
{{ end }}
Expand Down

0 comments on commit a19d5a9

Please sign in to comment.