add support to media attribute

according to https://developers.google.com/webmasters/smartphone-sites/details