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

Separate stylesheets depending on their media attribute? #22

Open
kungpoo opened this issue Oct 23, 2010 · 0 comments
Open

Separate stylesheets depending on their media attribute? #22

kungpoo opened this issue Oct 23, 2010 · 0 comments

Comments

@kungpoo
Copy link

kungpoo commented Oct 23, 2010

Say I had this -

{% compress css %}

link rel="stylesheet" href="{{ MEDIA_URL }}css/screen.css" media="sceen">
link rel="stylesheet" href="{{ MEDIA_URL }}css/menu.css" media="sceen">
link rel="stylesheet" href="{{ MEDIA_URL }}css/iphone.css" media="only screen and (max-device-width: 480px)">

{% endcompress %}

Is there currently a way to output two seperate stylesheets grouped by the media attribute e.g.

link rel="stylesheet" href="CACHE/123.css" type="text/css" media="sceen">
link rel="stylesheet" href="CACHE/456.css" type="text/css" media="only screen and (max-device-width: 480px)">

so that the iphone one does not overwrite any previous rules?

Thanks

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

No branches or pull requests

1 participant