added media support for styles