mirror of
https://github.com/ForkAwesome/Fork-Awesome.git
synced 2024-12-26 05:21:31 +08:00
883 lines
57 KiB
HTML
883 lines
57 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">
|
|
<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 src="https://use.fonticons.com/ffe176a3.js"></script>
|
|
|
|
<script>
|
|
var _gaq = _gaq || [];
|
|
_gaq.push(['_setAccount', 'UA-30136587-1']);
|
|
_gaq.push(['_trackPageview']);
|
|
|
|
(function() {
|
|
var ga = document.createElement('script');
|
|
ga.src = 'https://www.google-analytics.com/ga.js';
|
|
var s = document.scripts[0];
|
|
s.parentNode.insertBefore(ga, s);
|
|
})();
|
|
</script>
|
|
</head>
|
|
<body class="font-awesome ">
|
|
<script>
|
|
(function(){
|
|
var bsa = document.createElement('script');
|
|
bsa.src = 'https://s3.buysellads.com/ac/bsa.js';
|
|
var s = document.scripts[0];
|
|
s.parentNode.insertBefore(bsa, s);
|
|
})();
|
|
</script>
|
|
<div id="wrap"> <!-- necessary for sticky footer. wrap all content except footer -->
|
|
<div class="collapse hidden-print" id="banner">
|
|
<div class="container">
|
|
<div class="message-container">
|
|
<div class="tagline">
|
|
<span id="rotating-message"></span>
|
|
</div>
|
|
<div class="action">
|
|
<a id="rotating-url" class="btn btn-primary btn-block" href=""></a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="navbar navbar-org navbar-static-top">
|
|
<div class="container">
|
|
<ul class="nav navbar-nav navbar-right">
|
|
<li>
|
|
<a href="http://fortawesome.com/start?utm_source=font_awesome_navbar&utm_medium=display&utm_content=font_awesome_navbar&utm_campaign=promo_4.6_update" data-toggle="tooltip" data-container="body" data-placement="bottom" data-html="true" title="Take your front end game<br>to the next level!">
|
|
<i class="fa fa-fort-awesome fa-lg valign-baseline"></i>
|
|
Fort Awesome
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a href="http://symbolset.com/?utm_source=font_awesome_navbar&utm_medium=display&utm_content=font_awesome_navbar&utm_campaign=promo_4.6_update" data-toggle="tooltip" data-container="body" data-placement="bottom" data-html="true" title="Get the perfect icon set!">
|
|
<i class="fas fas-heart-ss"></i>
|
|
Symbolset
|
|
</a>
|
|
</li>
|
|
<li class="active">
|
|
<a href="http://fontawesome.io/?utm_source=font_awesome_navbar&utm_medium=display&utm_content=font_awesome_navbar&utm_campaign=promo_4.6_update" data-toggle="tooltip" data-container="body" data-placement="bottom" data-html="true" title="The iconic font<br>& CSS toolkit">
|
|
<i class="fa fa-font-awesome"></i>
|
|
Font Awesome</a>
|
|
</li>
|
|
</ul>
|
|
<div class="navbar-text navbar-right hide-xs">Build and serve a faster front end!</div>
|
|
</div>
|
|
</div>
|
|
|
|
<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">
|
|
<i class="fa fa-bars fa-lg" aria-hidden="true" title="Toggle navigation"></i>
|
|
<span class="sr-only">Toggle navigation</span>
|
|
</button>
|
|
<a class="navbar-brand" href="../"><i class="fa fa-font-awesome" aria-hidden="true"></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 class="hidden-sm"><a href="../get-started/">Get Started</a></li>
|
|
<li class="hidden-xs hidden-md hidden-lg">
|
|
<a href="../get-started/">Start</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" aria-hidden="true" title="Toggle dropdown menu"></i>
|
|
<span class="sr-only">Toggle dropdown menu</span>
|
|
<span class="toggle drop down"></span>
|
|
</a>
|
|
<ul class="dropdown-menu pull-right">
|
|
<li><a href="../icons/"><i class="fa fa-flag fa-fw" aria-hidden="true"></i> All Icons</a></li>
|
|
<li class="divider"></li>
|
|
<li><a href="../icons/#new"><i class="fa fa-wheelchair-alt fa-fw" aria-hidden="true"></i> New Icons in 4.6</a></li>
|
|
<li><a href="../icons/#web-application"><i class="fa fa-camera-retro fa-fw" aria-hidden="true"></i> Web Application Icons</a></li>
|
|
<li><a href="../icons/#accessibility"><i class="fa fa-universal-access fa-fw" aria-hidden="true"></i> Accessibility Icons</a></li>
|
|
<li><a href="../icons/#hand"><i class="fa fa-hand-spock-o fa-fw" aria-hidden="true"></i> Hand Icons</a></li>
|
|
<li><a href="../icons/#transportation"><i class="fa fa-ship fa-fw" aria-hidden="true"></i> Transportation Icons</a></li>
|
|
<li><a href="../icons/#gender"><i class="fa fa-venus fa-fw" aria-hidden="true"></i> Gender Icons</a></li>
|
|
<li><a href="../icons/#file-type"><i class="fa fa-file-image-o fa-fw" aria-hidden="true"></i> File Type Icons</a></li>
|
|
<li><a href="../icons/#spinner"><i class="fa fa-spinner fa-fw" aria-hidden="true"></i> Spinner Icons</a></li>
|
|
<li><a href="../icons/#form-control"><i class="fa fa-check-square fa-fw" aria-hidden="true"></i> Form Control Icons</a></li>
|
|
<li><a href="../icons/#payment"><i class="fa fa-credit-card fa-fw" aria-hidden="true"></i> Payment Icons</a></li>
|
|
<li><a href="../icons/#chart"><i class="fa fa-pie-chart fa-fw" aria-hidden="true"></i> Chart Icons</a></li>
|
|
<li><a href="../icons/#currency"><i class="fa fa-won fa-fw" aria-hidden="true"></i> Currency Icons</a></li>
|
|
<li><a href="../icons/#text-editor"><i class="fa fa-file-text-o fa-fw" aria-hidden="true"></i> Text Editor Icons</a></li>
|
|
<li><a href="../icons/#directional"><i class="fa fa-arrow-right fa-fw" aria-hidden="true"></i> Directional Icons</a></li>
|
|
<li><a href="../icons/#video-player"><i class="fa fa-play-circle fa-fw" aria-hidden="true"></i> Video Player Icons</a></li>
|
|
<li><a href="../icons/#brand"><i class="fa fa-facebook-official fa-fw" aria-hidden="true"></i> Brand Icons</a></li>
|
|
<li><a href="../icons/#medical"><i class="fa fa-medkit fa-fw" aria-hidden="true"></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" aria-hidden="true" title="Toggle dropdown menu"></i>
|
|
<span class="sr-only">Toggle dropdown menu</span>
|
|
<span class="toggle drop down"></span>
|
|
</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/#animated">Animated Icons</a></li>
|
|
<li><a href="../examples/#accessible">Accessibility-Minded</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 class="hidden-sm"><a href="../accessibility/">Accessibility</a></li>
|
|
<li class="hidden-xs hidden-md hidden-lg"><a href="../accessibility/"><i class="fa fa-universal-access"></i></a></li>
|
|
<li><a href="../community/">Community</a></li>
|
|
<li><a href="../license/">License</a></li>
|
|
<li class="hidden-sm hidden-xs"><a href="http://articles.fortawesome.com">Blog</a></li>
|
|
</ul>
|
|
|
|
<ul class="nav navbar-nav navbar-right">
|
|
<li><a href="../store/"><i class="fa fa-shopping-cart margin-right-sm hidden-sm hidden-md"></i>Store</a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="jumbotron jumbotron-ad hidden-print">
|
|
<div class="container">
|
|
|
|
|
|
<h1><i class="fa fa-magic" aria-hidden="true"></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">
|
|
<form id="newsletter" method="post" action="https://formkeep.com/f/ba101f5b69f0">
|
|
<div class="row">
|
|
<div class="col-md-4 col-md-offset-2 col-sm-6">
|
|
<div class="form-group margin-bottom">
|
|
<input name="email" type="email" class="form-control" id="email" placeholder="Enter your email address…" required>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-4 col-sm-6">
|
|
<button type="submit" class="btn btn-success btn-block margin-bottom-lg"
|
|
data-toggle="popover" data-trigger="hover" data-placement="top" title="Stay up to date with the Awesome"
|
|
data-content="We'll send you updates on new Font Awesome releases, icons, and other stuff that we're working on. We won't spam you. Scout's honor.">
|
|
Subscribe to Font Awesome Updates <i class="fa fa-envelope" aria-hidden="true"></i>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
|
|
<ul class="list-inline">
|
|
<li>
|
|
<iframe class="github-btn" src="https://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="https://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 src="https://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>
|
|
|
|
|
|
<div class="alert alert-success gg">
|
|
<div class="gg-col min-width">
|
|
<i class="fa fa-universal-access fa-2x" aria-hidden"true"></i>
|
|
</div>
|
|
<div class="gg-col padding-left">
|
|
<p class="margin-bottom-none">The following examples are kept simple and assume use of <a href="../get-started/get-started-cdn">Font Awesome CDN</a>, which provides auto-accessibility support. If you are not using the Font Awesome CDN, please see the <a href="../examples/#accessible">manual accessibility examples</a> and read more about <a href="../accessibility">making your icons more awesome for all users</a></p>
|
|
</div>
|
|
</div>
|
|
|
|
<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.6.3/less/core.less" class="text-muted padding-right">View LESS</a>
|
|
<a href="https://github.com/FortAwesome/Font-Awesome/blob/v4.6.3/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>
|
|
<span class="sr-only">Example: basic icon</span>
|
|
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" aria-hidden="true"></i>
|
|
<strong class="sr-only">Example: basic icon</strong>
|
|
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.6.3/less/larger.less" class="text-muted padding-right">View LESS</a>
|
|
<a href="https://github.com/FortAwesome/Font-Awesome/blob/v4.6.3/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" aria-hidden="true"></i> fa-lg</p>
|
|
<p><i class="fa fa-camera-retro fa-2x" aria-hidden="true"></i> fa-2x</p>
|
|
<p><i class="fa fa-camera-retro fa-3x" aria-hidden="true"></i> fa-3x</p>
|
|
<p><i class="fa fa-camera-retro fa-4x" aria-hidden="true"></i> fa-4x</p>
|
|
<p><i class="fa fa-camera-retro fa-5x" aria-hidden="true"></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.6.3/less/fixed-width.less" class="text-muted padding-right">View LESS</a>
|
|
<a href="https://github.com/FortAwesome/Font-Awesome/blob/v4.6.3/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" aria-hidde="true"></i> Home</a>
|
|
<a class="list-group-item" href="#"><i class="fa fa-book fa-fw" aria-hidde="true"></i> Library</a>
|
|
<a class="list-group-item" href="#"><i class="fa fa-pencil fa-fw" aria-hidde="true"></i> Applications</a>
|
|
<a class="list-group-item" href="#"><i class="fa fa-cog fa-fw" aria-hidde="true"></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="na">aria-hidden=</span><span class="s">"true"</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="na">aria-hidden=</span><span class="s">"true"</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="na">aria-hidden=</span><span class="s">"true"</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="na">aria-hidden=</span><span class="s">"true"</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.6.3/less/list.less" class="text-muted padding-right">View LESS</a>
|
|
<a href="https://github.com/FortAwesome/Font-Awesome/blob/v4.6.3/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.6.3/less/bordered-pulled.less" class="text-muted padding-right">View LESS</a>
|
|
<a href="https://github.com/FortAwesome/Font-Awesome/blob/v4.6.3/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 fa-pull-left fa-border" aria-hidden="true"></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>fa-pull-right</code> or <code>fa-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 fa-pull-left fa-border"</span> <span class="na">aria-hidden=</span><span class="s">"true"</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="animated">
|
|
<h2 class="page-header">
|
|
Animated Icons
|
|
<div class="pull-right text-default margin-top padding-top-sm hidden-xs">
|
|
<a href="https://github.com/FortAwesome/Font-Awesome/blob/v4.6.3/less/animated.less" class="text-muted padding-right">View LESS</a>
|
|
<a href="https://github.com/FortAwesome/Font-Awesome/blob/v4.6.3/scss/_animated.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-spinner fa-spin fa-3x fa-fw margin-bottom"></i>
|
|
<span class="sr-only">Loading example (with fa-spinner icon)</span>
|
|
|
|
<i class="fa fa-circle-o-notch fa-spin fa-3x fa-fw margin-bottom"></i>
|
|
<span class="sr-only">Loading (with fa-circle-o-notch icon)</span>
|
|
|
|
<i class="fa fa-refresh fa-spin fa-3x fa-fw margin-bottom"></i>
|
|
<span class="sr-only">Loading example (with fa-refresh icon)</span>
|
|
|
|
<i class="fa fa-cog fa-spin fa-3x fa-fw margin-bottom"></i>
|
|
<span class="sr-only">Loading example (with fa-cog icon)</span>
|
|
|
|
<i class="fa fa-spinner fa-pulse fa-3x fa-fw margin-bottom"></i>
|
|
<span class="sr-only">Loading example (with fa-spinner icon)</span>
|
|
</p>
|
|
</div>
|
|
<div class="col-md-9 col-sm-8">
|
|
<p>
|
|
Use the <code>fa-spin</code> class to get any icon to rotate, and use <code>fa-pulse</code> to have it rotate
|
|
with 8 steps. 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 fa-3x fa-fw"</span><span class="nt">></i></span>
|
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"sr-only"</span><span class="nt">></span>Loading...<span class="nt"></span></span>
|
|
|
|
<span class="nt"><i</span> <span class="na">class=</span><span class="s">"fa fa-circle-o-notch fa-spin fa-3x fa-fw"</span><span class="nt">></i></span>
|
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"sr-only"</span><span class="nt">></span>Loading...<span class="nt"></span></span>
|
|
|
|
<span class="nt"><i</span> <span class="na">class=</span><span class="s">"fa fa-refresh fa-spin fa-3x fa-fw"</span><span class="nt">></i></span>
|
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"sr-only"</span><span class="nt">></span>Loading...<span class="nt"></span></span>
|
|
|
|
<span class="nt"><i</span> <span class="na">class=</span><span class="s">"fa fa-cog fa-spin fa-3x fa-fw"</span><span class="nt">></i></span>
|
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"sr-only"</span><span class="nt">></span>Loading...<span class="nt"></span></span>
|
|
|
|
<span class="nt"><i</span> <span class="na">class=</span><span class="s">"fa fa-spinner fa-pulse fa-3x fa-fw"</span><span class="nt">></i></span>
|
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"sr-only"</span><span class="nt">></span>Loading...<span class="nt"></span></span>
|
|
</code></pre></div>
|
|
<p class="alert alert-success">
|
|
<i class="fa fa-exclamation-triangle fa-lg" aria-hidden="true"></i><strong class="sr-only">Note:</strong>
|
|
Some browsers on some platforms have issues with animated icons resulting in a jittery wobbling effect. See
|
|
<a href="https://github.com/FortAwesome/Font-Awesome/issues/671" class="alert-link" target="_blank">issue #671</a>
|
|
for examples and possible workarounds.
|
|
</p>
|
|
<p class="alert alert-success">
|
|
<i class="fa fa-info-circle fa-lg" aria-hidden="true"></i><strong class="sr-only">Note:</strong> 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.6.3/less/rotated-flipped.less" class="text-muted padding-right">View LESS</a>
|
|
<a href="https://github.com/FortAwesome/Font-Awesome/blob/v4.6.3/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" aria-hidden="true"></i> normal<br>
|
|
<i class="fa fa-shield fa-rotate-90" aria-hidden="true"></i> fa-rotate-90<br>
|
|
<i class="fa fa-shield fa-rotate-180" aria-hidden="true"></i> fa-rotate-180<br>
|
|
<i class="fa fa-shield fa-rotate-270" aria-hidden="true"></i> fa-rotate-270<br>
|
|
<i class="fa fa-shield fa-flip-horizontal" aria-hidden="true"></i> fa-flip-horizontal<br>
|
|
<i class="fa fa-shield fa-flip-vertical" aria-hidden="true"></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> fa-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.6.3/less/stacked.less" class="text-muted padding-right">View LESS</a>
|
|
<a href="https://github.com/FortAwesome/Font-Awesome/blob/v4.6.3/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" aria-hidden="true">
|
|
<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" aria-hidden="true">
|
|
<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" aria-hidden="true">
|
|
<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" aria-hidden="true">
|
|
<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.6.3</a>
|
|
</p>
|
|
<div class="margin-bottom">
|
|
<div class="btn-group">
|
|
<a class="btn btn-default" href="#">
|
|
<i class="fa fa-align-left" title="Align Left"></i>
|
|
</a>
|
|
<a class="btn btn-default" href="#">
|
|
<i class="fa fa-align-center" title="Align Center"></i>
|
|
</a>
|
|
<a class="btn btn-default" href="#">
|
|
<i class="fa fa-align-right" title="Align Right"></i>
|
|
</a>
|
|
<a class="btn btn-default" href="#">
|
|
<i class="fa fa-align-justify" title="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" title="Toggle dropdown menu"></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="fa fa-unlock"></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.6.3<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">></span>
|
|
<span class="nt"><i</span> <span class="na">class=</span><span class="s">"fa fa-align-left"</span> <span class="na">title=</span><span class="s">"Align Left"</span><span class="nt">></i></span>
|
|
<span class="nt"></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">></span>
|
|
<span class="nt"><i</span> <span class="na">class=</span><span class="s">"fa fa-align-center"</span> <span class="na">title=</span><span class="s">"Align Center"</span><span class="nt">></i></span>
|
|
<span class="nt"></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">></span>
|
|
<span class="nt"><i</span> <span class="na">class=</span><span class="s">"fa fa-align-right"</span> <span class="na">title=</span><span class="s">"Align Right"</span><span class="nt">></i></span>
|
|
<span class="nt"></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">></span>
|
|
<span class="nt"><i</span> <span class="na">class=</span><span class="s">"fa fa-align-justify"</span> <span class="na">title=</span><span class="s">"Align Justify"</span><span class="nt">></i></span>
|
|
<span class="nt"></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="na">title=</span><span class="s">"Toggle dropdown menu"</span><span class="nt">></span></span>
|
|
<span class="nt"></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">"fa fa-unlock"</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>
|
|
|
|
<section id="accessible">
|
|
<h2 class="page-header">
|
|
Accessibility-Minded
|
|
</h2>
|
|
<div class="row">
|
|
<div class="col-md-3 col-sm-4">
|
|
<p>
|
|
<a class="btn btn-default" href="path/to/settings" aria-label="Settings">
|
|
<i class="fa fa-cog" aria-hidden="true"></i>
|
|
</a>
|
|
|
|
<a class="btn btn-danger" href="path/to/settings" aria-label="Delete">
|
|
<i class="fa fa-trash-o" aria-hidden="true"></i>
|
|
</a>
|
|
|
|
<a class="btn btn-primary" href="#navigation-main" aria-label="Skip to main navigation">
|
|
<i class="fa fa-bars" aria-hidden="true"></i>
|
|
</a>
|
|
</p>
|
|
|
|
<p>
|
|
<i class="fa fa-refresh fa-spin fa-3x fa-fw" aria-hidden="true"></i>
|
|
<span class="sr-only">Refreshing...</span>
|
|
|
|
<i class="fa fa-cog fa-spin fa-3x fa-fw" aria-hidden="true"></i>
|
|
<span class="sr-only">Saving. Hang tight!</span>
|
|
</p>
|
|
|
|
<p>
|
|
<div class="input-group margin-bottom-sm">
|
|
<span class="input-group-addon"><i class="fa fa-envelope-o fa-fw" aria-hidden="true"></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" aria-hidden="true"></i></span>
|
|
<input class="form-control" type="password" placeholder="Password">
|
|
</div>
|
|
</p>
|
|
|
|
<p>
|
|
<a href="path/to/shopping/cart" class="btn btn-primary" aria-label="View 3 items in your shopping cart">
|
|
<i class="fa fa-shopping-cart" aria-hidden="true"></i>
|
|
</a>
|
|
</p>
|
|
|
|
<p>
|
|
<i class="fa fa-battery-half" aria-hidden="true"></i>
|
|
<span class="sr-only">Battery level: 50%</span>
|
|
</p>
|
|
</div>
|
|
<div class="col-md-9 col-sm-8">
|
|
<p>
|
|
With <a href="../accessibility/">our thoughts on icon accessibility</a> in mind, If an icon only adds some extra decoration or branding, it does not need to be announced to users as they are navigating your site or app aurally. Alternatively, if an icon conveys meaning in your content or interface, ensure that this meaning is also conveyed to assistive technologies through alternative displays or text.
|
|
</p>
|
|
|
|
<div class="highlight"><pre><code class="html"><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">"path/to/settings"</span> <span class="na">aria-label=</span><span class="s">"Settings"</span><span class="nt">></span>
|
|
<span class="nt"><i</span> <span class="na">class=</span><span class="s">"fa fa-cog"</span> <span class="na">aria-hidden=</span><span class="s">"true"</span><span class="nt">></i></span>
|
|
<span class="nt"></a></span>
|
|
|
|
<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">"path/to/settings"</span> <span class="na">aria-label=</span><span class="s">"Delete"</span><span class="nt">></span>
|
|
<span class="nt"><i</span> <span class="na">class=</span><span class="s">"fa fa-trash-o"</span> <span class="na">aria-hidden=</span><span class="s">"true"</span><span class="nt">></i></span>
|
|
<span class="nt"></a></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">"#navigation-main"</span> <span class="na">aria-label=</span><span class="s">"Skip to main navigation"</span><span class="nt">></span>
|
|
<span class="nt"><i</span> <span class="na">class=</span><span class="s">"fa fa-bars"</span> <span class="na">aria-hidden=</span><span class="s">"true"</span><span class="nt">></i></span>
|
|
<span class="nt"></a></span>
|
|
</code></pre></div>
|
|
|
|
<div class="highlight"><pre><code class="html"><span class="nt"><i</span> <span class="na">class=</span><span class="s">"fa fa-refresh fa-spin fa-3x fa-fw"</span> <span class="na">aria-hidden=</span><span class="s">"true"</span><span class="nt">></i></span>
|
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"sr-only"</span><span class="nt">></span>Refreshing...<span class="nt"></span></span>
|
|
|
|
<span class="nt"><i</span> <span class="na">class=</span><span class="s">"fa fa-cog fa-spin fa-3x fa-fw"</span> <span class="na">aria-hidden=</span><span class="s">"true"</span><span class="nt">></i></span>
|
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"sr-only"</span><span class="nt">></span>Saving. Hang tight!<span class="nt"></span></span>
|
|
</code></pre></div>
|
|
|
|
<div class="highlight"><pre><code class="html"><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="na">aria-hidden=</span><span class="s">"true"</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="na">aria-hidden=</span><span class="s">"true"</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>
|
|
</code></pre></div>
|
|
|
|
<div class="highlight"><pre><code class="html"><span class="nt"><a</span> <span class="na">href=</span><span class="s">"path/to/shopping/cart"</span> <span class="na">class=</span><span class="s">"btn btn-primary"</span> <span class="na">aria-label=</span><span class="s">"View 3 items in your shopping cart"</span><span class="nt">></span>
|
|
<span class="nt"><i</span> <span class="na">class=</span><span class="s">"fa fa-shopping-cart"</span> <span class="na">aria-hidden=</span><span class="s">"true"</span><span class="nt">></i></span>
|
|
<span class="nt"></a></span>
|
|
</code></pre></div>
|
|
|
|
<div class="highlight"><pre><code class="html"><span class="nt"><i</span> <span class="na">class=</span><span class="s">"fa fa-battery-half"</span> <span class="na">aria-hidden=</span><span class="s">"true"</span><span class="nt">></i></span>
|
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"sr-only"</span><span class="nt">></span>Battery level: 50%<span class="nt"></span></span>
|
|
</code></pre></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">
|
|
<a href="http://www.wpbeginner.com/?utm_source=fontawesome_footer&utm_medium=banner&utm_campaign=fontawesome"
|
|
title="Beginner's Guide to WordPress" target="_blank" rel="nofollow"
|
|
onClick="_gaq.push(['_trackEvent', 'Outbound Link', 'wpbeginner.com']);">
|
|
<img src="../assets/img/logo-wpbeginner.png" width="220" height="65" alt="">
|
|
</a>
|
|
<a href="http://themeisle.com/?utm_source=fontawesome_footer&utm_medium=banner&utm_campaign=fontawesome"
|
|
title="Premium Wordpress Themes" target="_blank" rel="nofollow"
|
|
onClick="_gaq.push(['_trackEvent', 'Outbound Link', 'themeisle.com']);">
|
|
<img src="../assets/img/logo-themeisle.png" width="220" height="65" alt="">
|
|
</a>
|
|
</div>
|
|
<div>
|
|
<i class="fa fa-flag" aria-hidden="true"></i> Font Awesome 4.6.3
|
|
<span class="hide-xs">·</span><br class="hide-sm hide-md hide-lg">
|
|
Created by <a href="https://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://tracking.maxcdn.com/c/148092/3982/378/"><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="https://platform.twitter.com/widgets.js"></script>
|
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
|
|
<script src="https://ajax.aspnetcdn.com/ajax/jquery.validate/1.13.1/jquery.validate.min.js"></script>
|
|
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
|
|
<script src="https://cdn.jsdelivr.net/algoliasearch/3.13.1/algoliasearch.jquery.min.js" integrity="sha256-2MTQjOt4Q02v+W/QjgCO5yv+si9RAo/o/RGR5alVYzY=" crossorigin="anonymous"></script>
|
|
<script src="https://cdn.jsdelivr.net/algoliasearch.helper/2.9.1/algoliasearch.helper.min.js" integrity="sha256-MhjLBzVVNkMEKnIE2ueYNb7QSj+oiSv4x89dlui09hg=" crossorigin="anonymous"></script>
|
|
<script src="https://cdn.jsdelivr.net/underscorejs/1.8.3/underscore-min.js" integrity="sha256-obZACiHd7gkOk9iIL/pimWMTJ4W/pBsKu+oZnSeBIek=" crossorigin="anonymous"></script>
|
|
<script src="https://cdn.jsdelivr.net/backbonejs/1.2.2/backbone-min.js" integrity="sha256-p6bkfFqmxtebrKOS+wyGi+Qf3d111eWUQP67keyXJ6Q=" crossorigin="anonymous"></script>
|
|
<script src="https://cdn.jsdelivr.net/jsdelivr-rum/1.5/jsdelivr-rum.min.js" integrity="sha256-HlY2rbkgbiHhtilMXmQ86rjL/EIxGDtdg9GU9/T2ZxE=" crossorigin="anonymous"></script>
|
|
<script src="../assets/js/site.js"></script>
|
|
<script src="../assets/js/search.js"></script>
|
|
<!-- Facebook Pixel Code -->
|
|
<script>
|
|
!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?
|
|
n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;
|
|
n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;
|
|
t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,
|
|
document,'script','https://connect.facebook.net/en_US/fbevents.js');
|
|
|
|
fbq('init', '590758314440297');
|
|
fbq('track', "PageView");</script>
|
|
<noscript><img height="1" width="1" style="display:none"
|
|
src="https://www.facebook.com/tr?id=590758314440297&ev=PageView&noscript=1"
|
|
/></noscript>
|
|
<!-- End Facebook Pixel Code -->
|
|
</body>
|
|
</html>
|