Sha256: 6ae561322465e4eff4056f221a489099f1b2e853cbc14cfc14fb6251ddbd2469

Contents?: true

Size: 1.94 KB

Versions: 6

Compression:

Stored size: 1.94 KB

Contents

.header #tabs {
  width: $header-width;
  height: calc(100% - 60px);
  position: fixed;
  top: 60px;
  background-color: $sidebar-background;
  border-right: 1px solid $sidebar-border-color;
  z-index: 1;
  overflow: auto;

  @media screen and (min-width: $sm-width) {
    left: - $header-width;
  }

  @media screen and (min-width: $md-width) {
    left: 0px;
  }

  @media screen and (min-width: $lg-width) {
    width: $lg-header-width;
  }

  li {
    width: 100%;
    font-size: 14px;
    line-height: 38px;
    cursor: pointer;

    a {
      width: 100%;
      height: 100%;
      display: inline-block;
      color: $text-color;
      padding: 0 20px;

      &:hover {
        background-color: $sidebar-item-hover-background;
      }
    }

    &.current {
      a {
        color: $primary-color;
      }
    }

    &.has_nested {
      & > a:nth-child(1) {
        position: relative;

        &:after {
          @include icon("\f0d7");
          display: inline;
          position: absolute;
          top: 50%;
          right: 20px;
          @include transform(translateY(-50%));
          color: $text-color;
        }
      }

      ul {
        border-top: 1px solid $sidebar-border-color;
        border-bottom: 1px solid $sidebar-border-color;
        background-color: $body-background;
        padding: 10px 0;
        cursor: auto;
        display: none;

        a {
          padding: 0px 15px 0px 35px;
          color: $text-color;

          &:hover {
            background-color: $sidebar-nested-item-hover-background;
          }

          @media screen and (min-width: $lg-width) {
            padding: 0px 15px 0px 40px;
          }
        }

        .current a {
          color: $primary-color;
        }
      }

      &.open, &.current {
        & > a:nth-child(1) {
          position: relative;

          &:after {
            @include icon("\f0d8");
          }
        }

        ul {
          display: block;
        }
      }
    }
  }
}

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
arctic_admin-1.2.5 app/assets/stylesheets/layouts/_sidebar.scss
arctic_admin-1.2.4 app/assets/stylesheets/layouts/_sidebar.scss
arctic_admin-1.2.3 app/assets/stylesheets/layouts/_sidebar.scss
arctic_admin-1.2.2 app/assets/stylesheets/layouts/_sidebar.scss
arctic_admin-1.2.1 app/assets/stylesheets/layouts/_sidebar.scss
arctic_admin-1.2.0 app/assets/stylesheets/layouts/_sidebar.scss