Add media scoping to extend syntax

Ensure that the extend syntax, when used in a media block, is only applied to those selectors in the media block.

This addition to the extend feature also gives compatibility with the clearfix rule in bootstrap