Add @viewport listeners to rules