Skip to content

Instantly share code, notes, and snippets.

@Farmatique
Created December 13, 2016 19:50
Show Gist options
  • Save Farmatique/51e805f9d047a7a64442a9f62ce09a08 to your computer and use it in GitHub Desktop.
Save Farmatique/51e805f9d047a7a64442a9f62ce09a08 to your computer and use it in GitHub Desktop.
input field autofill background color issue
input:-webkit-autofill {
-webkit-text-fill-color: @autofillColor;
-webkit-box-shadow: 0 0 0px 1000px white inset;
}
input:-moz-autofill {
-moz-text-fill-color: @autofillColor;
-moz-box-shadow: 0 0 0px 1000px white inset;
}
input:-o-autofill {
-o-text-fill-color: @autofillColor;
-o-box-shadow: 0 0 0px 1000px white inset;
}
input:-khtml-autofill {
-khtml-text-fill-color: @autofillColor;
-khtml-box-shadow: 0 0 0px 1000px white inset;
}
input:focus:-webkit-autofill {
-webkit-text-fill-color: @autofillColor;
-webkit-box-shadow: 0 0 0px 1000px white inset;
}
input:focus:-moz-autofill {
-moz-text-fill-color: @autofillColor;
-moz-box-shadow: 0 0 0px 1000px white inset;
}
input:focus:-o-autofill {
-o-text-fill-color: @autofillColor;
-o-box-shadow: 0 0 0px 1000px white inset;
}
input:focus:-khtml-autofill {
-khtml-text-fill-color: @autofillColor;
-khtml-box-shadow: 0 0 0px 1000px white inset;
}
input{
-webkit-text-fill-color: #6a6257 !important;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment