publik-base-theme/static/includes/_layout.scss

139 lines
1.9 KiB
SCSS

$width: 1000px !default;
$mobile-limit: 800px !default;
$very-small-limit: 480px !default;
$footer-background: #666666 !default;
$footer-color: white !default;
$top-logo-width: 0 !default;
$legacy-sidebar-support: false !default;
html, body {
margin: 0;
height: 100vh;
}
div#page {
display: flex;
box-sizing: border-box;
min-height: 100vh;
flex-direction: column;
}
div#page div#main-content-wrapper {
flex: 1 0 auto;
width: 100%;
}
div#header,
div#nav,
div#footer {
clear: both;
max-width: $width;
margin: 0 auto;
}
div#header {
box-sizing: border-box;
width: 100%;
position: relative;
top: 0px;
z-index: 0;
padding: 0 1ex;
& h1 {
margin: 0;
}
@media screen and (max-width: $mobile-limit) {
& h1 {
padding-left: $top-logo-width+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-width: $mobile-limit) {
position: static;
z-index: 0;
}
}
div#main-content {
margin: 0;
min-height: 300px;
}
#right {
float: right;
width: 50%;
}
#left {
float: left;
width: 50%;
}
#columns {
box-sizing: border-box;
flex-grow: 1;
}
@if ($legacy-sidebar-support) {
#sidebar {
float: right;
width: 49.5%;
}
#sidebar + #columns {
float: left;
width: 49.5%;
}
} @else {
#content {
display: flex;
#sidebar {
flex: 0 0 300px;
div.cell {
margin-left: 0;
margin-right: 20px;
}
}
}
}
@media screen and (max-width: $mobile-limit) {
#columns {
padding: 0 1ex;
}
#right, #left {
float: none;
width: auto;
}
@if ($legacy-sidebar-support) {
} @else {
#content {
flex-direction: column;
#sidebar {
margin: 0 1ex;
div.cell {
margin-left: 0;
margin-right: 0;
}
}
}
}
}
#footer-wrapper {
clear: both;
padding: 1ex 0 2ex 0;
background: $footer-background;
color: $footer-color;
}
h1#logo {
padding-left: $top-logo-width;
}