2018-10-24 00:06:39 +02:00
|
|
|
.sl-l-holy-grail {
|
|
|
|
margin: {
|
2018-10-27 06:35:30 +02:00
|
|
|
right: -sl-px-to-rem(32px);
|
|
|
|
left: -sl-px-to-rem(32px);
|
2018-10-24 00:06:39 +02:00
|
|
|
};
|
|
|
|
display: grid;
|
|
|
|
grid-template-rows: auto
|
|
|
|
1fr
|
|
|
|
auto;
|
|
|
|
//min-height: 100vh;
|
|
|
|
|
|
|
|
&--has {
|
|
|
|
&-navigation {
|
|
|
|
grid-template: {
|
|
|
|
areas: 'header header'
|
|
|
|
'navigation main'
|
|
|
|
'footer footer';
|
2018-10-27 06:35:30 +02:00
|
|
|
columns: sl-px-to-rem(320px) 1fr;
|
2018-10-24 00:06:39 +02:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
&-complementary {
|
|
|
|
grid-template: {
|
|
|
|
areas: 'header header'
|
|
|
|
'main complementary'
|
|
|
|
'footer footer';
|
2018-10-27 06:35:30 +02:00
|
|
|
columns: 1fr sl-px-to-rem(480px);
|
2018-10-24 00:06:39 +02:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
&-both-sidebars {
|
|
|
|
grid-template: {
|
|
|
|
areas: 'header header header'
|
|
|
|
'navigation main complementary'
|
|
|
|
'footer footer footer';
|
2018-10-27 06:35:30 +02:00
|
|
|
columns: sl-px-to-rem(320px) 1fr sl-px-to-rem(480px);
|
2018-10-24 00:06:39 +02:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
&-no-sidebars {
|
|
|
|
grid-template: {
|
|
|
|
areas: 'header'
|
|
|
|
'main'
|
|
|
|
'footer';
|
|
|
|
columns: 1fr;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__header,
|
|
|
|
&__main,
|
|
|
|
&__navigation,
|
|
|
|
&__complementary,
|
|
|
|
&__footer {
|
|
|
|
padding: {
|
2018-10-27 06:35:30 +02:00
|
|
|
right: sl-px-to-rem(32px);
|
|
|
|
left: sl-px-to-rem(32px);
|
2018-10-24 00:06:39 +02:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
&__header { grid-area: header; }
|
|
|
|
&__main { grid-area: main; }
|
|
|
|
&__navigation { grid-area: navigation; }
|
|
|
|
&__complementary { grid-area: complementary; }
|
|
|
|
&__footer { grid-area: footer; }
|
|
|
|
|
2018-10-27 06:35:30 +02:00
|
|
|
@media screen and (max-width: #{sl-px-to-em(640px)}) {
|
2018-10-24 00:06:39 +02:00
|
|
|
grid-template: {
|
|
|
|
areas: 'header'
|
|
|
|
'navigation'
|
|
|
|
'main'
|
|
|
|
'complementary'
|
|
|
|
'footer';
|
|
|
|
columns: 100%;
|
|
|
|
rows: auto
|
|
|
|
auto
|
|
|
|
auto
|
|
|
|
auto
|
|
|
|
auto;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|