[css mode] Fix @media styling and indentation

Closes #1657