Change border rule color when inverted