themes/docsy/assets/scss/_sidebar-toc.scss (52 lines of code) (raw):

// // Right side toc // .td-toc { border-left: 1px solid #eaecef; @supports (position: sticky) { position: sticky; top: 4rem; height: calc(100vh - 10rem); overflow-y: auto; } order: 2; padding-top: 0.75rem; padding-bottom: 1.5rem; vertical-align: top; a { display: block; font-weight: $font-weight-light; } li { list-style: none; display: block; line-height: 1.2; padding: 0.25rem 0; &:last-child{ padding-bottom: 0; } } li li { margin-left: 0.7rem; line-height: 1.2; padding: 0.25rem; &:last-child{ padding-bottom: 0; } } .td-page-meta { a { font-weight: $font-weight-medium; } } #TableOfContents { // Hugo's ToC is a mouthful, this can be used to style the top level h2 entries. > ul > li > ul > li > a {} a { color: $gray-600; &:hover { color: $blue; text-decoration: none; } } } ul { padding-left: 0; } }