Sha256: ae1ebc778bc6221d7ac17f334f4f74e49a25a06e2c6d3d1d1a5ccbe16e0e0503

Contents?: true

Size: 1.5 KB

Versions: 13

Compression:

Stored size: 1.5 KB

Contents

// Hamburger
// ==================================================
.hamburger {
  padding: $hamburger-padding-y $hamburger-padding-x;
  display: inline-block;
  cursor: pointer;

  transition-property: opacity, filter;
  transition-duration: $hamburger-hover-transition-duration;
  transition-timing-function: $hamburger-hover-transition-timing-function;

  // Normalize (<button>)
  font: inherit;
  color: inherit;
  text-transform: none;
  background-color: transparent;
  border: 0;
  margin: 0;
  overflow: visible;

  &:hover {
    @if $hamburger-hover-use-filter == true {
      filter: $hamburger-hover-filter;
    }
    @else {
      opacity: $hamburger-hover-opacity;
    }
  }
}

.hamburger-box {
  width: $hamburger-layer-width;
  height: $hamburger-layer-height * 3 + $hamburger-layer-spacing * 2;
  display: inline-block;
  position: relative;
}

.hamburger-inner {
  display: block;
  top: 50%;
  margin-top: $hamburger-layer-height / -2;

  &,
  &::before,
  &::after {
    width: $hamburger-layer-width;
    height: $hamburger-layer-height;
    background-color: $hamburger-layer-color;
    border-radius: $hamburger-layer-border-radius;
    position: absolute;
    transition-property: transform;
    transition-duration: 0.15s;
    transition-timing-function: ease;
  }

  &::before,
  &::after {
    content: "";
    display: block;
  }

  &::before {
    top: ($hamburger-layer-spacing + $hamburger-layer-height) * -1;
  }

  &::after {
    bottom: ($hamburger-layer-spacing + $hamburger-layer-height) * -1;
  }
}

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
krad-3.7.5 _sass/hamburgers/_base.scss
krad-3.7.4 _sass/hamburgers/_base.scss
krad-3.7.3 _sass/hamburgers/_base.scss
krad-3.7.2 _sass/hamburgers/_base.scss
krad-3.7.1 _sass/hamburgers/_base.scss
krad-3.7.0 _sass/hamburgers/_base.scss
krad-3.6.0 _sass/hamburgers/_base.scss
hamburgers-0.9.3 _sass/hamburgers/_base.scss
hamburgers-0.9.1 _sass/hamburgers/_base.scss
hamburgers-0.9.0 _sass/hamburgers/_base.scss
hamburgers-0.8.1 _sass/hamburgers/_base.scss
hamburgers-0.7.0 _sass/hamburgers/_base.scss
hamburgers-0.6.0 _sass/hamburgers/_base.scss