Can I use media queries in "globalStyle"? #1382
-
For reasons I won't go into here I'm unable to assign a I want to target Current code looks like this:
I can't for the life of me find any documentation on how to use a media query within Help? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @leo-petrucci, Just follow the docs here and replace globalStyle('div[data-radix-popper-content-wrapper]', {
transform: 'translate3d(0px, 0, 0px)!important',
width: '100%',
bottom: 0,
top: 'auto!important',
maxWidth: 768,
'@media': {
'screen and (min-width: 768px)': {
// responsive styles
},
},
}); |
Beta Was this translation helpful? Give feedback.
Hi @leo-petrucci,
Just follow the docs here and replace
style()
withglobalStyle()
.