css: Fixed event handling in Chrome browser

Tested in Chromium 18. Previously hover and click events on <i> elements didn't work properly.
This commit is contained in:
Tobias Bieniek 2012-06-20 22:26:58 +03:00
parent ee55c859d2
commit 40ef74a1d6

View File

@ -31,15 +31,16 @@
/* Font Awesome styles /* Font Awesome styles
------------------------------------------------------- */ ------------------------------------------------------- */
[class^="icon-"], [class*=" icon-"] {
display: inline-block;
}
[class^="icon-"]:before, [class*=" icon-"]:before { [class^="icon-"]:before, [class*=" icon-"]:before {
font-family: FontAwesome; font-family: FontAwesome;
font-weight: normal; font-weight: normal;
font-style: normal; font-style: normal;
display: inline-block;
text-decoration: inherit; text-decoration: inherit;
} }
a [class^="icon-"], a [class*=" icon-"] { a [class^="icon-"], a [class*=" icon-"] {
display: inline-block;
text-decoration: inherit; text-decoration: inherit;
} }
/* makes the font 33% larger relative to the icon container */ /* makes the font 33% larger relative to the icon container */
@ -53,7 +54,6 @@ a [class^="icon-"], a [class*=" icon-"] {
line-height: .9em; line-height: .9em;
} }
li [class^="icon-"], li [class*=" icon-"] { li [class^="icon-"], li [class*=" icon-"] {
display: inline-block;
width: 1.25em; width: 1.25em;
text-align: center; text-align: center;
} }