#buttons: functions, mixins and optimized output