summaryrefslogtreecommitdiff
path: root/_sass/components/_main.scss
diff options
context:
space:
mode:
Diffstat (limited to '_sass/components/_main.scss')
-rw-r--r--_sass/components/_main.scss28
1 files changed, 28 insertions, 0 deletions
diff --git a/_sass/components/_main.scss b/_sass/components/_main.scss
new file mode 100644
index 0000000..265c727
--- /dev/null
+++ b/_sass/components/_main.scss
@@ -0,0 +1,28 @@
+.main {
+ width: 100%;
+ max-width: map-get($layout, content-max-width);
+ padding: 0 map-get($spacers, 5);
+ margin: 0 auto;
+ @include media-breakpoint-down(lg) {
+ padding: 0 map-get($spacers, 4);
+ }
+ @include media-breakpoint-down(md) {
+ padding: 0 map-get($spacers, 3);
+ }
+}
+
+.has-aside {
+ .main {
+ max-width: map-get($layout, content-max-width) + map-get($layout, aside-width);
+ @include media-breakpoint-down(lg) {
+ max-width: map-get($layout, content-max-width);
+ }
+ }
+}
+
+.full-width {
+ .main {
+ width: 100%;
+ max-width: 100%;
+ }
+}