mirror of
https://github.com/necolas/normalize.css.git
synced 2024-12-25 15:14:19 +00:00
Limit Firefox focus normalization to buttons
Spacing does not need to be normalized for all `input` elements in Firefox, only `button` and `[type="button"]` elements. These normalizations were changing the default focus appearance of `input` elements. Resolves #549
This commit is contained in:
parent
49d20b834e
commit
b1f3b0c0aa
10
normalize.css
vendored
10
normalize.css
vendored
@ -306,8 +306,10 @@ html [type="button"], /* 1 */
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
button::-moz-focus-inner,
|
button::-moz-focus-inner,
|
||||||
input::-moz-focus-inner {
|
[type="button"]::-moz-focus-inner,
|
||||||
border: 0;
|
[type="reset"]::-moz-focus-inner,
|
||||||
|
[type="submit"]::-moz-focus-inner {
|
||||||
|
border-style: none;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -316,7 +318,9 @@ input::-moz-focus-inner {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
button:-moz-focusring,
|
button:-moz-focusring,
|
||||||
input:-moz-focusring {
|
[type="button"]:-moz-focusring,
|
||||||
|
[type="reset"]:-moz-focusring,
|
||||||
|
[type="submit"]:-moz-focusring {
|
||||||
outline: 1px dotted ButtonText;
|
outline: 1px dotted ButtonText;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user