mirror of
https://github.com/ForkAwesome/Fork-Awesome.git
synced 2024-12-26 05:21:31 +08:00
622 lines
38 KiB
HTML
622 lines
38 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<!-- Basic Page Needs
|
|
================================================== -->
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<meta name="description" content="Font Awesome, the iconic font and CSS framework">
|
|
<meta name="author" content="Dave Gandy">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<link rel="shortcut icon" href="../assets/ico/favicon.ico">
|
|
|
|
<title>Font Awesome Examples</title>
|
|
|
|
<!-- CSS
|
|
================================================== -->
|
|
<link rel="stylesheet" href="../assets/css/site.css">
|
|
<link rel="stylesheet" href="../assets/css/pygments.css">
|
|
<link rel="stylesheet" href="../assets/font-awesome/css/font-awesome.css">
|
|
|
|
<!--[if lt IE 9]>
|
|
<script src="../assets/js/html5shiv.js"></script>
|
|
<script src="../assets/js/respond.min.js"></script>
|
|
<![endif]-->
|
|
|
|
<script type="text/javascript" src="//use.typekit.net/wnc7ioh.js"></script>
|
|
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>
|
|
|
|
<script type="text/javascript">
|
|
var _gaq = _gaq || [];
|
|
_gaq.push(['_setAccount', 'UA-30136587-1']);
|
|
_gaq.push(['_trackPageview']);
|
|
|
|
(function() {
|
|
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
|
|
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
|
|
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
|
|
})();
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<script type="text/javascript">
|
|
(function(){
|
|
var bsa = document.createElement('script');
|
|
bsa.type = 'text/javascript';
|
|
bsa.async = true;
|
|
bsa.src = 'http://s3.buysellads.com/ac/bsa.js';
|
|
(document.getElementsByTagName('head')[0]||document.getElementsByTagName('body')[0]).appendChild(bsa);
|
|
})();
|
|
</script>
|
|
<div id="wrap"> <!-- necessary for sticky footer. wrap all content except footer -->
|
|
<div class="navbar navbar-inverse navbar-static-top hidden-print">
|
|
<div class="container">
|
|
<div class="navbar-header">
|
|
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
|
|
<span class="sr-only">Toggle navigation</span>
|
|
<i class="fa fa-bars fa-lg"></i>
|
|
</button>
|
|
<a class="navbar-brand" href="../"><i class="fa fa-flag"></i> Font Awesome</a>
|
|
</div>
|
|
|
|
<div class="navbar-collapse collapse">
|
|
<ul class="nav navbar-nav">
|
|
<li class="hidden-sm "><a href="../">Home</a></li>
|
|
<li class="hidden-sm">
|
|
<a href="../whats-new/">What's New</a>
|
|
</li>
|
|
<li class="hidden-xs hidden-md hidden-lg">
|
|
<a href="../whats-new/">New</a>
|
|
</li>
|
|
<li><a href="../get-started/">Get Started</a></li>
|
|
<li class="dropdown-split-left"><a href="../icons/">Icons</a></li>
|
|
<li class="dropdown dropdown-split-right hidden-xs">
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
|
<i class="fa fa-caret-down"></i>
|
|
</a>
|
|
<ul class="dropdown-menu pull-right">
|
|
<li><a href="../icons/"><i class="fa fa-flag fa-fw"></i> Icons</a></li>
|
|
<li class="divider"></li>
|
|
<li><a href="../icons/#new"><i class="fa fa-cube fa-fw"></i> New Icons in 4.2</a></li>
|
|
<li><a href="../icons/#web-application"><i class="fa fa-camera-retro fa-fw"></i> Web Application Icons</a></li>
|
|
<li><a href="../icons/#file-type"><i class="fa fa-file-image-o fa-fw"></i> File Type Icons</a></li>
|
|
<li><a href="../icons/#spinner"><i class="fa fa-spinner fa-fw"></i> Spinner Icons</a></li>
|
|
<li><a href="../icons/#form-control"><i class="fa fa-check-square fa-fw"></i> Form Control Icons</a></li>
|
|
<li><a href="../icons/#payment"><i class="fa fa-credit-card fa-fw"></i> Payment Icons</a></li>
|
|
<li><a href="../icons/#chart"><i class="fa fa-pie-chart fa-fw"></i> Chart Icons</a></li>
|
|
<li><a href="../icons/#currency"><i class="fa fa-won fa-fw"></i> Currency Icons</a></li>
|
|
<li><a href="../icons/#text-editor"><i class="fa fa-file-text-o fa-fw"></i> Text Editor Icons</a></li>
|
|
<li><a href="../icons/#directional"><i class="fa fa-hand-o-right fa-fw"></i> Directional Icons</a></li>
|
|
<li><a href="../icons/#video-player"><i class="fa fa-play-circle fa-fw"></i> Video Player Icons</a></li>
|
|
<li><a href="../icons/#brand"><i class="fa fa-github fa-fw"></i> Brand Icons</a></li>
|
|
<li><a href="../icons/#medical"><i class="fa fa-medkit fa-fw"></i> Medical Icons</a></li>
|
|
</ul>
|
|
</li>
|
|
<li class="dropdown-split-left active"><a href="../examples/">Examples</a></li>
|
|
<li class="dropdown dropdown-split-right hidden-xs active">
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
|
<i class="fa fa-caret-down"></i>
|
|
</a>
|
|
<ul class="dropdown-menu pull-right">
|
|
<li><a href="../examples/">Examples</a></li>
|
|
<li class="divider"></li>
|
|
<li><a href="../examples/#basic">Basic Icons</a></li>
|
|
<li><a href="../examples/#larger">Larger Icons</a></li>
|
|
<li><a href="../examples/#fixed-width">Fixed Width Icons</a></li>
|
|
<li><a href="../examples/#list">List Icons</a></li>
|
|
<li><a href="../examples/#bordered-pulled">Bordered & Pulled Icons</a></li>
|
|
<li><a href="../examples/#spinning">Spinning Icons</a></li>
|
|
<li><a href="../examples/#rotated-flipped">Rotated & Flipped Icons</a></li>
|
|
<li><a href="../examples/#stacked">Stacked Icons</a></li>
|
|
<li><a href="../examples/#bootstrap">Bootstrap 3 Examples</a></li>
|
|
<li><a href="../examples/#custom">Custom CSS</a></li>
|
|
</ul>
|
|
</li>
|
|
<li><a href="../community/">Community</a></li>
|
|
<li><a href="../license/">License</a></li>
|
|
</ul>
|
|
<ul class="nav navbar-nav navbar-right">
|
|
<li><a href="http://blog.fontawesome.io">Blog</a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="jumbotron jumbotron-ad hidden-print">
|
|
<div class="container">
|
|
<h1><i class="fa fa-magic"></i> Examples</h1>
|
|
<p>Lots of easy ways to use Font Awesome</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="social-buttons" class="hidden-print">
|
|
<div class="container">
|
|
<ul class="list-inline">
|
|
<li>
|
|
<iframe class="github-btn" src="http://ghbtns.com/github-btn.html?user=FortAwesome&repo=Font-Awesome&type=watch&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="100px" height="20px"></iframe>
|
|
</li>
|
|
<li>
|
|
<iframe class="github-btn" src="http://ghbtns.com/github-btn.html?user=FortAwesome&repo=Font-Awesome&type=fork&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="102px" height="20px"></iframe>
|
|
</li>
|
|
<li class="follow-btn">
|
|
<a href="https://twitter.com/fontawesome" class="twitter-follow-button" data-link-color="#0069D6" data-show-count="true">Follow @fontawesome</a>
|
|
</li>
|
|
<li class="tweet-btn hidden-phone">
|
|
<a href="https://twitter.com/share" class="twitter-share-button" data-url="http://fontawesome.io" data-text="Font Awesome, the iconic font and CSS framework" data-counturl="http://fortawesome.github.com/Font-Awesome/" data-count="horizontal" data-via="fontawesome" data-related="davegandy:Creator of Font Awesome">Tweet</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="container">
|
|
|
|
<section class="hidden-print">
|
|
<div class="stripe-ad">
|
|
<script type="text/javascript" src="//cdn.fusionads.net/fusion.js?zoneid=1332&serve=C6SDP2Y&placement=fontawesome" id="_fusionads_js"></script>
|
|
|
|
|
|
<p class="lead">
|
|
After you <a href="../get-started/">get up and running</a>, you can place Font Awesome icons just about
|
|
anywhere with the <code><i></code> tag.
|
|
Some examples appreciatively re-used from the <a href="http://getbootstrap.com">Bootstrap documentation</a>.
|
|
</p>
|
|
|
|
</div>
|
|
</section>
|
|
|
|
|
|
<section id="basic">
|
|
<h2 class="page-header">
|
|
Basic Icons
|
|
<div class="pull-right text-default margin-top padding-top-sm hidden-xs">
|
|
<a href="https://github.com/FortAwesome/Font-Awesome/blob/v4.2.0/less/core.less" class="text-muted padding-right">View LESS</a>
|
|
<a href="https://github.com/FortAwesome/Font-Awesome/blob/v4.2.0/scss/_core.scss" class="text-muted">View SASS</a>
|
|
</div>
|
|
</h2>
|
|
|
|
<div class="row">
|
|
<div class="col-md-3 col-sm-4">
|
|
<p>
|
|
<i class="fa fa-camera-retro"></i> fa-camera-retro
|
|
</p>
|
|
</div>
|
|
<div class="col-md-9 col-sm-8">
|
|
<p>
|
|
You can place Font Awesome icons just about anywhere using the CSS Prefix <code>fa</code> and the icon's
|
|
name. Font Awesome is designed to be used with inline elements (we like the <code><i></code> tag for
|
|
brevity, but using a <code><span></code> is more semantically correct).
|
|
</p>
|
|
<div class="highlight"><pre><code class="html"><span class="nt"><i</span> <span class="na">class=</span><span class="s">"fa fa-camera-retro"</span><span class="nt">></i></span> fa-camera-retro
|
|
</code></pre></div>
|
|
<div class="alert alert-success">
|
|
<ul class="fa-ul">
|
|
<li>
|
|
<i class="fa fa-info-circle fa-lg fa-li"></i>
|
|
If you change the font-size of the icon's container, the icon gets bigger. Same things goes for color,
|
|
drop shadow, and anything else that gets inherited using CSS.
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<section id="larger">
|
|
<h2 class="page-header">
|
|
Larger Icons
|
|
<div class="pull-right text-default margin-top padding-top-sm hidden-xs">
|
|
<a href="https://github.com/FortAwesome/Font-Awesome/blob/v4.2.0/less/larger.less" class="text-muted padding-right">View LESS</a>
|
|
<a href="https://github.com/FortAwesome/Font-Awesome/blob/v4.2.0/scss/_larger.scss" class="text-muted">View SASS</a>
|
|
</div>
|
|
</h2>
|
|
<div class="row">
|
|
<div class="col-md-3 col-sm-4">
|
|
<p><i class="fa fa-camera-retro fa-lg"></i> fa-lg</p>
|
|
<p><i class="fa fa-camera-retro fa-2x"></i> fa-2x</p>
|
|
<p><i class="fa fa-camera-retro fa-3x"></i> fa-3x</p>
|
|
<p><i class="fa fa-camera-retro fa-4x"></i> fa-4x</p>
|
|
<p><i class="fa fa-camera-retro fa-5x"></i> fa-5x</p>
|
|
</div>
|
|
<div class="col-md-9 col-sm-8">
|
|
<p>
|
|
To increase icon sizes relative to their container, use the <code>fa-lg</code> (33% increase), <code>fa-2x</code>,
|
|
<code>fa-3x</code>, <code>fa-4x</code>, or <code>fa-5x</code> classes.
|
|
</p>
|
|
<div class="highlight"><pre><code class="html"><span class="nt"><i</span> <span class="na">class=</span><span class="s">"fa fa-camera-retro fa-lg"</span><span class="nt">></i></span> fa-lg
|
|
<span class="nt"><i</span> <span class="na">class=</span><span class="s">"fa fa-camera-retro fa-2x"</span><span class="nt">></i></span> fa-2x
|
|
<span class="nt"><i</span> <span class="na">class=</span><span class="s">"fa fa-camera-retro fa-3x"</span><span class="nt">></i></span> fa-3x
|
|
<span class="nt"><i</span> <span class="na">class=</span><span class="s">"fa fa-camera-retro fa-4x"</span><span class="nt">></i></span> fa-4x
|
|
<span class="nt"><i</span> <span class="na">class=</span><span class="s">"fa fa-camera-retro fa-5x"</span><span class="nt">></i></span> fa-5x
|
|
</code></pre></div>
|
|
<div class="alert alert-success">
|
|
<ul class="fa-ul">
|
|
<li>
|
|
<i class="fa fa-exclamation-triangle fa-li fa-lg"></i>
|
|
If your icons are getting chopped off on top and bottom, make sure you have
|
|
sufficient line-height.
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<section id="fixed-width">
|
|
<h2 class="page-header">
|
|
Fixed Width Icons
|
|
<div class="pull-right text-default margin-top padding-top-sm hidden-xs">
|
|
<a href="https://github.com/FortAwesome/Font-Awesome/blob/v4.2.0/less/fixed-width.less" class="text-muted padding-right">View LESS</a>
|
|
<a href="https://github.com/FortAwesome/Font-Awesome/blob/v4.2.0/scss/_fixed-width.scss" class="text-muted">View SASS</a>
|
|
</div>
|
|
</h2>
|
|
<div class="row">
|
|
<div class="col-md-3 col-sm-4">
|
|
<div class="list-group">
|
|
<a class="list-group-item" href="#"><i class="fa fa-home fa-fw"></i> Home</a>
|
|
<a class="list-group-item" href="#"><i class="fa fa-book fa-fw"></i> Library</a>
|
|
<a class="list-group-item" href="#"><i class="fa fa-pencil fa-fw"></i> Applications</a>
|
|
<a class="list-group-item" href="#"><i class="fa fa-cog fa-fw"></i> Settings</a>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-9 col-sm-8">
|
|
<p>
|
|
Use <code>fa-fw</code> to set icons at a fixed width. Great to use when different icon widths throw off alignment.
|
|
Especially useful in things like nav lists & list groups.
|
|
</p>
|
|
<div class="highlight"><pre><code class="html"><span class="nt"><div</span> <span class="na">class=</span><span class="s">"list-group"</span><span class="nt">></span>
|
|
<span class="nt"><a</span> <span class="na">class=</span><span class="s">"list-group-item"</span> <span class="na">href=</span><span class="s">"#"</span><span class="nt">><i</span> <span class="na">class=</span><span class="s">"fa fa-home fa-fw"</span><span class="nt">></i></span><span class="ni">&nbsp;</span> Home<span class="nt"></a></span>
|
|
<span class="nt"><a</span> <span class="na">class=</span><span class="s">"list-group-item"</span> <span class="na">href=</span><span class="s">"#"</span><span class="nt">><i</span> <span class="na">class=</span><span class="s">"fa fa-book fa-fw"</span><span class="nt">></i></span><span class="ni">&nbsp;</span> Library<span class="nt"></a></span>
|
|
<span class="nt"><a</span> <span class="na">class=</span><span class="s">"list-group-item"</span> <span class="na">href=</span><span class="s">"#"</span><span class="nt">><i</span> <span class="na">class=</span><span class="s">"fa fa-pencil fa-fw"</span><span class="nt">></i></span><span class="ni">&nbsp;</span> Applications<span class="nt"></a></span>
|
|
<span class="nt"><a</span> <span class="na">class=</span><span class="s">"list-group-item"</span> <span class="na">href=</span><span class="s">"#"</span><span class="nt">><i</span> <span class="na">class=</span><span class="s">"fa fa-cog fa-fw"</span><span class="nt">></i></span><span class="ni">&nbsp;</span> Settings<span class="nt"></a></span>
|
|
<span class="nt"></div></span>
|
|
</code></pre></div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<section id="list">
|
|
<h2 class="page-header">
|
|
List Icons
|
|
<div class="pull-right text-default margin-top padding-top-sm hidden-xs">
|
|
<a href="https://github.com/FortAwesome/Font-Awesome/blob/v4.2.0/less/list.less" class="text-muted padding-right">View LESS</a>
|
|
<a href="https://github.com/FortAwesome/Font-Awesome/blob/v4.2.0/scss/_list.scss" class="text-muted">View SASS</a>
|
|
</div>
|
|
</h2>
|
|
<div class="row">
|
|
<div class="col-md-3 col-sm-4">
|
|
<ul class="fa-ul">
|
|
<li><i class="fa-li fa fa-check-square"></i>List icons</li>
|
|
<li><i class="fa-li fa fa-check-square"></i>can be used</li>
|
|
<li><i class="fa-li fa fa-spinner fa-spin"></i>as bullets</li>
|
|
<li><i class="fa-li fa fa-square"></i>in lists</li>
|
|
</ul>
|
|
</div>
|
|
<div class="col-md-9 col-sm-8">
|
|
<p>Use <code>fa-ul</code> and <code>fa-li</code> to easily replace default bullets in unordered lists.</p>
|
|
<div class="highlight"><pre><code class="html"><span class="nt"><ul</span> <span class="na">class=</span><span class="s">"fa-ul"</span><span class="nt">></span>
|
|
<span class="nt"><li><i</span> <span class="na">class=</span><span class="s">"fa-li fa fa-check-square"</span><span class="nt">></i></span>List icons<span class="nt"></li></span>
|
|
<span class="nt"><li><i</span> <span class="na">class=</span><span class="s">"fa-li fa fa-check-square"</span><span class="nt">></i></span>can be used<span class="nt"></li></span>
|
|
<span class="nt"><li><i</span> <span class="na">class=</span><span class="s">"fa-li fa fa-spinner fa-spin"</span><span class="nt">></i></span>as bullets<span class="nt"></li></span>
|
|
<span class="nt"><li><i</span> <span class="na">class=</span><span class="s">"fa-li fa fa-square"</span><span class="nt">></i></span>in lists<span class="nt"></li></span>
|
|
<span class="nt"></ul></span>
|
|
</code></pre></div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<section id="bordered-pulled">
|
|
<h2 class="page-header">
|
|
Bordered & Pulled Icons
|
|
<div class="pull-right text-default margin-top padding-top-sm hidden-xs">
|
|
<a href="https://github.com/FortAwesome/Font-Awesome/blob/v4.2.0/less/bordered-pulled.less" class="text-muted padding-right">View LESS</a>
|
|
<a href="https://github.com/FortAwesome/Font-Awesome/blob/v4.2.0/scss/_bordered-pulled.scss" class="text-muted">View SASS</a>
|
|
</div>
|
|
</h2>
|
|
<div class="row">
|
|
<div class="col-md-3 col-sm-4">
|
|
<p>
|
|
<i class="fa fa-quote-left fa-3x pull-left fa-border"></i>
|
|
…tomorrow we will run faster, stretch out our arms farther… And then one fine morning—
|
|
So we beat on, boats against the current, borne back ceaselessly into the past.
|
|
</p>
|
|
</div>
|
|
<div class="col-md-9 col-sm-8">
|
|
<p>
|
|
Use <code>fa-border</code> and <code>pull-right</code> or <code>pull-left</code> for easy pull quotes or
|
|
article icons.
|
|
</p>
|
|
<div class="highlight"><pre><code class="html"><span class="nt"><i</span> <span class="na">class=</span><span class="s">"fa fa-quote-left fa-3x pull-left fa-border"</span><span class="nt">></i></span>
|
|
...tomorrow we will run faster, stretch out our arms farther...
|
|
And then one fine morning— So we beat on, boats against the
|
|
current, borne back ceaselessly into the past.
|
|
</code></pre></div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<section id="spinning">
|
|
<h2 class="page-header">
|
|
Spinning Icons
|
|
<div class="pull-right text-default margin-top padding-top-sm hidden-xs">
|
|
<a href="https://github.com/FortAwesome/Font-Awesome/blob/v4.2.0/less/spinning.less" class="text-muted padding-right">View LESS</a>
|
|
<a href="https://github.com/FortAwesome/Font-Awesome/blob/v4.2.0/scss/_spinning.scss" class="text-muted">View SASS</a>
|
|
</div>
|
|
</h2>
|
|
<div class="row">
|
|
<div class="col-md-3 col-sm-4">
|
|
<p>
|
|
<button class="btn btn-default btn-lg"><i class="fa fa-spinner fa-spin"></i></button>
|
|
<button class="btn btn-default btn-lg"><i class="fa fa-circle-o-notch fa-spin"></i></button>
|
|
<button class="btn btn-default btn-lg"><i class="fa fa-refresh fa-spin"></i></button>
|
|
<button class="btn btn-default btn-lg"><i class="fa fa-cog fa-spin"></i></button>
|
|
</p>
|
|
</div>
|
|
<div class="col-md-9 col-sm-8">
|
|
<p>
|
|
Use the <code>fa-spin</code> class to get any icon to rotate. Works well with <code>fa-spinner</code>,
|
|
<code>fa-refresh</code>, and <code>fa-cog</code>.
|
|
</p>
|
|
<div class="highlight"><pre><code class="html"><span class="nt"><i</span> <span class="na">class=</span><span class="s">"fa fa-spinner fa-spin"</span><span class="nt">></i></span>
|
|
<span class="nt"><i</span> <span class="na">class=</span><span class="s">"fa fa-circle-o-notch fa-spin"</span><span class="nt">></i></span>
|
|
<span class="nt"><i</span> <span class="na">class=</span><span class="s">"fa fa-refresh fa-spin"</span><span class="nt">></i></span>
|
|
<span class="nt"><i</span> <span class="na">class=</span><span class="s">"fa fa-cog fa-spin"</span><span class="nt">></i></span>
|
|
</code></pre></div>
|
|
<p class="alert alert-success">
|
|
<i class="fa fa-info-circle"></i> CSS3 animations aren't supported in IE8 - IE9.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<section id="rotated-flipped">
|
|
<h2 class="page-header">
|
|
Rotated & Flipped
|
|
<div class="pull-right text-default margin-top padding-top-sm hidden-xs">
|
|
<a href="https://github.com/FortAwesome/Font-Awesome/blob/v4.2.0/less/rotated-flipped.less" class="text-muted padding-right">View LESS</a>
|
|
<a href="https://github.com/FortAwesome/Font-Awesome/blob/v4.2.0/scss/_rotated-flipped.scss" class="text-muted">View SASS</a>
|
|
</div>
|
|
</h2>
|
|
<div class="row">
|
|
<div class="col-md-3 col-sm-4">
|
|
<p style="font-size: 18px;">
|
|
<i class="fa fa-shield"></i> normal<br>
|
|
<i class="fa fa-shield fa-rotate-90"></i> fa-rotate-90<br>
|
|
<i class="fa fa-shield fa-rotate-180"></i> fa-rotate-180<br>
|
|
<i class="fa fa-shield fa-rotate-270"></i> fa-rotate-270<br>
|
|
<i class="fa fa-shield fa-flip-horizontal"></i> fa-flip-horizontal<br>
|
|
<i class="fa fa-shield fa-flip-vertical"></i> fa-flip-vertical
|
|
</p>
|
|
</div>
|
|
<div class="col-md-9 col-sm-8">
|
|
<p>
|
|
To arbitrarily rotate and flip icons, use the <code>fa-rotate-*</code> and <code>fa-flip-*</code> classes.
|
|
</p>
|
|
<div class="highlight"><pre><code class="html"><span class="nt"><i</span> <span class="na">class=</span><span class="s">"fa fa-shield"</span><span class="nt">></i></span> normal<span class="nt"><br></span>
|
|
<span class="nt"><i</span> <span class="na">class=</span><span class="s">"fa fa-shield fa-rotate-90"</span><span class="nt">></i></span> fa-rotate-90<span class="nt"><br></span>
|
|
<span class="nt"><i</span> <span class="na">class=</span><span class="s">"fa fa-shield fa-rotate-180"</span><span class="nt">></i></span> fa-rotate-180<span class="nt"><br></span>
|
|
<span class="nt"><i</span> <span class="na">class=</span><span class="s">"fa fa-shield fa-rotate-270"</span><span class="nt">></i></span> fa-rotate-270<span class="nt"><br></span>
|
|
<span class="nt"><i</span> <span class="na">class=</span><span class="s">"fa fa-shield fa-flip-horizontal"</span><span class="nt">></i></span> fa-flip-horizontal<span class="nt"><br></span>
|
|
<span class="nt"><i</span> <span class="na">class=</span><span class="s">"fa fa-shield fa-flip-vertical"</span><span class="nt">></i></span> icon-flip-vertical
|
|
</code></pre></div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<section id="stacked">
|
|
<h2 class="page-header">
|
|
Stacked Icons
|
|
<div class="pull-right text-default margin-top padding-top-sm hidden-xs">
|
|
<a href="https://github.com/FortAwesome/Font-Awesome/blob/v4.2.0/less/stacked.less" class="text-muted padding-right">View LESS</a>
|
|
<a href="https://github.com/FortAwesome/Font-Awesome/blob/v4.2.0/scss/_stacked.scss" class="text-muted">View SASS</a>
|
|
</div>
|
|
</h2>
|
|
<div class="row">
|
|
<div class="col-md-3 col-sm-4">
|
|
<div class="margin-bottom">
|
|
<span class="fa-stack fa-lg">
|
|
<i class="fa fa-square-o fa-stack-2x"></i>
|
|
<i class="fa fa-twitter fa-stack-1x"></i>
|
|
</span>
|
|
fa-twitter on fa-square-o<br>
|
|
<span class="fa-stack fa-lg">
|
|
<i class="fa fa-circle fa-stack-2x"></i>
|
|
<i class="fa fa-flag fa-stack-1x fa-inverse"></i>
|
|
</span>
|
|
fa-flag on fa-circle<br>
|
|
<span class="fa-stack fa-lg">
|
|
<i class="fa fa-square fa-stack-2x"></i>
|
|
<i class="fa fa-terminal fa-stack-1x fa-inverse"></i>
|
|
</span>
|
|
fa-terminal on fa-square<br>
|
|
<span class="fa-stack fa-lg">
|
|
<i class="fa fa-camera fa-stack-1x"></i>
|
|
<i class="fa fa-ban fa-stack-2x text-danger"></i>
|
|
</span>
|
|
fa-ban on fa-camera
|
|
</div>
|
|
</div>
|
|
<div class="col-md-9 col-sm-8">
|
|
<p>
|
|
To stack multiple icons, use the <code>fa-stack</code> class on the parent, the <code>fa-stack-1x</code>
|
|
for the regularly sized icon, and <code>fa-stack-2x</code> for the larger icon. <code>fa-inverse</code>
|
|
can be used as an alternative icon color. You can even throw <a href="#larger">larger icon</a> classes on the parent
|
|
to get further control of sizing.
|
|
</p>
|
|
<div class="highlight"><pre><code class="html"><span class="nt"><span</span> <span class="na">class=</span><span class="s">"fa-stack fa-lg"</span><span class="nt">></span>
|
|
<span class="nt"><i</span> <span class="na">class=</span><span class="s">"fa fa-square-o fa-stack-2x"</span><span class="nt">></i></span>
|
|
<span class="nt"><i</span> <span class="na">class=</span><span class="s">"fa fa-twitter fa-stack-1x"</span><span class="nt">></i></span>
|
|
<span class="nt"></span></span>
|
|
fa-twitter on fa-square-o<span class="nt"><br></span>
|
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"fa-stack fa-lg"</span><span class="nt">></span>
|
|
<span class="nt"><i</span> <span class="na">class=</span><span class="s">"fa fa-circle fa-stack-2x"</span><span class="nt">></i></span>
|
|
<span class="nt"><i</span> <span class="na">class=</span><span class="s">"fa fa-flag fa-stack-1x fa-inverse"</span><span class="nt">></i></span>
|
|
<span class="nt"></span></span>
|
|
fa-flag on fa-circle<span class="nt"><br></span>
|
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"fa-stack fa-lg"</span><span class="nt">></span>
|
|
<span class="nt"><i</span> <span class="na">class=</span><span class="s">"fa fa-square fa-stack-2x"</span><span class="nt">></i></span>
|
|
<span class="nt"><i</span> <span class="na">class=</span><span class="s">"fa fa-terminal fa-stack-1x fa-inverse"</span><span class="nt">></i></span>
|
|
<span class="nt"></span></span>
|
|
fa-terminal on fa-square<span class="nt"><br></span>
|
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"fa-stack fa-lg"</span><span class="nt">></span>
|
|
<span class="nt"><i</span> <span class="na">class=</span><span class="s">"fa fa-camera fa-stack-1x"</span><span class="nt">></i></span>
|
|
<span class="nt"><i</span> <span class="na">class=</span><span class="s">"fa fa-ban fa-stack-2x text-danger"</span><span class="nt">></i></span>
|
|
<span class="nt"></span></span>
|
|
fa-ban on fa-camera
|
|
</code></pre></div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<section id="bootstrap">
|
|
<h2 class="page-header">Bootstrap 3 Examples</h2>
|
|
<div class="row">
|
|
<div class="col-md-3 col-sm-4">
|
|
<p>
|
|
<a class="btn btn-danger" href="#">
|
|
<i class="fa fa-trash-o fa-lg"></i> Delete</a>
|
|
<a class="btn btn-default btn-sm" href="#">
|
|
<i class="fa fa-cog"></i> Settings</a>
|
|
</p>
|
|
<p>
|
|
<a class="btn btn-lg btn-success" href="#">
|
|
<i class="fa fa-flag fa-2x pull-left"></i> Font Awesome<br>Version 4.2.0</a>
|
|
</p>
|
|
<div class="margin-bottom">
|
|
<div class="btn-group">
|
|
<a class="btn btn-default" href="#"><i class="fa fa-align-left"></i></a>
|
|
<a class="btn btn-default" href="#"><i class="fa fa-align-center"></i></a>
|
|
<a class="btn btn-default" href="#"><i class="fa fa-align-right"></i></a>
|
|
<a class="btn btn-default" href="#"><i class="fa fa-align-justify"></i></a>
|
|
</div>
|
|
</div>
|
|
<div class="margin-bottom">
|
|
<div class="input-group margin-bottom-sm">
|
|
<span class="input-group-addon"><i class="fa fa-envelope-o fa-fw"></i></span>
|
|
<input class="form-control" type="text" placeholder="Email address">
|
|
</div>
|
|
<div class="input-group">
|
|
<span class="input-group-addon"><i class="fa fa-key fa-fw"></i></span>
|
|
<input class="form-control" type="password" placeholder="Password">
|
|
</div>
|
|
</div>
|
|
<div class="margin-bottom">
|
|
<div class="btn-group open">
|
|
<a class="btn btn-primary" href="#"><i class="fa fa-user fa-fw"></i> User</a>
|
|
<a class="btn btn-primary dropdown-toggle" data-toggle="dropdown" href="#">
|
|
<span class="fa fa-caret-down"></span></a>
|
|
<ul class="dropdown-menu">
|
|
<li><a href="#"><i class="fa fa-pencil fa-fw"></i> Edit</a></li>
|
|
<li><a href="#"><i class="fa fa-trash-o fa-fw"></i> Delete</a></li>
|
|
<li><a href="#"><i class="fa fa-ban fa-fw"></i> Ban</a></li>
|
|
<li class="divider"></li>
|
|
<li><a href="#"><i class="i"></i> Make admin</a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<div class="col-md-9 col-sm-8">
|
|
<p>
|
|
Font Awesome works great with the full range of Bootstrap components.
|
|
</p>
|
|
<div class="highlight"><pre><code class="html"><span class="nt"><a</span> <span class="na">class=</span><span class="s">"btn btn-danger"</span> <span class="na">href=</span><span class="s">"#"</span><span class="nt">></span>
|
|
<span class="nt"><i</span> <span class="na">class=</span><span class="s">"fa fa-trash-o fa-lg"</span><span class="nt">></i></span> Delete<span class="nt"></a></span>
|
|
<span class="nt"><a</span> <span class="na">class=</span><span class="s">"btn btn-default btn-sm"</span> <span class="na">href=</span><span class="s">"#"</span><span class="nt">></span>
|
|
<span class="nt"><i</span> <span class="na">class=</span><span class="s">"fa fa-cog"</span><span class="nt">></i></span> Settings<span class="nt"></a></span>
|
|
|
|
<span class="nt"><a</span> <span class="na">class=</span><span class="s">"btn btn-lg btn-success"</span> <span class="na">href=</span><span class="s">"#"</span><span class="nt">></span>
|
|
<span class="nt"><i</span> <span class="na">class=</span><span class="s">"fa fa-flag fa-2x pull-left"</span><span class="nt">></i></span> Font Awesome<span class="nt"><br></span>Version 4.2.0<span class="nt"></a></span>
|
|
|
|
<span class="nt"><div</span> <span class="na">class=</span><span class="s">"btn-group"</span><span class="nt">></span>
|
|
<span class="nt"><a</span> <span class="na">class=</span><span class="s">"btn btn-default"</span> <span class="na">href=</span><span class="s">"#"</span><span class="nt">><i</span> <span class="na">class=</span><span class="s">"fa fa-align-left"</span><span class="nt">></i></a></span>
|
|
<span class="nt"><a</span> <span class="na">class=</span><span class="s">"btn btn-default"</span> <span class="na">href=</span><span class="s">"#"</span><span class="nt">><i</span> <span class="na">class=</span><span class="s">"fa fa-align-center"</span><span class="nt">></i></a></span>
|
|
<span class="nt"><a</span> <span class="na">class=</span><span class="s">"btn btn-default"</span> <span class="na">href=</span><span class="s">"#"</span><span class="nt">><i</span> <span class="na">class=</span><span class="s">"fa fa-align-right"</span><span class="nt">></i></a></span>
|
|
<span class="nt"><a</span> <span class="na">class=</span><span class="s">"btn btn-default"</span> <span class="na">href=</span><span class="s">"#"</span><span class="nt">><i</span> <span class="na">class=</span><span class="s">"fa fa-align-justify"</span><span class="nt">></i></a></span>
|
|
<span class="nt"></div></span>
|
|
|
|
<span class="nt"><div</span> <span class="na">class=</span><span class="s">"input-group margin-bottom-sm"</span><span class="nt">></span>
|
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"input-group-addon"</span><span class="nt">><i</span> <span class="na">class=</span><span class="s">"fa fa-envelope-o fa-fw"</span><span class="nt">></i></span></span>
|
|
<span class="nt"><input</span> <span class="na">class=</span><span class="s">"form-control"</span> <span class="na">type=</span><span class="s">"text"</span> <span class="na">placeholder=</span><span class="s">"Email address"</span><span class="nt">></span>
|
|
<span class="nt"></div></span>
|
|
<span class="nt"><div</span> <span class="na">class=</span><span class="s">"input-group"</span><span class="nt">></span>
|
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"input-group-addon"</span><span class="nt">><i</span> <span class="na">class=</span><span class="s">"fa fa-key fa-fw"</span><span class="nt">></i></span></span>
|
|
<span class="nt"><input</span> <span class="na">class=</span><span class="s">"form-control"</span> <span class="na">type=</span><span class="s">"password"</span> <span class="na">placeholder=</span><span class="s">"Password"</span><span class="nt">></span>
|
|
<span class="nt"></div></span>
|
|
|
|
<span class="nt"><div</span> <span class="na">class=</span><span class="s">"btn-group open"</span><span class="nt">></span>
|
|
<span class="nt"><a</span> <span class="na">class=</span><span class="s">"btn btn-primary"</span> <span class="na">href=</span><span class="s">"#"</span><span class="nt">><i</span> <span class="na">class=</span><span class="s">"fa fa-user fa-fw"</span><span class="nt">></i></span> User<span class="nt"></a></span>
|
|
<span class="nt"><a</span> <span class="na">class=</span><span class="s">"btn btn-primary dropdown-toggle"</span> <span class="na">data-toggle=</span><span class="s">"dropdown"</span> <span class="na">href=</span><span class="s">"#"</span><span class="nt">></span>
|
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"fa fa-caret-down"</span><span class="nt">></span></a></span>
|
|
<span class="nt"><ul</span> <span class="na">class=</span><span class="s">"dropdown-menu"</span><span class="nt">></span>
|
|
<span class="nt"><li><a</span> <span class="na">href=</span><span class="s">"#"</span><span class="nt">><i</span> <span class="na">class=</span><span class="s">"fa fa-pencil fa-fw"</span><span class="nt">></i></span> Edit<span class="nt"></a></li></span>
|
|
<span class="nt"><li><a</span> <span class="na">href=</span><span class="s">"#"</span><span class="nt">><i</span> <span class="na">class=</span><span class="s">"fa fa-trash-o fa-fw"</span><span class="nt">></i></span> Delete<span class="nt"></a></li></span>
|
|
<span class="nt"><li><a</span> <span class="na">href=</span><span class="s">"#"</span><span class="nt">><i</span> <span class="na">class=</span><span class="s">"fa fa-ban fa-fw"</span><span class="nt">></i></span> Ban<span class="nt"></a></li></span>
|
|
<span class="nt"><li</span> <span class="na">class=</span><span class="s">"divider"</span><span class="nt">></li></span>
|
|
<span class="nt"><li><a</span> <span class="na">href=</span><span class="s">"#"</span><span class="nt">><i</span> <span class="na">class=</span><span class="s">"i"</span><span class="nt">></i></span> Make admin<span class="nt"></a></li></span>
|
|
<span class="nt"></ul></span>
|
|
<span class="nt"></div></span>
|
|
</code></pre></div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<section id="custom">
|
|
<h2 class="page-header">Custom CSS</h2>
|
|
<div class="row">
|
|
<div class="col-md-3 col-sm-4">
|
|
<p>Anything you can do with CSS font styles, you can do with Font Awesome.</p>
|
|
</div>
|
|
<div class="col-md-9 col-sm-8">
|
|
<p>Star Ratings (inspired by <a href="http://css-tricks.com/star-ratings/" target="_blank">CSS Tricks</a>)</p>
|
|
<div class="well">
|
|
<span class="rating">
|
|
<span class="star"></span><span class="star"></span><span class="star"></span><span class="star"></span><span class="star"></span>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<footer id="footer" class="footer hidden-print">
|
|
<div class="container text-center">
|
|
<div id="bsap_1298241" class="bsarocks bsap_b1146e3f9fa32a794fc6d2c7be47ece8"></div>
|
|
<div>
|
|
<i class="fa fa-flag"></i> Font Awesome 4.2.0
|
|
<span class="hide-xs">·</span><br class="hide-sm hide-md hide-lg">
|
|
Created by <a href="http://twitter.com/davegandy">Dave Gandy</a>
|
|
</div>
|
|
<div>
|
|
Font Awesome licensed under <a href="http://scripts.sil.org/OFL">SIL OFL 1.1</a>
|
|
<span class="hide-xs">·</span><br class="hide-sm hide-md hide-lg">
|
|
Code licensed under <a href="http://opensource.org/licenses/mit-license.html">MIT License</a>
|
|
<span class="hide-xs hide-sm">·</span><br class="hide-md hide-lg">
|
|
Documentation licensed under <a href="http://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>
|
|
</div>
|
|
<div>
|
|
Thanks to <a href="http://maxcdn.com"><i class="fa fa-maxcdn"></i> MaxCDN</a> for providing the excellent <a href="http://www.bootstrapcdn.com/#fontawesome_tab">BootstrapCDN for Font Awesome</a>
|
|
</div>
|
|
<div class="project">
|
|
<a href="https://github.com/FortAwesome/Font-Awesome">GitHub Project</a> ·
|
|
<a href="https://github.com/FortAwesome/Font-Awesome/issues">Issues</a> ·
|
|
<a href="../3.2.1">Old 3.2.1 Docs</a>
|
|
</div>
|
|
</div>
|
|
</footer>
|
|
|
|
|
|
<script src="http://platform.twitter.com/widgets.js"></script>
|
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
|
<script src="//netdna.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
|
|
<script src="../assets/js/site.js"></script>
|
|
|
|
</body>
|
|
</html>
|