The .container
class can be used in any context, but mostly as a direct child of either:
.nav
.hero
.section
.footer
This is how the container will behave:
- on mobile and tablet {% include bp/touch.html %}, it will have a margin of 24px on each side.
- on desktop {% include bp/desktop.html %}, it will have a maximum width of 960px and will be horizontally centered.
- on widescreen {% include bp/widescreen.html %}, it will have a maximum width of 1152px.
- on fullhd {% include bp/fullhd.html %}, it will have a maximum width of 1344px.
The $gap
variable has a default value of 24px
but can be modified.
The values 960, 1152 and 1344 have been chosen because they are divisible by both 12 and 16.