_position.scss 543 B

12345678910111213141516171819202122232425262728293031323334
  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-footer {
  15. .footer{
  16. position: fixed;
  17. right: 0;
  18. bottom: 0;
  19. left: 0;
  20. z-index: $zindex-fixed;
  21. }
  22. }
  23. .sticky-top {
  24. @supports (position: sticky) {
  25. position: sticky;
  26. top: 0;
  27. z-index: $zindex-sticky;
  28. }
  29. }