notes/_sass/layout.scss

113 lines
1.9 KiB
SCSS
Raw Normal View History

2017-03-24 13:47:37 +00:00
//
// The basic two column layout
//
2017-03-09 18:16:08 +00:00
.page-wrap {
@include mq(md) {
position: absolute;
top: 0;
left: 0;
2017-03-27 01:09:19 +00:00
display: flex;
2017-03-09 18:16:08 +00:00
width: 100%;
height: 100%;
overflow-x: hidden;
overflow-y: hidden;
}
}
.side-bar {
2017-03-27 01:09:19 +00:00
z-index: 100;
2017-03-24 13:47:37 +00:00
padding-top: $gutter-spacing-sm;
padding-bottom: $gutter-spacing-sm;
2017-03-09 18:16:08 +00:00
background-color: $grey-lt-000;
@include mq(md) {
2017-03-27 01:09:19 +00:00
position: absolute;
display: flex;
width: $nav-width + 16px;
height: 100%;
2017-03-09 18:16:08 +00:00
padding-top: $gutter-spacing * 2;
padding-bottom: 0;
flex-direction: column;
2017-03-27 01:09:19 +00:00
border-right: $border $border-color;
2017-03-09 18:16:08 +00:00
align-items: flex-end;
}
@include mq(lg) {
width: calc((100% - #{$nav-width + $content-width}) / 2 + #{$nav-width});
min-width: $nav-width;
}
}
.main-content-wrap {
@include mq(md) {
position: absolute;
2017-03-27 01:09:19 +00:00
top: 0;
left: 0;
2017-03-09 18:16:08 +00:00
width: 100%;
height: 100%;
2017-03-24 13:47:37 +00:00
min-height: 600px;
2017-03-09 18:16:08 +00:00
-webkit-overflow-scrolling: touch;
overflow-x: hidden;
overflow-y: scroll;
}
}
2017-06-04 21:50:01 +00:00
.main-content {
2017-03-24 13:47:37 +00:00
padding-top: $gutter-spacing-sm;
@include container;
2017-03-09 18:16:08 +00:00
@include mq(md) {
position: relative;
max-width: $content-width;
2017-03-24 13:47:37 +00:00
padding-top: $gutter-spacing;
2017-03-09 18:16:08 +00:00
padding-bottom: $gutter-spacing;
2017-03-27 01:09:19 +00:00
padding-left: $gutter-spacing * 1.5;
margin-left: $nav-width;
2017-03-09 18:16:08 +00:00
}
@include mq(lg) {
padding-left: $gutter-spacing;
2017-03-27 01:09:19 +00:00
margin-left: calc((100% - #{$nav-width + $content-width}) / 2 + #{$nav-width});
2017-03-09 18:16:08 +00:00
}
}
2017-06-04 21:50:01 +00:00
.page-header {
border-bottom: $border $border-color;
@include mq(md) {
.main-content {
display: flex;
justify-content: space-between;
}
}
}
2017-03-24 13:47:37 +00:00
.navigation,
2017-03-09 18:16:08 +00:00
.site-title {
2017-03-24 13:47:37 +00:00
@include container;
2017-03-09 18:16:08 +00:00
width: 100%;
@include mq(lg) {
width: $nav-width + 32px;
}
}
.navigation {
@include mq(md) {
position: absolute;
2017-03-24 13:47:37 +00:00
top: 0;
2017-03-09 18:16:08 +00:00
right: 0;
2017-03-24 13:47:37 +00:00
height: 100%;
2017-03-27 01:09:19 +00:00
padding-top: $sp-8;
2017-03-09 18:16:08 +00:00
}
}
.site-footer {
@include mq(md) {
2017-03-27 01:09:19 +00:00
margin-top: $sp-10;
2017-03-24 13:47:37 +00:00
}
2017-03-09 18:16:08 +00:00
}