allow css override in portal branding

fixes #1491
It can even be refactored more IMO, but lets leave it for now, it's an enhancement anyway.