Move style blocks inside templates