Updated mixins with a diagonal gradient function.