github.com/e154/smart-home@v0.17.2-0.20240311175135-e530a6e5cd45/doc/themes/docsy/assets/scss/_sidebar-toc.scss (about)

     1  //
     2  // Right side toc
     3  //
     4  .td-sidebar-toc {
     5      border-left: 1px solid $border-color;
     6  
     7      @supports (position: sticky) {
     8          position: sticky;
     9          top: 4rem;
    10          height: calc(100vh - 10rem);
    11          overflow-y: auto;
    12      }
    13  
    14      order: 2;
    15      padding-top: 0.75rem;
    16      padding-bottom: 1.5rem;
    17      vertical-align: top;
    18  
    19  }
    20  
    21  .td-page-meta {
    22      a {
    23          display: block;
    24          font-weight: $font-weight-medium;
    25      }
    26  }
    27  
    28  .td-toc {
    29  
    30      a {
    31          display: block;
    32          font-weight: $font-weight-light;
    33          padding-bottom: .25rem;
    34      }
    35  
    36      li {
    37          list-style: none;
    38          display: block;
    39      }
    40  
    41      li li {
    42          margin-left: 0.5rem;
    43      }
    44  
    45      #TableOfContents {
    46          // Hugo's ToC is a mouthful, this can be used to style the top level h2 entries.
    47          > ul > li > ul > li > a {}
    48  
    49          a {
    50              color: $gray-600;
    51  
    52              &:hover {
    53                  color: $blue;
    54                  text-decoration: none;
    55              }
    56          }
    57      }
    58  
    59      ul {
    60          padding-left: 0;
    61      }
    62  }