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

Add ability to include CSS assets with media queries #120

Open
supermueller opened this issue May 11, 2017 · 1 comment
Open

Add ability to include CSS assets with media queries #120

supermueller opened this issue May 11, 2017 · 1 comment

Comments

@supermueller
Copy link

If a project uses css media queries for referencing CSS files, e.g. a special one for desktop computer, you have to re-write the CSS file itself to get Astrum showing your components correctly.

It would be very helpful, if you can combine the CSS reference with a media query in the data.json file as an option, e.g.:

"assets": {
    "css": [
        "/design-templates/css/all.css",
        {
            "href": "/design-templates/css/desktop.css",
            "media": "screen and (min-width: 1024px)"
        }
    ]
}
@RyanHavoc
Copy link
Member

@supermueller Interesting idea. I'll add it to our development roadmap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development Roadmap
Ideas/Requests
Development

No branches or pull requests

2 participants