fix(styles): add themes global rules processing (refs #4829)
Merge pull request #1191 from txiki31/3.3-integration

fix(styles): add themes global rules processing (closes #4829)