1
0
Fork 0
blog/src/components/Layout.module.scss

49 lines
1.0 KiB
SCSS
Raw Normal View History

2018-07-18 00:24:11 +02:00
@import 'variables';
2018-07-21 13:07:58 +02:00
@import 'mixins';
2018-07-18 00:24:11 +02:00
2018-07-21 13:07:58 +02:00
#___gatsby {
2019-10-02 13:35:50 +02:00
// display: flex;
// min-height: 100vh;
// flex-direction: column;
position: relative;
2018-07-21 13:07:58 +02:00
}
2018-08-11 02:39:18 +02:00
.content {
2019-10-02 13:35:50 +02:00
padding: 0 $spacer / $line-height;
width: 100%;
2018-07-21 13:07:58 +02:00
2019-10-02 13:35:50 +02:00
@media (min-width: $screen-sm) {
padding: 0 ($spacer * 2);
}
2018-07-21 13:07:58 +02:00
}
// topbar and footer as fixed
// site background
/////////////////////////////////////
2018-08-11 02:39:18 +02:00
.document {
2019-10-02 13:35:50 +02:00
@include transition;
width: 100%;
padding-top: ($spacer * 2);
background-color: $page-background-color;
border-top: 1px solid rgba(255, 255, 255, 0.7);
border-bottom: 1px solid rgba(255, 255, 255, 0.7);
padding-bottom: $spacer * 2;
box-shadow: 0 1px 4px rgba($brand-main, 0.1),
0 -1px 4px rgba($brand-main, 0.2);
transform: translate3d(0, 0, 0);
:global(.has-menu-open) & {
transform: translate3d(0, ($spacer * 3), 0);
}
@media (min-width: $screen-sm) and (min-height: 500px) {
margin-top: $spacer * 2.65;
margin-bottom: $spacer * 19; // height of footer
position: relative;
z-index: 2;
min-height: 500px;
}
2018-07-18 00:24:11 +02:00
}