container.sass 886 B

1234567891011121314151617181920212223242526272829
  1. @import "../utilities/mixins"
  2. $container-offset: (2 * $gap) !default
  3. $container-max-width: $fullhd !default
  4. .container
  5. flex-grow: 1
  6. margin: 0 auto
  7. position: relative
  8. width: auto
  9. &.is-fluid
  10. max-width: none !important
  11. padding-left: $gap
  12. padding-right: $gap
  13. width: 100%
  14. +desktop
  15. max-width: $desktop - $container-offset
  16. +until-widescreen
  17. &.is-widescreen:not(.is-max-desktop)
  18. max-width: min($widescreen, $container-max-width) - $container-offset
  19. +until-fullhd
  20. &.is-fullhd:not(.is-max-desktop):not(.is-max-widescreen)
  21. max-width: min($fullhd, $container-max-width) - $container-offset
  22. +widescreen
  23. &:not(.is-max-desktop)
  24. max-width: min($widescreen, $container-max-width) - $container-offset
  25. +fullhd
  26. &:not(.is-max-desktop):not(.is-max-widescreen)
  27. max-width: min($fullhd, $container-max-width) - $container-offset