-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] mq.query: Add js mediaquery #5
Conversation
Slightly delayed: Awesome, thanks!! Some cosmetic things commented in the code. Something I'm wondering right now is whether we should stop exposing Ping @stigmata86 |
breakpointCurrent = parseInt(estatico.mq.currentBreakpoint.value, 10); | ||
|
||
if (typeof options !== 'object') { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't use empty lines at the top or bottom of a block's content.
da8369c
to
5bb7011
Compare
About the current breakpoint: It could still come in handy, when one simply wants to compare the current breakpoint. Although perhaps there is a better way to do this? For example: estatico.mq.query({ current: 'large' }); |
[Feature] mq.query: Add js mediaquery
We will have to check in some specific use cases, but this is already great for now. Thanks a lot! |
…evelop * commit 'f892eb972e6e2e64b74c366993fe843cdb536099': ESTATICO-178: Use bower to load bind polyfill, optimize js:qunit task to handle array of polyfill globs ESTATICO-178: Update jQuery to 2.1.3 ESTATICO-178: Use native JS functions over some jQuery ones removed occurrences of $.proxy and _.bind in favor of native javascript bind method
…-78-apply-generic-styles to develop * commit '028fbd3f9575804e34d46d8448f5dc86c71b6443': CONCOREL-78: Basic styles for tables CONCOREL-78: Update headings styles after design change
Allows for js-based mediaqueries as described in #4 :
I haven't added any tests or jsdoc. Thoughts?