Skip to content
This repository has been archived by the owner on Nov 10, 2020. It is now read-only.

Question: @media attribute of style tag, not rendering as expected #16

Closed
TheoMer opened this issue Sep 1, 2016 · 1 comment
Closed
Assignees
Labels

Comments

@TheoMer
Copy link

TheoMer commented Sep 1, 2016

@nachoaIvarez So,I'm wishing to wrap a menu list once the screen pixel width reaches a predetermined size, and have applied the following logic, without success. No errors/warnings are being generated. What am I overlooking?:

<Flexbox element="nav"
minWidth="100vw"
margin="0"
padding="0"
style={{ '@media all and (maxWidth: 1000px)': {flexWrap: 'wrap'} }}>

<navigation menu />

</Flexbox>

Many thanks in advance.

P.S. Is this project on Gitter, which would be a more apt place to submit general queries?

@nachoaIvarez
Copy link
Owner

You should take a look at this: https://github.com/contra/react-responsive!

There's no gitter currently! Maybe in the future?

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

No branches or pull requests

2 participants