2020-03-11 01:50:07 +00:00
|
|
|
$grid_max_width: 960;
|
|
|
|
|
|
|
|
@if global-variable-exists(viewport_size) {
|
|
|
|
@if $viewport_size == widest {
|
|
|
|
$grid_max_width: 1600;
|
|
|
|
} @else if $viewport_size == wider {
|
|
|
|
$grid_max_width: 1440;
|
|
|
|
} @else if $viewport_size == wide {
|
|
|
|
$grid_max_width: 1280;
|
|
|
|
} @else if $viewport_size == narrow {
|
|
|
|
$grid_max_width: 800;
|
|
|
|
} @else {
|
|
|
|
$grid_max_width: 960;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-01-21 08:53:58 +00:00
|
|
|
$grid_max: $grid_max_width + $grid_max_unit;
|
|
|
|
|
|
|
|
.wrapper {
|
|
|
|
margin: 0 auto;
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
@include justify-content(center);
|
|
|
|
@include themify($themes) {
|
|
|
|
background-color: themed('body-background-color');
|
|
|
|
}
|
|
|
|
@media only screen and (max-width: 769px) {
|
|
|
|
grid-template-columns: minmax(0, $grid_main_main) minmax(0, $grid_main_side);
|
|
|
|
}
|
|
|
|
|
|
|
|
&__left {
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
2020-03-11 01:50:07 +00:00
|
|
|
left: -0.5rem;
|
2020-01-21 08:53:58 +00:00
|
|
|
height: 100vh;
|
2020-02-09 09:10:12 +00:00
|
|
|
width: calc((100vw - #{$grid_max}) / 2);
|
2020-03-11 01:50:07 +00:00
|
|
|
|
|
|
|
&[data-pad="false"] {
|
|
|
|
left: 0;
|
|
|
|
}
|
2020-01-21 08:53:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&__right {
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
2020-03-11 01:50:07 +00:00
|
|
|
right: -0.5rem;
|
2020-01-21 08:53:58 +00:00
|
|
|
height: 100vh;
|
2020-02-09 09:10:12 +00:00
|
|
|
width: calc((100vw - #{$grid_max}) / 2);
|
2020-03-11 01:50:07 +00:00
|
|
|
|
|
|
|
&[data-pad="false"] {
|
|
|
|
right: 0;
|
|
|
|
}
|
2020-01-21 08:53:58 +00:00
|
|
|
}
|
|
|
|
}
|