mirror of
https://github.com/necolas/normalize.css.git
synced 2024-12-25 15:14:19 +00:00
Add line-height:normal to <input> and <button> elements to match Firefox 3/4 value (set with !important in the UA stylesheet)
This commit is contained in:
parent
b8f2b7b34e
commit
4fdeb702f1
18
normalize.css
vendored
18
normalize.css
vendored
@ -228,21 +228,21 @@ textarea {
|
||||
}
|
||||
|
||||
/*
|
||||
* Define inner-spacing for button elements
|
||||
* Targeting all inputs is harmless to non-button elements
|
||||
* 1. Fixes spacing displayed oddly in IE6/7
|
||||
* 2. Fixes inner padding and border displayed in FF3/4
|
||||
* www.sitepen.com/blog/2008/05/14/the-devils-in-the-details-fixing-dojos-toolbar-buttons/
|
||||
* 1. Define consistent line-height as 'normal'
|
||||
* FF3/4 set it using !important in the UA stylesheet
|
||||
* 2. Fixes spacing displayed oddly in IE6/7
|
||||
*/
|
||||
|
||||
/* 1 */
|
||||
|
||||
button,
|
||||
input {
|
||||
*overflow: visible;
|
||||
line-height: normal; /* 1 */
|
||||
*overflow: visible; /* 2 */
|
||||
}
|
||||
|
||||
/* 2 */
|
||||
/*
|
||||
* Fixes inner padding and border displayed in FF3/4
|
||||
* www.sitepen.com/blog/2008/05/14/the-devils-in-the-details-fixing-dojos-toolbar-buttons/
|
||||
*/
|
||||
|
||||
button::-moz-focus-inner,
|
||||
input::-moz-focus-inner {
|
||||
|
Loading…
Reference in New Issue
Block a user