Skip to content

Instantly share code, notes, and snippets.

@tomhodgins
Last active April 20, 2017 16:27
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomhodgins/62f19f1cba557bb3194845212ea02015 to your computer and use it in GitHub Desktop.
Save tomhodgins/62f19f1cba557bb3194845212ea02015 to your computer and use it in GitHub Desktop.

This is a collection of responsive techniques made possible by EQCSS that apply styles in situations CSS can't quite reach today without a little help from JavaScript.

EQCSS extends CSS syntax with the following ideas:

1) What if CSS could set a scope for a selector like a @media query for an element

2) What if CSS could add a block of CSS styles to the page when that selector is true

3) What if CSS could add responsive conditions to that selector

4) What if CSS could evaluate JavaScript from the context of the element you are styling and use those values in the CSS you're applying

And with those four ideas added on top of what CSS already does, here are 50+ techniques you can begin using today:

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