Converting some duplicated CSS to a SCSS @mixin.