Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't seem to extend a placeholder or class which consists solely of media query content coming from Breakpoint #176

Open
philwolstenholme opened this issue Nov 8, 2016 · 2 comments

Comments

@philwolstenholme
Copy link

Hi,

I have the following placeholder and class set up:

.is-hidden-tablet,
%is-hidden-tablet {
  @include breakpoint($lap) {
    display: none;
  }
}

When I try and use @extend %is-hidden-tablet; then I get this error message:

>> ".menu--secondary .menu .menu__item:last-of-type" failed to @extend "%is-hidden-tablet".
>> The selector "%is-hidden-tablet" was not found.

If I change my placeholder and class to the following then everything works okay:

.is-hidden-tablet,
%is-hidden-tablet {
  content: "";
  @include breakpoint($lap) {
    display: none;
  }
}

I don't think this is a bug with Sass or Breakpoint as I can't reproduce the issue in Sassmeister: http://www.sassmeister.com/gist/35cc92c46ec3154fb723581aaed3943e

Does anyone have any idea what might be the cause?

➜  npm list node-sass
└─┬ grunt-sass@1.1.0
  └── node-sass@3.10.1

➜  npm list breakpoint-sass
└── breakpoint-sass@2.6.1
@philwolstenholme
Copy link
Author

Additionally, if I write a regular, plain CSS media query inside .is-hidden-tablet / %is-hidden-tablet (instead of making a call to breakpoint() then I do not get any errors.

@joeajbrewer
Copy link

I'm having the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants