// Foundation for Sites by ZURB
// foundation.zurb.com
// Licensed under MIT Open Source

@mixin foundation-sticky {
  .sticky-container {
    position: relative;

    // &.right {
    //   left: 100%;
    // }
  }

  .sticky {
    position: absolute;
    z-index: 0;
    transform: translate3d(0,0,0);
    // margin-top: 1em;
  }

  .sticky.is-stuck {
    position: fixed;
    z-index: 5;

    &.is-at-top {
      top: 0;
      // bottom: auto;
      // margin-top: 1em !important;
    }

    &.is-at-bottom {
      bottom: 0;
      // top: auto;
      // margin-bottom: 1em;
    }
  }

  .sticky.is-anchored {
    position: absolute;
    left: auto;
    right: auto;

    &.is-at-bottom {
      bottom: 0;
      // top: 150%;
      // margin-bottom: 1em;
    }
  }
}

// Foundation for Sites by ZURB
// foundation.zurb.com
// Licensed under MIT Open Source

@mixin foundation-sticky {
  .sticky-container {
    position: relative;
  }

  .sticky {
    position: absolute;
    z-index: 0;
    transform: translate3d(0,0,0);
  }

  .sticky.is-stuck {
    position: fixed;
    z-index: 5;

    &.is-at-top {
      top: 0;
    }

    &.is-at-bottom {
      bottom: 0;
    }
  }

  .sticky.is-anchored {
    position: absolute;
    left: auto;
    right: auto;

    &.is-at-bottom {
      bottom: 0;
    }
  }
}

Clean up Sticky CSS by removing unused code
Clean up Sticky CSS by removing unused code
