%btnBase { display: none; } @mixin mobile { @media only screen and (min-width:300px) { @content; } } @include mobile { a { @extend %btnBase; } }