NoDivide / astrum

A lightweight pattern library designed to be included with any web project.
http://astrum.nodividestudio.com
1.54k stars 98 forks source link

Add ability to include CSS assets with media queries #120

Open supermueller opened 7 years ago

supermueller commented 7 years ago

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 commented 7 years ago

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