diff --git a/css/font-awesome.css b/css/font-awesome.css index c4e6729fa..6c28be32b 100644 --- a/css/font-awesome.css +++ b/css/font-awesome.css @@ -50,7 +50,7 @@ speak: none; } /* makes the font 33% larger relative to the icon container */ -.fa-large:before { +.fa-lg:before { font-size: 1.3333333333333333em; vertical-align: -10%; } @@ -58,14 +58,14 @@ a .fa { display: inline; } -/* increased font size for icon-large */ +/* increased font size for icon-lg */ .fa.fa-fixed-width { display: inline-block; width: 1.1428571428571428em; padding-right: 0.2857142857142857em; text-align: right; } -.fa.fa-fixed-width.fa-large { +.fa.fa-fixed-width.fa-lg { width: 1.4285714285714286em; } .fa-ul { @@ -165,8 +165,8 @@ a .fa { background-repeat: repeat; } /* keeps Bootstrap styles with and without icons the same */ -.btn .fa.fa-large, -.nav .fa.fa-large { +.btn .fa.fa-lg, +.nav .fa.fa-lg { line-height: .9em; } .btn .fa.fa-spin, @@ -175,15 +175,15 @@ a .fa { } .nav-tabs .fa, .nav-pills .fa, -.nav-tabs .fa.fa-large, -.nav-pills .fa.fa-large { +.nav-tabs .fa.fa-lg, +.nav-pills .fa.fa-lg { line-height: .9em; } .btn .fa.pull-left.fa-2x, .btn .fa.pull-right.fa-2x { margin-top: .18em; } -.btn .fa.fa-spin.fa-large { +.btn .fa.fa-spin.fa-lg { line-height: .8em; } .btn.btn-small .fa.pull-left.fa-2x, @@ -218,8 +218,7 @@ a .fa { line-height: 2em; vertical-align: -35%; } -.fa-stack [class^="fa-"], -.fa-stack [class*=" fa-"] { +.fa-stack .fa { position: absolute; display: block; width: 100%; diff --git a/css/font-awesome.min.css b/css/font-awesome.min.css index 0bb2e997e..fb34722fd 100644 --- a/css/font-awesome.min.css +++ b/css/font-awesome.min.css @@ -1,8 +1,8 @@ @font-face{font-family:'FontAwesome';src:url('../font/fontawesome-webfont.eot?v=4.0.0');src:url('../font/fontawesome-webfont.eot?#iefix&v=4.0.0') format('embedded-opentype'),url('../font/fontawesome-webfont.woff?v=4.0.0') format('woff'),url('../font/fontawesome-webfont.ttf?v=4.0.0') format('truetype'),url('../font/fontawesome-webfont.svg?v=4.0.0#fontawesomeregular') format('svg');font-weight:normal;font-style:normal;}.fa{*margin-right:.3em;font-family:FontAwesome;-webkit-font-smoothing:antialiased;font-style:normal;font-weight:normal;text-decoration:inherit;text-rendering:auto;-moz-osx-font-smoothing:grayscale;} .fa:before{display:inline-block;text-decoration:inherit;speak:none;} -.fa-large:before{font-size:1.3333333333333333em;vertical-align:-10%;} +.fa-lg:before{font-size:1.3333333333333333em;vertical-align:-10%;} a .fa{display:inline;} -.fa.fa-fixed-width{display:inline-block;width:1.1428571428571428em;padding-right:0.2857142857142857em;text-align:right;}.fa.fa-fixed-width.fa-large{width:1.4285714285714286em;} +.fa.fa-fixed-width{display:inline-block;width:1.1428571428571428em;padding-right:0.2857142857142857em;text-align:right;}.fa.fa-fixed-width.fa-lg{width:1.4285714285714286em;} .fa-ul{padding-left:0;margin-left:2.142857142857143em;list-style-type:none;}.fa-ul>li{position:relative;} .fa-ul .fa-li{position:absolute;left:-2.142857142857143em;width:2.142857142857143em;line-height:inherit;text-align:center;} .fa.hide{display:none;} @@ -19,17 +19,17 @@ a .fa{display:inline;} .fa.pull-left{margin-right:.3em;} .fa.pull-right{margin-left:.3em;} .fa{display:inline;width:auto;height:auto;margin-top:0;line-height:normal;vertical-align:baseline;background-image:none;background-position:0 0;background-repeat:repeat;} -.btn .fa.fa-large,.nav .fa.fa-large{line-height:.9em;} +.btn .fa.fa-lg,.nav .fa.fa-lg{line-height:.9em;} .btn .fa.fa-spin,.nav .fa.fa-spin{display:inline-block;} -.nav-tabs .fa,.nav-pills .fa,.nav-tabs .fa.fa-large,.nav-pills .fa.fa-large{line-height:.9em;} +.nav-tabs .fa,.nav-pills .fa,.nav-tabs .fa.fa-lg,.nav-pills .fa.fa-lg{line-height:.9em;} .btn .fa.pull-left.fa-2x,.btn .fa.pull-right.fa-2x{margin-top:.18em;} -.btn .fa.fa-spin.fa-large{line-height:.8em;} +.btn .fa.fa-spin.fa-lg{line-height:.8em;} .btn.btn-small .fa.pull-left.fa-2x,.btn.btn-small .fa.pull-right.fa-2x{margin-top:.25em;} .btn.btn-large .fa{margin-top:0;}.btn.btn-large .fa.pull-left.fa-2x,.btn.btn-large .fa.pull-right.fa-2x{margin-top:.05em;} .btn.btn-large .fa.pull-left.fa-2x{margin-right:.2em;} .btn.btn-large .fa.pull-right.fa-2x{margin-left:.2em;} .nav-list .fa{line-height:inherit;} -.fa-stack{position:relative;display:inline-block;width:2em;height:2em;line-height:2em;vertical-align:-35%;}.fa-stack [class^="fa-"],.fa-stack [class*=" fa-"]{position:absolute;display:block;width:100%;height:100%;font-size:1em;line-height:inherit;*line-height:2em;text-align:center;} +.fa-stack{position:relative;display:inline-block;width:2em;height:2em;line-height:2em;vertical-align:-35%;}.fa-stack .fa{position:absolute;display:block;width:100%;height:100%;font-size:1em;line-height:inherit;*line-height:2em;text-align:center;} .fa-stack .fa-stack-base{font-size:2em;*line-height:1em;} .fa-spin{display:inline-block;-webkit-animation:spin 2s infinite linear;-moz-animation:spin 2s infinite linear;-o-animation:spin 2s infinite linear;animation:spin 2s infinite linear;} a .fa-stack,a .fa-spin{display:inline-block;text-decoration:none;} diff --git a/less/bootstrap.less b/less/bootstrap.less index 6115cda97..0099620c1 100644 --- a/less/bootstrap.less +++ b/less/bootstrap.less @@ -19,13 +19,13 @@ .btn, .nav { .fa { // display: inline; - &.fa-large { line-height: .9em; } + &.fa-lg { line-height: .9em; } &.fa-spin { display: inline-block; } } } .nav-tabs, .nav-pills { .fa { - &, &.fa-large { line-height: .9em; } + &, &.fa-lg { line-height: .9em; } } } .btn { @@ -33,7 +33,7 @@ &.pull-left, &.pull-right { &.fa-2x { margin-top: .18em; } } - &.fa-spin.fa-large { line-height: .8em; } + &.fa-spin.fa-lg { line-height: .8em; } } } .btn.btn-small { diff --git a/less/core.less b/less/core.less index e43a54a6d..15b0f2f1a 100644 --- a/less/core.less +++ b/less/core.less @@ -12,7 +12,7 @@ } /* makes the font 33% larger relative to the icon container */ -.fa-large:before { +.fa-lg:before { font-size: (4em / 3); vertical-align: -10%; } @@ -24,14 +24,14 @@ a { } } -/* increased font size for icon-large */ +/* increased font size for icon-lg */ .fa { &.fa-fixed-width { display: inline-block; width: (16em / 14); padding-right: (4em / 14); text-align: right; - &.fa-large { + &.fa-lg { width: (20em / 14); } } diff --git a/less/mixins.less b/less/mixins.less index 099aa3080..a20f4bd60 100644 --- a/less/mixins.less +++ b/less/mixins.less @@ -31,8 +31,7 @@ height: @height; line-height: @width; vertical-align: -35%; - [class^="fa-"], - [class*=" fa-"] { + .fa { position: absolute; display: block; width: 100%; diff --git a/src/_includes/community/requesting-new-icons.html b/src/_includes/community/requesting-new-icons.html index d710e2bb1..1b723dea5 100644 --- a/src/_includes/community/requesting-new-icons.html +++ b/src/_includes/community/requesting-new-icons.html @@ -21,7 +21,7 @@
icon-spin
class to get any icon to rotate. Works well with icon-spinner
and
- icon-refresh
.
+ Use the fa-spin
class to get any icon to rotate. Works well with fa-spinner
,
+ fa-refresh
, and fa-cog
.
- CSS3 animations aren't supported in IE7 - IE9. + CSS3 animations aren't supported in IE7 - IE9.
- Use icon-border
and pull-right
or pull-left
for easy pull quotes or
+ Use fa-border
and pull-right
or pull-left
for easy pull quotes or
article graphics.
Easily replace individual bullets.
{% highlight html %} -- Reload + Reload - Checkout + Checkout
- Comment + Comment - Info + Info
- Delete + Delete - Settings + Settings
- Font Awesome
Version {{ site.fontawesome.version }}
+ Font Awesome
Version {{ site.fontawesome.version }}
- Synchronizing Content... + Synchronizing Content...
Font Awesome icons work great in buttons. You can even combine them with larger icon styles,
- pull-right
and pull-left
, and icon-spin
.
+ pull-right
and pull-left
, and fa-spin
.
- To increase the size of icons relative to its container, use icon-large
, icon-2x
,
- icon-3x
, or icon-4x
.
+ To increase the size of icons relative to its container, use fa-lg
, fa-2x
,
+ fa-3x
, or fa-4x
.
- Increase the icon size by using the icon-large
(33% increase), icon-2x
,
- icon-3x
, or icon-4x
classes.
+ Increase the icon size by using the fa-lg
(33% increase), fa-2x
,
+ fa-3x
, or fa-4x
classes.
icon-camera-retro
-icon-camera-retro
-icon-camera-retro
-icon-camera-retro
+fa-camera-retro
+fa-camera-retro
+fa-camera-retro
+fa-camera-retro
icon-camera-retro
-icon-camera-retro
-icon-camera-retro
-icon-camera-retro
+fa-camera-retro
+fa-camera-retro
+fa-camera-retro
+fa-camera-retro
{% endhighlight %}Use Font Awesome icons in navigation to provide helpful visual cues.
{% highlight html %} {% endhighlight %}- Rotating and flipping icons aren't yet supported in IE7. + Rotating and flipping icons aren't yet supported in IE7.
icon-stack
class on the parent and
- icon-stack-base
for the bottom icon.
+ A method for easily stacking multiple icons. Use the fa-stack
class on the parent and
+ fa-stack-base
for the bottom icon.