Answer the question
In order to leave comments, you need to log in
How to make such a mixin?
Here are the outlines:
@mixin placeholder($text){ /*Сюда должно считыватся значение из placeholder*/
::placeholder:{
::focus{
opacity: 0; /*При фокусе значение должно изчезать*/
}
}
}
Answer the question
In order to leave comments, you need to log in
@mixin placeholder(){
&::placeholder {
color: #ccc;
}
&::placeholder:focus {
opacity: 0;
}
}
input {
@include placeholder();
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question