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

54 lines
790 B
SCSS
Raw Normal View History

2018-10-24 00:06:39 +02:00
.sl-l-holy-grail {
2018-10-27 08:37:10 +02:00
&,
&__body {
display: flex;
flex-direction: column;
}
2018-10-24 00:06:39 +02:00
2018-10-27 08:37:10 +02:00
height: 100%;
&__header,
2018-12-28 01:31:28 +01:00
&__footer { flex: none; }
2018-10-24 00:06:39 +02:00
2018-12-28 01:31:28 +01:00
&__body {
flex: 1 0 auto;
2018-10-27 08:37:10 +02:00
2018-12-28 01:31:28 +01:00
@include sl-breakpoint--medium {
2018-10-27 08:37:10 +02:00
flex-direction: row;
margin: {
right: -2rem;
2018-12-28 01:31:28 +01:00
left: -2rem;
2018-10-24 00:06:39 +02:00
};
}
2018-12-28 01:31:28 +01:00
}
2018-10-24 00:06:39 +02:00
2018-12-28 01:31:28 +01:00
&__main,
&__navigation,
&__complementary {
@include sl-breakpoint--medium {
2018-10-27 08:37:10 +02:00
padding: {
2018-12-28 01:31:28 +01:00
right: sl-px-to-rem(32px);
left: sl-px-to-rem(32px);
2018-10-24 00:06:39 +02:00
};
}
2018-12-28 01:31:28 +01:00
}
&__main {
@include sl-breakpoint--medium { flex: 1; }
}
&__navigation {
order: -1;
@include sl-breakpoint--medium { flex: 0 0 sl-px-to-rem(320px); }
}
&__complementary {
2018-10-24 00:06:39 +02:00
2018-12-28 01:31:28 +01:00
@include sl-breakpoint--medium { flex: 0 0 sl-px-to-rem(480px); }
2018-10-24 00:06:39 +02:00
}
}