We have a mixin for this: https://github.com/guardian/frontend/blob/master/common/app/assets/stylesheets/_mixins.scss#L333