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

56 lines
1016 B
SCSS
Raw Normal View History

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