Skip to content

Instantly share code, notes, and snippets.

@furzeface
Created January 14, 2015 09:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save furzeface/0da148c3b36b80fc098d to your computer and use it in GitHub Desktop.
Save furzeface/0da148c3b36b80fc098d to your computer and use it in GitHub Desktop.
Show which media query you’re using
// Show which media query you’re using
body {
padding-bottom: 4rem;
&:after {
position: fixed;
bottom: 0;
left: 0;
width: 100%;
text-align: center;
background: rgba(0,0,0,0.75);
color: white;
font-weight: bold;
padding: 1rem;
@media (max-width: @break-point-a) {
content: "@break-point-a";
}
@media (max-width: @break-point-b) {
content: "@break-point-b";
}
@media (max-width: @break-point-c) {
content: "@break-point-c";
}
@media (max-width: @break-point-d) {
content: "@break-point-d";
}
@media (max-width: @break-point-e) {
content: "@break-point-e";
}
@media (max-width: @break-point-f) {
content: "@break-point-f";
}
@media (max-width: @break-point-g) {
content: "@break-point-g";
}
@media (min-width: @break-point-g) {
content: "> @break-point-g";
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment