added conditional for padding in center mixin