You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 29, 2024. It is now read-only.
Hey there,
first of all, it would be highly appreciated if you could try to add some proper formatting, explanation of what you are trying to achieve as well as structure to your issues. This will help both you and others to solve your problem. 😉
Thank you!
So what it seems you are trying to achieve is the following:
You´ve wanted to create a mixin and it isn´t working.
I was getting the precss could not resolve the variable ___ within ___ error, and I was able to resolve the issue by changing my processing workflow. I'm using PostCSS inside a Gulp task, and my gulp.src included all my CSS files, including the files which had variables. I changed my gulp.src to only include my style.css file, which imports other files which define and make use of various variables, and that resolved the problem.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
need help !!!
:root {
--color-light:#e4e3dd;
--color-dark:#333333;
--color-info:#10a5e8;
--color-warning:#d2ae0a;
--color-danger:#f90d0d;
--color-success:#359c08;
}
@define-extend rounded_button {
display: inline-block;
border-radius:4px;
padding:5px 10px;
font: var(--color-light) 14px ;
background-color: var(--color-dark)
}
@define-mixin bg_button $color, $style {
.btn-$(color) {
@extend rounded_button;
background-color: $style;
&:hover {
opacity: 0.9;
}
}
}
@mixin bg_button light, var(----color-light);
@mixin bg_button success,var(----color-success);
The text was updated successfully, but these errors were encountered: