Moving some mixin classes to mixin functions to cut down on repeated CSS

Turned a few classes into mixin functions to cut down on repeated CSS -- the items I converted will never be used in an HTML template by themselves.