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

49 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;
}
2018-08-11 02:39:18 +02:00
.content {
2018-10-14 13:59:18 +02:00
padding: 0 $spacer / $line-height;
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
/////////////////////////////////////
2018-08-11 02:39:18 +02:00
.document {
2018-08-27 19:42:09 +02:00
@include transition;
2018-07-21 13:07:58 +02:00
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);
2018-09-09 18:16:13 +02:00
padding-bottom: $spacer * 2;
2018-07-21 13:07:58 +02:00
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) & {
2018-09-27 21:14:22 +02:00
transform: translate3d(0, ($spacer * 3), 0);
2018-07-21 13:07:58 +02:00
}
2018-09-12 22:53:51 +02:00
@media (min-width: $screen-sm) and (min-height: 500px) {
2018-07-21 22:21:00 +02:00
margin-top: $spacer * 2.65;
2018-09-29 03:47:00 +02:00
margin-bottom: $spacer * 19; // height of footer
2018-07-21 13:07:58 +02:00
position: relative;
z-index: 2;
2018-09-13 21:51:13 +02:00
min-height: 500px;
2018-07-21 13:07:58 +02:00
}
2018-07-18 00:24:11 +02:00
}