0

I was thinking of using something like this but it doesn't listen to me. Wanted to exclude the 'div' that has 'headline-5' as parent / Any thoughs?

Thanks

div {
  @media #{$default} {
    top: 2em;

    :not(data-orbit-slide="headline-5") & {
      top: 0;
    }
  }
}
cimmanon
  • 67,211
  • 17
  • 165
  • 171
Cristialt
  • 96
  • 9
  • possible duplicate of [CSS negation pseudo-class :not() for parent/ancestor elements](http://stackoverflow.com/questions/7084112/css-negation-pseudo-class-not-for-parent-ancestor-elements) – cimmanon Apr 19 '14 at 21:37

1 Answers1

-1

It seems that it just doesn't work inside of the media quesries.

Cristialt
  • 96
  • 9