implement basic @media rule serialization