Sha256: dfff2bd35d05ba4408752b3f02e191d4ec8cd085d6eb6eab25a61588d196ef43

Contents?: true

Size: 1.62 KB

Versions: 4

Compression:

Stored size: 1.62 KB

Contents

//
// Main nav, breadcrumb, etc...
//
.navigation-list {
  padding: 0;
  margin-top: 0;
  margin-bottom: 0;
  list-style: none;
}

.navigation-list-child-list {
  padding-left: $sp-3;
  list-style: none;

  .navigation-list-link {
    color: $nav-child-link-color;
  }

  .navigation-list-item {
    position: relative;

    &::before {
      position: absolute;
      margin-top: 0.3em;
      margin-left: -0.8em;
      color: rgba($body-text-color, 0.3);
      content: "- ";
    }

    &.active {
      &::before {
        color: $body-text-color;
      }
    }
  }
}

.navigation-list-item {
  @include fs-4;
  margin: 0;

  @include mq(md) {
    @include fs-3;
  }

  .navigation-list-child-list {
    display: none;
  }

  &.active {
    .navigation-list-child-list {
      display: block;
    }
  }
}

.navigation-list-link {
  display: block;
  padding-top: $sp-1;
  padding-bottom: $sp-1;

  &.active {
    font-weight: 600;
    color: $body-heading-color;
    text-decoration: none;
  }
}

// Small screen nav

.main-nav {
  display: none;

  &.nav-open {
    display: block;
  }
  @include mq(md) {
    display: block;
  }
}

.aux-nav {
  align-self: center;
}

// Breadcrumb nav
.breadcrumb-nav {
  @include mq(md) {
    margin-top: -$sp-4;
  }
}

.breadcrumb-nav-list {
  padding-left: 0;
  margin-bottom: $sp-3;
  list-style: none;
}

.breadcrumb-nav-list-item {
  display: table-cell;
  @include fs-2;

  &::before {
    display: none;
  }

  &::after {
    display: inline-block;
    margin-right: $sp-2;
    margin-left: $sp-2;
    color: $grey-dk-000;
    content: "/";
  }

  &:last-child {
    &::after {
      content: "";
    }
  }
}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
just-the-docs-0.2.9 _sass/navigation.scss
just-the-docs-0.2.8 _sass/navigation.scss
just-the-docs-0.2.7 _sass/navigation.scss
just-the-docs-0.2.6 _sass/navigation.scss