Add Sass mixins and use them.

Reduces code duplication and makes things cleaner.