1
0
mirror of https://github.com/golang/go synced 2024-11-05 14:36:11 -07:00

godoc/static: get rid of ::-webkit-search-decoration of #search

The input[type="search"] has a pseudo element,
it's ::-webkit-search-decoration and has an original margin.

To get rid of the margin, this commit specifies -webkit-appearance
property to none.

Fixes golang/go#27210

Change-Id: I09bbae5e0b811a3b3fa3a047b97ea45190e75f46
Reviewed-on: https://go-review.googlesource.com/c/131317
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
Kunpei Sakai 2018-08-26 02:00:12 +09:00 committed by Brad Fitzpatrick
parent e5fe289229
commit 48cd23a0c8
2 changed files with 4 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@ -318,6 +318,9 @@ input#search {
max-width: 100%;
min-width: 5.625rem;
}
input#search:-webkit-search-decoration {
-webkit-appearance: none;
}
input#search:-moz-ui-invalid {
box-shadow: unset;
}