Sha256: 8fa71b066da7da676ae8c29dadb972e2f5204f88cacc777712ebbdde7e501ffa

Contents?: true

Size: 964 Bytes

Versions: 2

Compression:

Stored size: 964 Bytes

Contents

.toc-title {
  font-size: 16px;
  text-align: left;
}

.toc-div {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: calc(#{$top-nav-space} + #{$sticky-div-pad}) !important; 
}

.toc,
.toc ul {
  font-size: 12px;
  list-style: none;
  padding: 0;
}

.toc {
  max-height: 80vh;
  overflow-y: auto;

  a.active {
    color: $site-secondary;
  }

  a {
    display: block;
    text-decoration: none;

    color: $toc-text-color;

    &:hover,
    &:focus {
      font-weight: bold;
      color: $link-hover-color !important;
    }
  }

  // indentations 

  li > a {
    padding-left: .5em;
  }
  ul li > a {
    padding-left: 1.5em;
  }
  ul li ul li > a {
    padding-left: 2.5em;
  }
  ul li ul li ul li > a {
    padding-left: 3em;
  }
  ul li ul li ul li ul li > a {
    padding-left: 3.5em;
  }
}

@media only screen and (max-width: $md) {
  h3.toc-title {
    text-align: center;
  }
  .toc {
    padding-left: 15px !important;
  }
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jekyll-theme-cadre-0.1.20 _sass/cadre/_toc.scss
jekyll-theme-cadre-0.1.19 _sass/cadre/_toc.scss