Created
March 25, 2013 19:10
-
-
Save wfendler/5239753 to your computer and use it in GitHub Desktop.
This file contains 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
// 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