Fix for input type=search Webkit styling, closes #701

path-from-header
Simon Willison 2020-03-24 15:57:09 -07:00
rodzic 5f4aeb1f19
commit 2a36dfa2a8
1 zmienionych plików z 11 dodań i 0 usunięć

Wyświetl plik

@ -161,6 +161,17 @@ form input[type=search] {
font-size: 1em;
font-family: Helvetica, sans-serif;
}
/* Stop Webkit from styling search boxes in an inconsistent way */
/* https://css-tricks.com/webkit-html5-search-inputs/ comments */
input[type=search] {
-webkit-appearance: textfield;
}
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
display: none;
}
@media only screen and (max-width: 576px) {
form.sql textarea {
width: 95%;