mirror of
https://github.com/necolas/normalize.css.git
synced 2024-12-25 15:14:19 +00:00
Correct the outline of search inputs in Safari (#575)
After modifying search input with -webkit-appearance: textfield, the focus outline is remaining with `outline-offset: 0`, but should be `-2px` like other textfield inputs.
This commit is contained in:
parent
8ed3140d52
commit
2c4e2182e0
6
normalize.css
vendored
6
normalize.css
vendored
@ -381,11 +381,13 @@ textarea {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Correct the odd appearance of search inputs in Chrome and Safari.
|
* 1. Correct the odd appearance in Chrome and Safari.
|
||||||
|
* 2. Correct the outline style in Safari.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
[type="search"] {
|
[type="search"] {
|
||||||
-webkit-appearance: textfield;
|
-webkit-appearance: textfield; /* 1 */
|
||||||
|
outline-offset: -2px; /* 2 */
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user