Page 1 of 1
Media query missplaced?
Posted: Thu Jul 23, 2015 4:48 pm
I am trying to add a media query. But if I do, the stylesheet gets corrupted.
The media query do not appear in the stylesheet, but as a attribute on "media" in the link tag (attached image).
This is strange or a bug.
(what i do, in a video:)
Re: Media query missplaced?
Posted: Thu Jul 23, 2015 5:57 pm
Media queries can be used inside the contents of the stylesheet OR on the link tag.
If the media query is on the link tag, the browser will do the media query test to determine if it needs to load the stylesheet at all.
The Design Manager (just like cms 1.x) allows you to enter a media query for the link tag (that's what the media query tab is for).
If you want a media query inside your stylesheet... then it goes into the stylesheet contents itself.
[invalid] Re: Media query missplaced?
Posted: Thu Jul 23, 2015 6:20 pm
OK, I misunderstood it.
I propose to add a clearer explanation in the help file.
Thank you for your answer!