mirror of
https://github.com/FortAwesome/Font-Awesome.git
synced 2024-12-26 21:41:29 +08:00
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:
parent
ee55c859d2
commit
40ef74a1d6
6
css/font-awesome.css
vendored
6
css/font-awesome.css
vendored
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user