mirror of
https://github.com/necolas/normalize.css.git
synced 2024-12-25 15:14:19 +00:00
Remove color inheritance for button, input, optgroup, select and textarea elements. Color inheritance here causes possible usability issues when working on black backgrounds with white text. Addresses #349 and #339.
This commit is contained in:
parent
5973b6a6e8
commit
b5ffb63df1
11
normalize.css
vendored
11
normalize.css
vendored
@ -252,10 +252,8 @@ samp {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 1. Correct color not being inherited.
|
* 1. Correct font properties not being inherited.
|
||||||
* Known issue: affects color of disabled elements.
|
* 2. Address margins set differently in Firefox 4+, Safari, and Chrome.
|
||||||
* 2. Correct font properties not being inherited.
|
|
||||||
* 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
button,
|
button,
|
||||||
@ -263,9 +261,8 @@ input,
|
|||||||
optgroup,
|
optgroup,
|
||||||
select,
|
select,
|
||||||
textarea {
|
textarea {
|
||||||
color: inherit; /* 1 */
|
font: inherit; /* 1 */
|
||||||
font: inherit; /* 2 */
|
margin: 0; /* 2 */
|
||||||
margin: 0; /* 3 */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user