Skip to content

Instantly share code, notes, and snippets.

@ericthehacker
Created June 18, 2015 19:42
Show Gist options
  • Save ericthehacker/8a24c147d93c8024bac5 to your computer and use it in GitHub Desktop.
Save ericthehacker/8a24c147d93c8024bac5 to your computer and use it in GitHub Desktop.
responsive gray area fix
@media (max-width: $bp-large) and (min-width: $bp-medium) {
html {
position: relative;
overflow: hidden;
&:before {
content: "Resize your browser";
background-color: black;
color: white;
display: block;
text-align: center;
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 1000000;
font-size: 60px;
padding-top: 50vw;
}
}
}
@jonathanhodges
Copy link

I am going to include this in all of my projects from now on!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment