Sha256: 98e672468b703f882ac2fa21baf5ded6eedff16344f81f5c215bcfc9ef335388

Contents?: true

Size: 1.97 KB

Versions: 356

Compression:

Stored size: 1.97 KB

Contents

// Base class
//
// Kickstart any navigation component with a set of style resets. Works with
// `<nav>`s or `<ul>`s.

.nav {
  display: flex;
  flex-wrap: wrap;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

.nav-link {
  display: block;
  padding: $nav-link-padding-y $nav-link-padding-x;

  @include hover-focus {
    text-decoration: none;
  }

  // Disabled state lightens text
  &.disabled {
    color: $nav-link-disabled-color;
  }
}

//
// Tabs
//

.nav-tabs {
  border-bottom: $nav-tabs-border-width solid $nav-tabs-border-color;

  .nav-item {
    margin-bottom: -$nav-tabs-border-width;
  }

  .nav-link {
    border: $nav-tabs-border-width solid transparent;
    @include border-top-radius($nav-tabs-border-radius);

    @include hover-focus {
      border-color: $nav-tabs-link-hover-border-color;
    }

    &.disabled {
      color: $nav-link-disabled-color;
      background-color: transparent;
      border-color: transparent;
    }
  }

  .nav-link.active,
  .nav-item.show .nav-link {
    color: $nav-tabs-link-active-color;
    background-color: $nav-tabs-link-active-bg;
    border-color: $nav-tabs-link-active-border-color;
  }

  .dropdown-menu {
    // Make dropdown border overlap tab border
    margin-top: -$nav-tabs-border-width;
    // Remove the top rounded corners here since there is a hard edge above the menu
    @include border-top-radius(0);
  }
}


//
// Pills
//

.nav-pills {
  .nav-link {
    @include border-radius($nav-pills-border-radius);
  }

  .nav-link.active,
  .show > .nav-link {
    color: $nav-pills-link-active-color;
    background-color: $nav-pills-link-active-bg;
  }
}


//
// Justified variants
//

.nav-fill {
  .nav-item {
    flex: 1 1 auto;
    text-align: center;
  }
}

.nav-justified {
  .nav-item {
    flex-basis: 0;
    flex-grow: 1;
    text-align: center;
  }
}


// Tabbable tabs
//
// Hide tabbable panes to start, show them when `.active`

.tab-content {
  > .tab-pane {
    display: none;
  }
  > .active {
    display: block;
  }
}

Version data entries

356 entries across 354 versions & 32 rubygems

Version Path
solidus_backend-3.2.5 vendor/assets/stylesheets/solidus_admin/bootstrap/_nav.scss
solidus_backend-3.2.4 vendor/assets/stylesheets/solidus_admin/bootstrap/_nav.scss
solidus_backend-3.2.3 vendor/assets/stylesheets/solidus_admin/bootstrap/_nav.scss
solidus_backend-3.1.8 vendor/assets/stylesheets/solidus_admin/bootstrap/_nav.scss
solidus_backend-3.0.8 vendor/assets/stylesheets/solidus_admin/bootstrap/_nav.scss
solidus_backend-3.2.2 vendor/assets/stylesheets/solidus_admin/bootstrap/_nav.scss
solidus_backend-3.2.1 vendor/assets/stylesheets/solidus_admin/bootstrap/_nav.scss
solidus_backend-3.2.0 vendor/assets/stylesheets/solidus_admin/bootstrap/_nav.scss
solidus_backend-3.2.0.alpha vendor/assets/stylesheets/solidus_admin/bootstrap/_nav.scss
solidus_backend-3.0.7 vendor/assets/stylesheets/solidus_admin/bootstrap/_nav.scss
solidus_backend-2.11.17 vendor/assets/stylesheets/solidus_admin/bootstrap/_nav.scss
solidus_backend-3.1.7 vendor/assets/stylesheets/solidus_admin/bootstrap/_nav.scss
solidus_backend-2.11.16 vendor/assets/stylesheets/solidus_admin/bootstrap/_nav.scss
solidus_backend-3.0.6 vendor/assets/stylesheets/solidus_admin/bootstrap/_nav.scss
solidus_backend-3.1.6 vendor/assets/stylesheets/solidus_admin/bootstrap/_nav.scss
solidus_backend-2.11.15 vendor/assets/stylesheets/solidus_admin/bootstrap/_nav.scss
card-mod-bootstrap-0.14.2 vendor/bootstrap/scss/_nav.scss
linaro-jekyll-theme-5.1.0 _sass/bootstrap/_nav.scss
linaro-jekyll-theme-5.0.1 _sass/bootstrap/_nav.scss
linaro-jekyll-theme-5.0.0 _sass/bootstrap/_nav.scss