_position.scss 484 B

1234567891011121314151617181920212223242526272829303132
  1. // stylelint-disable declaration-no-important
  2. // Common values
  3. @each $position in $positions {
  4. .position-#{$position} { position: $position !important; }
  5. }
  6. // Shorthand
  7. .fixed-top {
  8. position: fixed;
  9. top: 0;
  10. right: 0;
  11. left: 0;
  12. z-index: $zindex-fixed;
  13. }
  14. .fixed-bottom {
  15. position: fixed;
  16. right: 0;
  17. bottom: 0;
  18. left: 0;
  19. z-index: $zindex-fixed;
  20. }
  21. .sticky-top {
  22. @supports (position: sticky) {
  23. position: sticky;
  24. top: 0;
  25. z-index: $zindex-sticky;
  26. }
  27. }