Skip to content

How to push classes declarations to the head ? (based on the breakpoint value for the queries) #234

Answered by simoco0781
simoco0781 asked this question in Q&A
Discussion options

You must be logged in to vote

It seems that you have to write it on the headStyles :
content: { data: { value: { breakpoint: '480px', headStyles = [ { content: " /* hide on desktop */ .desk-hide{ display:none; } ", }, { content: " @media only screen and (max-width: 480px){ /* show on mobile */ .desk-hide{ display: block; } /* hide on mobile */ .mob-hide{ display:none; } }", }, ] } } }

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by simoco0781
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant