Reputation: 37075
If I do @media(min-width: 375px)
in the chrome inspector it drops my code as soon as I try to enter the body to define more of the rule.
Is it possible to add @media rules through the inspector?
Upvotes: 8
Views: 2714
Reputation: 24028
It looks as though the Styles editor panel doesn't support adding @media
rules. However, you can get around this by clicking on the inspector-stylesheet
link to open it in the Sources panel. It is then possible to enter your @media
query and the changes will be reflected immediately.
You can consequently see it in the Styles panel afterwards and modify the rule and CSS properties inline. It is just the initial creation that it doesn't support.
Upvotes: 11