187 lines
2.9 KiB
SCSS
187 lines
2.9 KiB
SCSS
$width: 1000px !default;
|
|
$mobile-limit: 800px !default;
|
|
$very-small-limit: 480px !default;
|
|
$footer-background: #666666 !default;
|
|
$footer-full-width-background: true !default;
|
|
$footer-color: white !default;
|
|
$sidebar-width: 300px !default;
|
|
$sidebar-max-width: $sidebar-width !default;
|
|
$sidebar-min-width: 0 !default;
|
|
$sidebar-position: left !default;
|
|
|
|
// custom media queries
|
|
// @media ($max-mobile-viewport) {}
|
|
// @media ($min-desktop-viewport) {}
|
|
$max-mobile-viewport: "max-width: #{$mobile-limit}";
|
|
$min-desktop-viewport: "min-width: #{$mobile-limit + 1}";
|
|
|
|
// set default box model to border-box
|
|
* {
|
|
box-sizing: border-box;
|
|
&::before, &::after {
|
|
box-sizing: inherit;
|
|
}
|
|
}
|
|
|
|
html, body {
|
|
margin: 0;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
div#page {
|
|
display: flex;
|
|
min-height: 100vh;
|
|
flex-direction: column;
|
|
}
|
|
|
|
div#page div#main-content-wrapper,
|
|
div#page main {
|
|
flex: 1 0 auto;
|
|
width: 100%;
|
|
}
|
|
|
|
div#header,
|
|
div#nav,
|
|
div#footer {
|
|
clear: both;
|
|
max-width: $width;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
div#header {
|
|
width: 100%;
|
|
position: relative;
|
|
top: 0px;
|
|
z-index: 0;
|
|
padding: 0 0.7em;
|
|
& h1 {
|
|
margin: 0;
|
|
}
|
|
@media screen and ($max-mobile-viewport) {
|
|
& h1 {
|
|
padding-left: 70px;
|
|
background-position: 70px;
|
|
}
|
|
}
|
|
}
|
|
|
|
div#main-content-wrapper {
|
|
position: relative;
|
|
z-index: 100;
|
|
max-width: $width;
|
|
margin: 0px auto 0px auto;
|
|
padding: 0;
|
|
@media screen and ($max-mobile-viewport) {
|
|
position: static;
|
|
z-index: 0;
|
|
}
|
|
}
|
|
|
|
div#main-content {
|
|
margin: 0;
|
|
min-height: 300px;
|
|
}
|
|
|
|
#right {
|
|
float: right;
|
|
width: 50%;
|
|
}
|
|
#left {
|
|
float: left;
|
|
width: 50%;
|
|
}
|
|
|
|
#columns {
|
|
flex-grow: 1;
|
|
max-width: 100%;
|
|
}
|
|
|
|
.gru-content {
|
|
display: flex;
|
|
#sidebar {
|
|
flex: 0 0 $sidebar-width;
|
|
max-width: $sidebar-max-width;
|
|
@if $sidebar-min-width != 0 {
|
|
min-width: $sidebar-min-width;
|
|
}
|
|
@if $sidebar-position == right {
|
|
order: 1;
|
|
}
|
|
div.cell {
|
|
@if $sidebar-position == left {
|
|
margin-left: 0;
|
|
margin-right: 20px;
|
|
} @else {
|
|
margin-left: 20px;
|
|
margin-right: 0px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
@media screen and ($max-mobile-viewport) {
|
|
#columns {
|
|
padding: 0 0.7em;
|
|
max-width: 100%;
|
|
}
|
|
#right, #left {
|
|
float: none;
|
|
width: auto;
|
|
}
|
|
|
|
.gru-content {
|
|
flex-direction: column;
|
|
#sidebar {
|
|
flex: 0 0 auto;
|
|
max-width: 100%;
|
|
// don't apply min-width on mobile
|
|
@if $sidebar-min-width != 0 {
|
|
min-width: 0;
|
|
}
|
|
margin: 0 0.7em;
|
|
div.cell {
|
|
margin-left: 0;
|
|
margin-right: 0;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
#footer-wrapper {
|
|
clear: both;
|
|
margin-top: 1.5em;
|
|
color: $footer-color;
|
|
}
|
|
|
|
#footer {
|
|
&::after {
|
|
content: '';
|
|
display: block;
|
|
clear: both;
|
|
}
|
|
}
|
|
|
|
@if $footer-full-width-background {
|
|
#footer-wrapper {
|
|
padding: 0.7em 0 1.5em 0;
|
|
background-color: $footer-background;
|
|
}
|
|
} @else {
|
|
#footer {
|
|
padding: 0.7em 0.7em 1.5em 0.7em;
|
|
background-color: $footer-background;
|
|
}
|
|
}
|
|
|
|
@media screen and ($max-mobile-viewport) {
|
|
.pk-desktop-only, .desktop-only {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
@media screen and ($min-desktop-viewport) {
|
|
.pk-mobile-only, .mobile-only {
|
|
display: none;
|
|
}
|
|
}
|