sass-site/source/assets/sass/layout/_holy-grail.scss
2023-06-28 14:01:24 -05:00

56 lines
1.1 KiB
SCSS

@use '../config';
@each $breakpoint, $size in config.$sl-breakpoints {
$prefix: if(($breakpoint == 'none'), '', '#{$breakpoint}-');
@include config.sl-breakpoint-set($breakpoint, $size) {
.sl-l-#{$prefix}holy-grail {
&,
&__body {
display: flex;
}
flex-direction: column;
height: 100%;
&__header,
&__footer {
flex: none;
}
&__body {
flex: 1 0 auto;
flex-direction: row;
margin-left: var(--sl-gutter--double-negative);
margin-right: var(--sl-gutter--double-negative);
}
&__main,
&__navigation,
&__complementary {
padding-left: var(--sl-gutter--double);
padding-right: var(--sl-gutter--double);
}
&__main {
flex: 1;
}
&__navigation {
flex: 0 0 var(--sl-column--small);
order: -1;
}
&__complementary {
order: 1;
flex: 0 0 var(--sl-column--medium);
&--contents {
flex: 0 0 var(--sl-column--small);
order: -1;
}
}
}
}
}