Added rules for border, backgrounds and shadows.