I could swear that bootstrap has mixins for styles like these.