Improved Sass code with mixins, but need to fix right to left function now.