@use "const";

@mixin fixed-top {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: const.$zindex-fixed;
}

@mixin fixed-bottom {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: const.$zindex-fixed;
}

@mixin sticky-top {
  @supports (position: sticky) {
    position: sticky;
    top: 0;
    z-index: const.$zindex-sticky;
  }
}

@mixin sticky-bottom {
  @supports (position: sticky) {
    position: sticky;
    bottom: 0;
    z-index: const.$zindex-sticky;
  }
}