Skip to content
This repository has been archived by the owner on Sep 6, 2019. It is now read-only.

Media Queries / Element Queries #2

Open
k15a opened this issue Mar 11, 2017 · 3 comments
Open

Media Queries / Element Queries #2

k15a opened this issue Mar 11, 2017 · 3 comments

Comments

@k15a
Copy link
Member

k15a commented Mar 11, 2017

We need some way to add media query support.

header = styled div
    [ padding (rem 4)
    , media (maxHeight (rem 10))
        [ padding (rem 2)
        ]
    ]

I don't know if we should add element query support as well. Media queries are definitely more important.

@k15a
Copy link
Member Author

k15a commented Mar 15, 2017

Media query support added in e28286e

@ryan-senn
Copy link
Contributor

Hi,

For some reason I have to add |> important after padding (rem 2) or it doesn't work. It works if it's a new property, but not to overwrite existing properties.

Am I doing something wrong, or do you have the same issue?

Cheers, Ryan

@k15a
Copy link
Member Author

k15a commented Nov 1, 2017

Mhh that's probably because of some incorrect order of the styles. Could you post an example?

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

No branches or pull requests

2 participants