This repository has been archived on 2022-02-28. You can view files and clone it, but cannot push or open issues or pull requests.
frontend-styles/src/scss/_container.scss

23 lines
635 B
SCSS

// Container
.container {
max-width: $container-page-width;
// On desktop screens, when screen size is greater than the actual width of the page
// then content is centred instead of adding gutters
margin-left: auto;
margin-right: auto;
// As soon as the viewport is less than page width plus both gutters,
// then add gutter spacing to container
@include mq.mq($until: $container-page-width + $gutter * 2) {
margin-left: $gutter-half;
margin-right: $gutter-half;
}
}
// Full width container
.full-width-container {
max-width: 100%;
margin-left: $gutter-half;
margin-right: $gutter-half;
}