Sha256: 7a09cd74db3550431567a02c5bfab721d3b80980272553f861682d743024ff23

Contents?: true

Size: 1.12 KB

Versions: 8

Compression:

Stored size: 1.12 KB

Contents

$icon-to-text-alignment: -3px;
$cart-count-horizontal-position: -3px;
$cart-count-vertical-position: -8px;
$mobile-icon-size: 21px;

//style the cart and help icon the same + override bootstrap
.navbar-nav > li > a {
  &.navigation-user_info-cart,
  &.navigation-user_info-help_link {
    float: left; // ensures proper cart with count display in IE
    margin-top: $icon-to-text-alignment;
    padding-left: $padding-small-horizontal * 2;
    padding-right: $padding-small-horizontal * 2;
    background-color: inherit;
    @include transition($navigation-link-hover-transition);

    &:hover .fa {
      color: $color-secondary;
      @include transition($navigation-link-hover-transition);
    }

    &.navigation-user_info-cart-with_count {
      @media (max-width: $grid-float-breakpoint) {
        padding-right: 0;
      }
    }
  }
}

.navigation-user_info-cart-count {
  display: block;
  float: right;
  text-align: center;
  margin-top: $cart-count-vertical-position;
  margin-left: $cart-count-horizontal-position;
  padding-top: 1px; // shim for alignment
  width: $mobile-icon-size;
  height: $mobile-icon-size;
  border-radius: 50%;
}

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
forever_style_guide-3.4.5 app/assets/stylesheets/forever_style_guide/modules/_nav-cart.scss
forever_style_guide-3.4.4 app/assets/stylesheets/forever_style_guide/modules/_nav-cart.scss
forever_style_guide-3.4.3 app/assets/stylesheets/forever_style_guide/modules/_nav-cart.scss
forever_style_guide-3.4.2 app/assets/stylesheets/forever_style_guide/modules/_nav-cart.scss
forever_style_guide-3.4.1 app/assets/stylesheets/forever_style_guide/modules/_nav-cart.scss
forever_style_guide-3.4 app/assets/stylesheets/forever_style_guide/modules/_nav-cart.scss
forever_style_guide-3.3.6 app/assets/stylesheets/forever_style_guide/modules/_nav-cart.scss
forever_style_guide-3.3.5 app/assets/stylesheets/forever_style_guide/modules/_nav-cart.scss