@extend under @media query with breaks multi-level selectors. Fixes #1658