Sha256: e3bcff53441ea3322040a20d482228b17d0a6b7f0b3eef19a1ee83a80078c499

Contents?: true

Size: 657 Bytes

Versions: 5

Compression:

Stored size: 657 Bytes

Contents

// Shorthand

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

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

// Responsive sticky top and bottom
@each $breakpoint in map-keys($grid-breakpoints) {
  @include media-breakpoint-up($breakpoint) {
    $infix: breakpoint-infix($breakpoint, $grid-breakpoints);

    .sticky#{$infix}-top {
      position: sticky;
      top: 0;
      z-index: $zindex-sticky;
    }

    .sticky#{$infix}-bottom {
      position: sticky;
      bottom: 0;
      z-index: $zindex-sticky;
    }
  }
}

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
nsit-jekyll-theme-0.1.0 _sass/bootstrap/scss/helpers/_position.scss
raikar11-0.1.3 _sass/bootstrap/scss/helpers/_position.scss
raikar11-0.1.2 _sass/bootstrap/scss/helpers/_position.scss
raikar11-0.1.1 _sass/bootstrap/scss/helpers/_position.scss
raikar11-0.1.0 _sass/bootstrap/scss/helpers/_position.scss