@funcion pastel ($clr){
$hue: hue($clr);
$sat: 100%;
$light: 90%;
$pastel: HSL($hue, $sat, $light);
@return $pastel;
}
//Trying to return here but it says "This at-rule is not allowed here."
&:hover {
background-color: pastel($color-primary);
color: $color-primary;
}
Этот стиль применяется к классу .btn и, следовательно, & используется.