Skip to content

Instantly share code, notes, and snippets.

@wfendler
Created March 25, 2013 19:10
Show Gist options
  • Save wfendler/5239753 to your computer and use it in GitHub Desktop.
Save wfendler/5239753 to your computer and use it in GitHub Desktop.
// Le Sass
// This goes through media queries and puts value in pseudo element as a js-hook
$_query-list: palm-and-down hand-and-up lap-and-up desk-and-up;
@each $mq in $_query-list {
@include media-query($mq) {
body:before { content: "#{$mq}"; display: none; }
}
}
// Le JavaScript
// Retrieve breakpoint in JS like so:
var breakpoint = getComputedStyle(document.body, ':before').content;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment