.s-buttongroup { @include mq(550) { margin: -10px; // when it follows an element set some white space * > & { margin-top: 2rem; } & > * { margin: 10px; } } @include mq($max: 550) { > * + * { margin-top: 10px; } } }