Answer the question
In order to leave comments, you need to log in
Why doesn't the placeholder font change?
I'm using sass, I want to style the input
<input type="text" placeholder="Какой-то текст" class="input">
<link href="https://fonts.googleapis.com/css?family=Montserrat:300,400,500,600,700&subset=cyrillic,cyrillic-ext,latin-ext" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Raleway:300,400,500,600,700&subset=latin-ext" rel="stylesheet">
input
font-size: 14px
font-family: "Raleway", sans-serif !important
font-weight: 400
Answer the question
In order to leave comments, you need to log in
I found the answer, I didn’t have Cyrillic in the generated link
I found Raleway with Cyrillic support, added it locally and everything is fine
Apparently, Raleway was used before on plain text, since it is listed in my system fonts
::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
font-size: 14px
font-family: "Raleway", sans-serif !important
font-weight: 400
}
:-ms-input-placeholder { / * Internet Explorer 10-11 */
font-size: 14px
font-family: "Raleway", sans-serif !important
font-weight: 400
}
::-ms-input-placeholder { /* Microsoft Edge */
font-size : 14px
font-family: "Raleway", sans-serif !important
font-weight: 400
}
input::-webkit-input-placeholder {
/* Chrome/Opera/Safari */
color: inherit;}
input::-moz-placeholder {
/* Firefox 19+ */
color: inherit;
opacity: 1; }
input:-ms-input-placeholder {
/* IE 10+ */
color: inherit; }
input:-moz-placeholder {
/* Firefox 18- */
color: inherit;
opacity: 1; }
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question