Know if mixin is being called from within a media query

0

I need to do a check in a mixin, to know if it's being called from within a media query. Do you have a way?

@mixin teste {

  @if [esta dentro de media?] {
    ...
  } @else {
    ...
  }

}

@media (min-width: 768px) {
  @include teste;
}
    
asked by anonymous 28.07.2018 / 21:54

0 answers