Reset form elements even more aggressively
This commit is contained in:
parent
c246f19773
commit
58f581ef32
3 changed files with 37 additions and 6 deletions
|
|
@ -135,16 +135,27 @@ h6 {
|
|||
}
|
||||
|
||||
/**
|
||||
* Inherit color, font-weight, and line-height from the parent
|
||||
* Reset form elements to inherit their styles from the parent
|
||||
* so that form elements don't inadvertently have any styles
|
||||
* that deviate from your design system.
|
||||
* that deviate from your design system. These styles
|
||||
* supplement a partial reset that is already applied by
|
||||
* normalize.css.
|
||||
*/
|
||||
|
||||
button,
|
||||
input,
|
||||
optgroup,
|
||||
select,
|
||||
textarea {
|
||||
padding: 0;
|
||||
border-radius: 0;
|
||||
background-color: transparent;
|
||||
color: inherit;
|
||||
font-weight: inherit;
|
||||
line-height: inherit;
|
||||
font-style: inherit;
|
||||
font-variant: inherit;
|
||||
text-align: inherit;
|
||||
text-transform: inherit;
|
||||
letter-spacing: inherit;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue