Skip to content
This repository has been archived by the owner on Sep 29, 2024. It is now read-only.

@mixin arguments causing parse error #135

Open
stevenvachon opened this issue Jul 23, 2019 · 3 comments
Open

@mixin arguments causing parse error #135

stevenvachon opened this issue Jul 23, 2019 · 3 comments

Comments

@stevenvachon
Copy link

@mixin border-shadow($inset: inset) {
  border: 1px solid silver;
  @if $inset == inset {
    box-shadow: inset 1px 1px 1px 0px, black;
  }
  @else if $inset == outset {
    box-shadow: 1px 1px 1px 0px black;
  }
}

a {
  @include border-shadow(inset);
  color: rebeccapurple;
}
"precss: /cp-pen-styles:6:13: Could not resolve the variable \"$inset\" within \"if $inset == outset\""
@AndriyHromyak
Copy link

i got same error, and i see this has been 2 year since last commit. is it supported? does any one know any alternatives?

@thisVioletHydra
Copy link

same problem 🤔

@clayteller
Copy link

I have the same issue 😕

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

No branches or pull requests

4 participants