sass-site/source/assets/css/layout/_holy-grail.scss

56 lines
1016 B
SCSS
Raw Normal View History

2018-12-27 19:07:00 -08:00
@each $breakpoint,
$size in $sl-breakpoints {
$prefix: if(($breakpoint == 'none'), '', '#{$breakpoint}-');
2018-10-23 15:06:39 -07:00
2018-12-27 19:07:00 -08:00
@include sl-breakpoint-set($breakpoint,
$size) {
2018-10-26 23:37:10 -07:00
2018-12-27 19:07:00 -08:00
.sl-l-#{$prefix}holy-grail {
2018-10-23 15:06:39 -07:00
2018-12-27 19:07:00 -08:00
&,
&__body { display: flex; }
2018-12-27 16:31:28 -08:00
2018-12-27 19:07:00 -08:00
flex-direction: column;
height: 100%;
2018-12-27 16:31:28 -08:00
2018-12-27 19:07:00 -08:00
&__header,
&__footer { flex: none; }
2018-12-27 16:31:28 -08:00
2018-12-27 19:07:00 -08:00
&__body {
flex: 1 0 auto;
flex-direction: row;
margin: {
right: -2rem;
left: -2rem;
};
}
2018-12-27 16:31:28 -08:00
2018-12-27 19:07:00 -08:00
&__main,
&__navigation,
&__complementary {
padding: {
right: sl-px-to-rem(32px);
left: sl-px-to-rem(32px);
};
}
2018-12-27 16:31:28 -08:00
2018-12-27 19:07:00 -08:00
&__main { flex: 1; }
2018-12-27 16:31:28 -08:00
2018-12-27 19:07:00 -08:00
&__navigation {
2018-12-28 15:22:59 -08:00
flex: 0 0 sl-px-to-rem(240px);
2018-12-27 19:07:00 -08:00
order: -1;
}
2018-10-23 15:06:39 -07:00
2018-12-27 19:07:00 -08:00
&__complementary {
order: 1;
flex: 0 0 sl-px-to-rem(480px);
2018-12-27 17:02:45 -08:00
2018-12-27 19:07:00 -08:00
&--contents {
2018-12-28 15:22:59 -08:00
flex: 0 0 sl-px-to-rem(240px);
2018-12-27 19:07:00 -08:00
order: -1;
}
2018-12-27 17:02:45 -08:00
}
}
2018-10-23 15:06:39 -07:00
}
}