Last active
August 29, 2015 14:07
-
-
Save pieterbeulque/0acabdf807445d678009 to your computer and use it in GitHub Desktop.
Site container
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// @todo – Cleanup | |
.mod-site-container { | |
background-color: $mercury; | |
overflow: hidden; | |
position: relative; | |
z-index: 20; | |
height: 100%; | |
@include breakpoint-from ($min-width-medium) { | |
overflow: visible; | |
} | |
} | |
.site-container__fixed { | |
background-color: $white; | |
height: 50px; | |
left: 0; | |
overflow: hidden; | |
position: absolute; | |
right: 0; | |
top: 0; | |
z-index: 20; | |
} | |
.site-container__scrollable { | |
box-sizing: border-box; | |
height: 100%; | |
-webkit-overflow-scrolling: touch; | |
overflow-y: scroll; | |
position: relative; | |
padding-top: 50px; | |
z-index: 10; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<body> | |
<div class="mod-site-container"> | |
<div class="site-container__header"> | |
<!-- Header (fixed on mobile) --> | |
</div> | |
<div class="site-container__content"> | |
<!-- All site content (including footer or anything) goes here --> | |
</div> | |
</div> | |
<div class="mod-mobile-navigation"> | |
<!-- Placeholder --> | |
</div> | |
</body> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment