.example { padding-left: 2rem; padding-right: 2rem; } @media screen and (min-width:768px) { #footer { .row { @extend .example; } } }