website/_assets/stylesheets/bootstrap-custom/utilities/_position.scss

33 lines
526 B
SCSS
Raw Normal View History

// stylelint-disable declaration-no-important
// Common values
@each $position in $positions {
.position-#{$position} { position: $position !important; }
}
// Shorthand
2021-08-20 16:48:07 +02:00
// .fixed-top {
// position: fixed;
// top: 0;
// right: 0;
// left: 0;
// z-index: $zindex-fixed;
// }
2021-08-20 16:48:07 +02:00
// .fixed-bottom {
// position: fixed;
// right: 0;
// bottom: 0;
// left: 0;
// z-index: $zindex-fixed;
// }
.sticky-top {
@supports (position: sticky) {
position: sticky;
top: 0;
z-index: $zindex-sticky;
}
}