Skip to content
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

Media queries splitted in different files #3

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

stol
Copy link

@stol stol commented Feb 3, 2014

Hi, you can now choose to output the grouped media queries in different files, on file per media query.

ex :

$ group-css-media-queries -s myApp.css 
$ # outputs :
$ # Creating app-splitted/app-root.css
$ # Creating app-splitted/app-only-screen-and-(max-width-480px).css
$ # Creating app-splitted/app-only-screen-and-(min-width-481px)-and-(max-width-768px).css


$ group-css-media-queries -s myApp.css -d customDir
$ # outputs :
$ # Creating customDir/app-root.css
$ # Creating customDir/app-only-screen-and-(max-width-480px).css
$ # Creating customDir/app-only-screen-and-(min-width-481px)-and-(max-width-768px).css

stringify parsed
# or send array
else
# res = []
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whole block in ELSE statement can be replaced with
[rootRules].concat mediaRules

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants