Sha256: 4143294dcd91b3cde9978ae3661cb63af48eaa1188d35776b3a3f52072066270

Contents?: true

Size: 1.65 KB

Versions: 39

Compression:

Stored size: 1.65 KB

Contents

.tabs {
  display: flex;
  margin: 1em 0;
  border-bottom: 1px solid $color-border;
  white-space: nowrap;

  &,
  ul {
    padding-left: 0;
    list-style: none;
  }

  a {
    padding: 1em;
  }

  @media print { display: none }
}

.tabs > li:not(.in-dropdown) {
  flex-grow: 0;
  flex-shrink: 0;

  // Move down one pixel to sit on top of the ul's border-bottom
  position: relative;
  top: 1px;

  > a {
    display: block;
    border: 1px solid $color-border;
    border-radius: 2px 2px 0 0;
    line-height: 1;
  }

  &:not(:first-child) > a {
    border-left: none;
  }

  &:not(.active) > a {
    background: $color-tbl-thead;
  }

  &.active > a,
  &.active:hover {
    background: white;
    border-bottom-color: white;
    color: $body-color;
  }

  &:not(.active):hover > a {
    background: darken($color-tbl-thead, 5%);
    color: $link-color;
  }
}

.tabs-overflowed.tabs > li:not(.tabs-dropdown) {
  flex-grow: 1;
  flex-shrink: 1;
}

.tabs-dropdown {
  flex-grow: 0;
  flex-shrink: 0;
  position: relative;

  .tabs:not(.tabs-overflowed) & {
    visibility: hidden;
  }

  > a {
    position: relative;
    background: white;
    z-index: 1;

    &:before {
      content: "\f107";
      font-family: FontAwesome;
      -webkit-font-smoothing: antialiased;
    }
  }

  &:hover > a {
    background: white;
  }

  &:not(:hover) ul {
    display: none;
  }

  ul {
    position: absolute;
    top: calc(100% - 1px);
    right: 0;
    z-index: 1;
  }
}

.tabs li.in-dropdown {
  a {
    display: block;
    border: 1px solid $color-border;
    background: white;
  }

  &:not(:first-child) a {
    border-top: none;
  }

  &:last-child a {
    border-radius: 0 0 3px 3px;
  }
}

Version data entries

39 entries across 39 versions & 2 rubygems

Version Path
solidus_backend-2.8.6 app/assets/stylesheets/spree/backend/components/_tabs.scss
solidus_backend-2.6.6 app/assets/stylesheets/spree/backend/components/_tabs.scss
solidus_backend-2.7.4 app/assets/stylesheets/spree/backend/components/_tabs.scss
solidus_backend-2.8.5 app/assets/stylesheets/spree/backend/components/_tabs.scss
solidus_backend-2.7.3 app/assets/stylesheets/spree/backend/components/_tabs.scss
solidus_backend-2.6.5 app/assets/stylesheets/spree/backend/components/_tabs.scss
solidus_backend-2.5.2 app/assets/stylesheets/spree/backend/components/_tabs.scss
solidus_backend-2.8.4 app/assets/stylesheets/spree/backend/components/_tabs.scss
solidus_backend-2.8.3 app/assets/stylesheets/spree/backend/components/_tabs.scss
solidus_backend-2.7.2 app/assets/stylesheets/spree/backend/components/_tabs.scss
solidus_backend-2.6.4 app/assets/stylesheets/spree/backend/components/_tabs.scss
solidus_backend-2.8.2 app/assets/stylesheets/spree/backend/components/_tabs.scss
solidus_backend-2.8.1 app/assets/stylesheets/spree/backend/components/_tabs.scss
solidus_backend-2.5.1 app/assets/stylesheets/spree/backend/components/_tabs.scss
solidus_backend-2.6.3 app/assets/stylesheets/spree/backend/components/_tabs.scss
solidus_backend-2.8.0 app/assets/stylesheets/spree/backend/components/_tabs.scss
solidus_backend-2.7.1 app/assets/stylesheets/spree/backend/components/_tabs.scss
solidus_backend-2.6.2 app/assets/stylesheets/spree/backend/components/_tabs.scss
solidus_backend_devise_token_auth-2.8.0.alpha.14 app/assets/stylesheets/spree/backend/components/_tabs.scss
solidus_backend_devise_token_auth-2.8.0.alpha.13 app/assets/stylesheets/spree/backend/components/_tabs.scss