Converting some styles to mixins, to avoid extend.