1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-06-10 11:35:10 +02:00
blog/src/components/Layout.module.scss

51 lines
1.1 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 {
// display: flex;
// min-height: 100vh;
// flex-direction: column;
position: relative;
}
.site__content,
.footer__content {
padding: 0 $spacer;
2018-07-18 23:04:31 +02:00
width: 100%;
2018-07-21 13:07:58 +02:00
@media (min-width: $screen-sm) {
padding: 0 ($spacer * 2);
}
}
// topbar and footer as fixed
// site background
/////////////////////////////////////
.site__document {
width: 100%;
padding-top: ($spacer * 2);
background-color: $page-background-color;
border-top: 1px solid rgba(255, 255, 255, .7);
border-bottom: 1px solid rgba(255, 255, 255, .7);
box-shadow: 0 1px 4px rgba($brand-main, .1),
0 -1px 4px rgba($brand-main, .2);
transform: translate3d(0, 0, 0);
2018-07-21 22:21:00 +02:00
:global(.has-menu-open) & {
transform: translate3d(0, ($spacer * 8), 0);
2018-07-21 13:07:58 +02:00
}
@media (min-width: $screen-sm) {
@include transition;
2018-07-21 22:21:00 +02:00
margin-top: $spacer * 2.65;
2018-07-21 13:07:58 +02:00
position: relative;
z-index: 2;
2018-07-21 22:21:00 +02:00
:global(.has-menu-open) & {
transform: translate3d(0, ($spacer * 5), 0);
2018-07-21 13:07:58 +02:00
}
}
2018-07-18 00:24:11 +02:00
}