Sha256: 84a19e98bef71b326507b5ce18dcccae0c4d8a6a308705e3a8a3b5b2b778b308

Contents?: true

Size: 1.95 KB

Versions: 1

Compression:

Stored size: 1.95 KB

Contents

ul.toc {
  display: block;
  margin: 0;
  list-style-type: none;
  & > li {
    margin: .1rem 0;
    &.active {
      a {
        background-color: $main-color-3;
        @include link-colors($main-color-1);
      }
    }
  }

  a {
    display: inline-block;
    padding: .2rem .8rem .2rem .8rem;
    border-radius: map-get($base, border-radius);
    text-decoration: none !important;
    @include link-colors($text-color);
    @include hover() {
      background-color: $main-color-3;
    }
  }

  .toc-h1 {
    @include split-line(bottom);
    padding: .8rem 0 .3rem 0;
    margin-bottom: .6rem;
    &, a {
      @include link-colors($text-color-d);
    }
  }
  .toc-h1,
  .toc-h2 {
    &, a {
      font-weight: map-get($base, font-weight-bold);
    }
  }
  .toc-h3,
  .toc-h4,
  .toc-h5,
  .toc-h6 {
    &, a {
      font-weight: map-get($base, font-weight);
    }
  }
  .toc-h5,
  .toc-h6 {
    &, a {
      @include link-colors($text-color-l);
    }
  }
  .toc-h3 {
    margin-left: 1rem;
  }
  .toc-h4 {
    margin-left: 2rem;
  }
  .toc-h5, .toc-h6 {
    margin-left: 3rem;
  }

  .toc-h1 {
    &, a {
      font-size: map-get($base, font-size);
      line-height: map-get($base, line-height-lg);
    }
  }
  .toc-h2 {
    &, a {
      font-size: map-get($base, font-size-sm);
      line-height: map-get($base, line-height);
    }
  }
  .toc-h3,
  .toc-h4,
  .toc-h5,
  .toc-h6 {
    &, a {
      font-size: map-get($base, font-size-xs);
      line-height: map-get($base, line-height-xs);
    }
  }
}

ul.toc--navigator {
  & > li {
    &.active {
      a {
        background-color: transparent;
        @include link-colors($main-color-1);
        @include split-line(left, 4px, $main-color-1);
        margin-left: -4px;
      }
    }
  }

  .toc-h2,
  .toc-h3,
  .toc-h4 {
    &, a {
      @include link-colors($text-color-l);
    }
  }

  a {
    padding: 0 0 0 .5rem;
    margin: .2rem 0;
    border-radius: 0;
    @include hover() {
      background-color: transparent;
    }
  }
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jekyll-text-theme-2.0.1 _sass/common/components/_toc.scss