Cleaned up inheritance of styles. Hopefully it makes sense to people!