Sha256: b0add0f99bb8a99c2e83957919c2b6222942fe3b810042d4ba1ff3967f238160

Contents?: true

Size: 945 Bytes

Versions: 1

Compression:

Stored size: 945 Bytes

Contents

.c-toc {
  --db-toc-spacing: 1rem;
  font-size: small;
  border: 1px solid var(--db-border-color);
  border-radius: $border-radius-object;
  display: inline-block;
  padding: var(--db-toc-spacing) 1rem;
  width: 100%;

  &__header {
    border-bottom: 1px dashed var(--db-border-color-inactive);;
    color: var(--db-text-color-inactive);
    font-weight: bold;
    margin-bottom: var(--db-toc-spacing);
    text-align: center;
    padding-bottom: var(--db-toc-spacing);
  }

  &__item {
    margin-left: 1rem;
    line-height: 1.8rem;

    a {
      color: var(--db-text-color-inactive);

      &.is-active {
        color: var(--db-text-color-active);
        font-weight: bold;
      }

      &:hover {
        text-decoration: underline;
      }
    }
  }

  ol,
  ul {
    margin: 0 !important;
    margin-left: 1rem !important;
  }

  
  @media #{$wide-screen} {
    display: block;
    padding: .5rem;
    --db-toc-spacing: .5rem;
  }

}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
databook-theme-0.1.2 _sass/components/_toc.scss