Open JHerwig opened 4 years ago
Hello @JHerwig,
Thank you for using our products, please let us know what product are you using.
All the best, Stefan
I am using "Paper-Dashboard 2 Pro" for Vue.js I tried other Packages but none of your scss is compileable with sass.
Error: Top-level selectors may not contain the parent selector "&"
Same issue, I solved it to change:
@mixin placeholder() {
&::-moz-placeholder {@content;} // Firefox
&::-ms-input-placeholder {@content;} // Internet Explorer 10+
&::-webkit-input-placeholder {@content;} // Safari and Chrome
}
to:
@mixin placeholder() {
::-moz-placeholder {@content;} // Firefox
::-ms-input-placeholder {@content;} // Internet Explorer 10+
::-webkit-input-placeholder {@content;} // Safari and Chrome
}
Hi, @JHerwig! To fix that issue you put for example:
.select-#{$type}.el-select .el-input {
.el-input__suffix{
display: flex;
align-items: center;
}
&:hover{
.el-input__icon,
input {
&::placeholder{
color: white;
}
color: white;
}
}
to
.select-#{$type}.el-select .el-input {
.el-input__suffix{
display: flex;
align-items: center;
}
}
.select-#{$type}.el-select .el-input:hover{
.el-input__icon,
input,
.el-input__icon::placeholder,
input::placeholder {
color: white;
}
}
These changes must be made over all the code with the sign & to avoid that error.
Regards, Dragos
I installed sass globaly (
npm i -g sass
) and trysass paper-dashboard.scss paper.css
I got these errors:
From these files:
I solved the first error myself. But the second error from
paper/plugins/element-ui/plugin-select
andpaper/inputs
not. Please fix this!