mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
Reset form elements even more aggressively
This commit is contained in:
parent
c246f19773
commit
58f581ef32
@ -489,9 +489,11 @@ 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,
|
||||
@ -499,9 +501,17 @@ 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;
|
||||
}
|
||||
|
||||
.container {
|
||||
|
||||
@ -489,9 +489,11 @@ 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,
|
||||
@ -499,9 +501,17 @@ 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;
|
||||
}
|
||||
|
||||
.container {
|
||||
|
||||
@ -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…
x
Reference in New Issue
Block a user