Skip to content

Instantly share code, notes, and snippets.

@nhall
Last active December 17, 2015 11:59
Show Gist options
  • Save nhall/5606613 to your computer and use it in GitHub Desktop.
Save nhall/5606613 to your computer and use it in GitHub Desktop.
/*
-----------------------------------------------------------------------------
=Debugging Styles. Delete or comment these out once your site works well.
----------------------------------------------------------------------------- */
body:before {
content: "less than 320px";
font-size: 1.1em;
line-height: 1;
font-weight: bold;
padding: .5em;
background-color: hsla(1, 60%, 40%, .7);
color: #fff;
position: absolute;
top: 0;
left: 0;
z-index: 9999;
}
@media only screen and (min-width: 320px) {
body:before {
content: "320 to 480px";
background-color: hsla(90, 60%, 40%, .7);
}
}
@media only screen and (min-width: 480px) {
body:before {
content: "480 to 640px";
background-color: hsla(180, 60%, 40%, .7);
}
}
@media only screen and (min-width: 640px) {
body:before {
content: "640 to 800px";
background-color: hsla(270, 60%, 40%, .7);
}
}
@media only screen and (min-width: 800px) {
body:before {
content: "800 to 960px";
background-color: hsla(360, 60%, 40%, .7);
}
}
@media only screen and (min-width: 960px) {
body:before {
content: "960 to 1120px";
background-color: hsla(90, 60%, 40%, .7);
}
}
@media only screen and (min-width: 1120px) {
body:before {
content: "1120 to 1280px";
background-color: hsla(180, 60%, 40%, .7);
}
}
@media only screen and (min-width: 1280px) {
body:before {
content: "1280 to 1440px";
background-color: hsla(270, 60%, 40%, .7);
}
}
@media only screen and (min-width: 1440px) {
body:before {
content: "1440 and up";
background-color: hsla(360, 60%, 40%, .7);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment