mirror of
https://github.com/FortAwesome/Font-Awesome.git
synced 2025-01-13 00:30:29 +08:00
Fixed font-face bug on Opera
This commit is contained in:
parent
ee55c859d2
commit
7bef335b6e
@ -1,6 +1,6 @@
|
||||
[class^="icon-"],
|
||||
[class*=" icon-"] {
|
||||
font-family: FontAwesome;
|
||||
font-family: FontAwesome-webfont;
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
4
css/font-awesome.css
vendored
4
css/font-awesome.css
vendored
@ -22,7 +22,7 @@
|
||||
|
||||
*/
|
||||
@font-face {
|
||||
font-family: "FontAwesome";
|
||||
font-family: "FontAwesome-webfont";
|
||||
src: url('../font/fontawesome-webfont.eot');
|
||||
src: url('../font/fontawesome-webfont.eot?#iefix') format('eot'), url('../font/fontawesome-webfont.woff') format('woff'), url('../font/fontawesome-webfont.ttf') format('truetype'), url('../font/fontawesome-webfont.svg#FontAwesome') format('svg');
|
||||
font-weight: normal;
|
||||
@ -32,7 +32,7 @@
|
||||
/* Font Awesome styles
|
||||
------------------------------------------------------- */
|
||||
[class^="icon-"]:before, [class*=" icon-"]:before {
|
||||
font-family: FontAwesome;
|
||||
font-family: FontAwesome-webfont;
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
display: inline-block;
|
||||
|
@ -1,4 +1,4 @@
|
||||
[class^="icon-"],[class*=" icon-"]{font-family:FontAwesome;font-style:normal;font-weight:normal;}
|
||||
[class^="icon-"],[class*=" icon-"]{font-family:FontAwesome-webfont;font-style:normal;font-weight:normal;}
|
||||
.btn.dropdown-toggle [class^="icon-"],.btn.dropdown-toggle [class*=" icon-"]{line-height:1.4em;}
|
||||
.icon-large{font-size:1.3333em;}
|
||||
.icon-glass{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' ');}
|
||||
|
4
docs/assets/css/font-awesome.css
vendored
4
docs/assets/css/font-awesome.css
vendored
@ -22,7 +22,7 @@
|
||||
|
||||
*/
|
||||
@font-face {
|
||||
font-family: 'FontAwesome';
|
||||
font-family: 'FontAwesome-webfont';
|
||||
src: url('../font/fontawesome-webfont.eot');
|
||||
src: url('../font/fontawesome-webfont.eot?#iefix') format('eot'), url('../font/fontawesome-webfont.woff') format('woff'), url('../font/fontawesome-webfont.ttf') format('truetype'), url('../font/fontawesome-webfont.svg#FontAwesome') format('svg');
|
||||
font-weight: normal;
|
||||
@ -32,7 +32,7 @@
|
||||
/* Font Awesome styles
|
||||
------------------------------------------------------- */
|
||||
[class^="icon-"]:before, [class*=" icon-"]:before {
|
||||
font-family: FontAwesome;
|
||||
font-family: FontAwesome-webfont;
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
display: inline-block;
|
||||
|
@ -3780,7 +3780,7 @@ a.badge:hover {
|
||||
|
||||
*/
|
||||
@font-face {
|
||||
font-family: 'FontAwesome';
|
||||
font-family: 'FontAwesome-webfont';
|
||||
src: url('../font/fontawesome-webfont.eot');
|
||||
src: url('../font/fontawesome-webfont.eot?#iefix') format('embedded-opentype'), url('../font/fontawesome-webfont.woff') format('woff'), url('../font/fontawesome-webfont.ttf') format('truetype'), url('../font/fontawesome-webfont.svg#FontAwesome') format('svg');
|
||||
font-weight: normal;
|
||||
@ -3790,7 +3790,7 @@ a.badge:hover {
|
||||
------------------------------------------------------- */
|
||||
[class^="icon-"]:before,
|
||||
[class*=" icon-"]:before {
|
||||
font-family: FontAwesome;
|
||||
font-family: FontAwesome-webfont;
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
display: inline-block;
|
||||
@ -4780,7 +4780,7 @@ h6 {
|
||||
}
|
||||
#examples .rating span.star,
|
||||
#code .rating span.star {
|
||||
font-family: FontAwesome;
|
||||
font-family: FontAwesome-webfont;
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
display: inline-block;
|
||||
|
@ -1,6 +1,6 @@
|
||||
[class^="icon-"],
|
||||
[class*=" icon-"] {
|
||||
font-family: FontAwesome;
|
||||
font-family: FontAwesome-webfont;
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
4
docs/assets/less/font-awesome.less
vendored
4
docs/assets/less/font-awesome.less
vendored
@ -23,7 +23,7 @@
|
||||
*/
|
||||
|
||||
@font-face {
|
||||
font-family: 'FontAwesome';
|
||||
font-family: 'FontAwesome-webfont';
|
||||
src: url('../font/fontawesome-webfont.eot');
|
||||
src: url('../font/fontawesome-webfont.eot?#iefix') format('embedded-opentype'),
|
||||
url('../font/fontawesome-webfont.woff') format('woff'),
|
||||
@ -37,7 +37,7 @@
|
||||
------------------------------------------------------- */
|
||||
[class^="icon-"]:before,
|
||||
[class*=" icon-"]:before {
|
||||
font-family: FontAwesome;
|
||||
font-family: FontAwesome-webfont;
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
display: inline-block;
|
||||
|
@ -48,7 +48,7 @@ h1, h2, h3, h4, h5, h6 { font-family: @serifFontFamily; }
|
||||
|
||||
//a[href^='http://'] {
|
||||
// &:after {
|
||||
// font-family: FontAwesome;
|
||||
// font-family: FontAwesome-webfont;
|
||||
// content: "\0020 \f08e";
|
||||
// &:hover {
|
||||
// text-decoration: none;
|
||||
@ -219,7 +219,7 @@ h1, h2, h3, h4, h5, h6 { font-family: @serifFontFamily; }
|
||||
|
||||
font-size: 30px;
|
||||
span.star {
|
||||
font-family: FontAwesome;
|
||||
font-family: FontAwesome-webfont;
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
display: inline-block;
|
||||
|
@ -688,7 +688,7 @@
|
||||
Open your project's font-awesome.less and edit the font url to ensure it points to the right place.
|
||||
<pre class="prettyprint linenums">
|
||||
@font-face {
|
||||
font-family: 'FontAwesome';
|
||||
font-family: 'FontAwesome-webfont';
|
||||
src: url('../font/fontawesome-webfont.eot');
|
||||
src: url('../font/fontawesome-webfont.eot?#iefix') format('embedded-opentype'),
|
||||
url('../font/fontawesome-webfont.woff') format('woff'),
|
||||
|
@ -1,6 +1,6 @@
|
||||
[class^="icon-"],
|
||||
[class*=" icon-"] {
|
||||
font-family: FontAwesome;
|
||||
font-family: FontAwesome-webfont;
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
4
less/font-awesome.less
vendored
4
less/font-awesome.less
vendored
@ -25,7 +25,7 @@
|
||||
@fontAwesomePath: '../font';
|
||||
|
||||
@font-face {
|
||||
font-family: 'FontAwesome';
|
||||
font-family: 'FontAwesome-webfont';
|
||||
src: url('@{fontAwesomePath}/fontawesome-webfont.eot');
|
||||
src: url('@{fontAwesomePath}/fontawesome-webfont.eot?#iefix') format('embedded-opentype'),
|
||||
url('@{fontAwesomePath}/fontawesome-webfont.woff') format('woff'),
|
||||
@ -39,7 +39,7 @@
|
||||
------------------------------------------------------- */
|
||||
[class^="icon-"]:before,
|
||||
[class*=" icon-"]:before {
|
||||
font-family: FontAwesome;
|
||||
font-family: FontAwesome-webfont;
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
display: inline-block;
|
||||
|
@ -24,14 +24,14 @@
|
||||
|
||||
$fontAwesomePath: "../font/fontawesome-webfont" !default
|
||||
|
||||
+font-face("FontAwesome", font-files("#{$fontAwesomePath}.woff", woff, "#{$fontAwesomePath}.ttf", truetype, "#{$fontAwesomePath}.svg#FontAwesomeRegular", svg), "#{$fontAwesomePath}.eot", normal, normal)
|
||||
+font-face("FontAwesome-webfont", font-files("#{$fontAwesomePath}.woff", woff, "#{$fontAwesomePath}.ttf", truetype, "#{$fontAwesomePath}.svg#FontAwesomeRegular", svg), "#{$fontAwesomePath}.eot", normal, normal)
|
||||
|
||||
/* Font Awesome styles
|
||||
* -------------------------------------------------------
|
||||
|
||||
[class^="icon-"]:before,
|
||||
[class*=" icon-"]:before
|
||||
font-family: FontAwesome
|
||||
font-family: FontAwesome-webfont
|
||||
font-weight: normal
|
||||
font-style: normal
|
||||
display: inline-block
|
||||
|
4
sass/font-awesome.scss
vendored
4
sass/font-awesome.scss
vendored
@ -26,7 +26,7 @@
|
||||
$fontAwesomePath: "../font/fontawesome-webfont" !default;
|
||||
|
||||
@include font-face(
|
||||
'FontAwesome',
|
||||
'FontAwesome-webfont',
|
||||
font-files(
|
||||
"#{$fontAwesomePath}.woff", woff,
|
||||
"#{$fontAwesomePath}.ttf", truetype,
|
||||
@ -39,7 +39,7 @@ $fontAwesomePath: "../font/fontawesome-webfont" !default;
|
||||
------------------------------------------------------- */
|
||||
[class^="icon-"]:before,
|
||||
[class*=" icon-"]:before {
|
||||
font-family: FontAwesome;
|
||||
font-family: FontAwesome-webfont;
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
display: inline-block;
|
||||
|
Loading…
Reference in New Issue
Block a user