2013-10-19 04:55:57 +08:00
|
|
|
<section id="new-naming">
|
2013-10-18 23:05:40 +08:00
|
|
|
<h2 class="page-header">New Naming Conventions in {{ site.fontawesome.minor_version }}</h2>
|
2013-10-19 21:54:41 +08:00
|
|
|
<p class="lead text-center alert alert-info">fa-icon-[name]-[shape]-[alt]-[direction]</p>
|
2013-10-19 04:55:57 +08:00
|
|
|
<p>
|
|
|
|
A desire for better icon naming <strong>consistency</strong> and <strong>predictability</strong> are at the heart
|
|
|
|
of the changes in naming conventions. Once you know the name of the base icon shape, you should be able to predict
|
2013-10-19 21:54:41 +08:00
|
|
|
the names of variants.
|
2013-10-19 04:55:57 +08:00
|
|
|
</p>
|
2013-10-18 23:05:40 +08:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-4 col-sm-6">
|
2013-10-19 04:55:57 +08:00
|
|
|
<h4 class="margin-bottom-sm">fa-icon-*</h4>
|
2013-10-19 05:31:47 +08:00
|
|
|
<p class="margin-bottom-sm">Solid icons as the base variant</p>
|
2013-10-19 04:55:57 +08:00
|
|
|
<ul class="fa-icon-ul padding-left-sm">
|
|
|
|
<li>
|
|
|
|
<i class="fa-icon fa-icon-bookmark fa-icon-li"></i>
|
|
|
|
fa-icon-bookmark
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="fa-icon fa-icon-comment fa-icon-li"></i>
|
|
|
|
fa-icon-comment
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="fa-icon fa-icon-folder fa-icon-li"></i>
|
|
|
|
fa-icon-folder
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-4 col-sm-6">
|
|
|
|
<h4 class="margin-bottom-sm">*-alt</h4>
|
2013-10-19 05:31:47 +08:00
|
|
|
<p class="margin-bottom-sm">Outlined version of previous modifier</p>
|
2013-10-19 04:55:57 +08:00
|
|
|
<ul class="fa-icon-ul padding-left-sm">
|
|
|
|
<li>
|
|
|
|
<i class="fa-icon fa-icon-bookmark-alt fa-icon-li"></i>
|
|
|
|
fa-icon-bookmark-alt
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="fa-icon fa-icon-comment-alt fa-icon-li"></i>
|
|
|
|
fa-icon-comment-alt
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="fa-icon fa-icon-folder-alt fa-icon-li"></i>
|
|
|
|
fa-icon-folder-alt
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-4 col-sm-6">
|
|
|
|
<h4 class="margin-bottom-sm">*-circle</h4>
|
2013-10-19 05:31:47 +08:00
|
|
|
<p class="margin-bottom-sm">Circle under previous modifier</p>
|
2013-10-18 23:05:40 +08:00
|
|
|
<ul class="fa-icon-ul padding-left-sm">
|
|
|
|
<li>
|
|
|
|
<i class="fa-icon fa-icon-check-circle fa-icon-li"></i>
|
2013-10-19 04:55:57 +08:00
|
|
|
fa-icon-check-circle
|
2013-10-18 23:05:40 +08:00
|
|
|
</li>
|
|
|
|
<li>
|
2013-10-19 04:55:57 +08:00
|
|
|
<i class="fa-icon fa-icon-exclamation-circle fa-icon-li"></i>
|
|
|
|
fa-icon-exclamation-circle
|
2013-10-18 23:05:40 +08:00
|
|
|
</li>
|
2013-10-19 04:55:57 +08:00
|
|
|
<li>
|
|
|
|
<i class="fa-icon fa-icon-plus-circle fa-icon-li"></i>
|
|
|
|
fa-icon-plus-circle
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-4 col-sm-6">
|
|
|
|
<h4 class="margin-bottom-sm">*-square</h4>
|
2013-10-19 05:31:47 +08:00
|
|
|
<p class="margin-bottom-sm">Square under previous modifier</p>
|
2013-10-19 04:55:57 +08:00
|
|
|
<ul class="fa-icon-ul padding-left-sm">
|
2013-10-18 23:05:40 +08:00
|
|
|
<li>
|
|
|
|
<i class="fa-icon fa-icon-check-square fa-icon-li"></i>
|
2013-10-19 04:55:57 +08:00
|
|
|
fa-icon-check-square
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="fa-icon fa-icon-twitter-square fa-icon-li"></i>
|
|
|
|
fa-icon-twitter-square
|
2013-10-18 23:05:40 +08:00
|
|
|
</li>
|
|
|
|
<li>
|
2013-10-19 04:55:57 +08:00
|
|
|
<i class="fa-icon fa-icon-plus-square fa-icon-li"></i>
|
|
|
|
fa-icon-plus-square
|
2013-10-18 23:05:40 +08:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-4 col-sm-6">
|
2013-10-19 04:55:57 +08:00
|
|
|
<h4 class="margin-bottom-sm">*-right, *-up, etc.</h4>
|
2013-10-19 05:31:47 +08:00
|
|
|
<p class="margin-bottom-sm">Directional modifier always at the end</p>
|
2013-10-18 23:05:40 +08:00
|
|
|
<ul class="fa-icon-ul padding-left-sm">
|
2013-10-19 04:55:57 +08:00
|
|
|
<li>
|
|
|
|
<i class="fa-icon fa-icon-arrow-right fa-icon-li"></i>
|
|
|
|
fa-icon-arrow-right
|
|
|
|
</li>
|
2013-10-18 23:05:40 +08:00
|
|
|
<li>
|
|
|
|
<i class="fa-icon fa-icon-arrow-circle-right fa-icon-li"></i>
|
2013-10-19 04:55:57 +08:00
|
|
|
fa-icon-arrow-circle-right
|
2013-10-18 23:05:40 +08:00
|
|
|
</li>
|
|
|
|
<li>
|
2013-10-19 04:55:57 +08:00
|
|
|
<i class="fa-icon fa-icon-angle-double-right fa-icon-li"></i>
|
|
|
|
fa-icon-angle-double-right
|
2013-10-18 23:05:40 +08:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-4 col-sm-6">
|
2013-10-19 04:55:57 +08:00
|
|
|
<h4 class="margin-bottom-sm">Combine 'em up...</h4>
|
2013-10-19 05:31:47 +08:00
|
|
|
<p class="margin-bottom-sm">Consistent when strung together</p>
|
2013-10-18 23:05:40 +08:00
|
|
|
<ul class="fa-icon-ul padding-left-sm">
|
|
|
|
<li>
|
2013-10-19 04:55:57 +08:00
|
|
|
<i class="fa-icon fa-icon-arrow-circle-alt-right fa-icon-li"></i>
|
|
|
|
fa-icon-arrow-circle-alt-right
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="fa-icon fa-icon-caret-square-alt-right fa-icon-li"></i>
|
|
|
|
fa-icon-caret-square-alt-right
|
2013-10-18 23:05:40 +08:00
|
|
|
</li>
|
|
|
|
<li>
|
2013-10-19 04:55:57 +08:00
|
|
|
<i class="fa-icon fa-icon-hand-alt-right fa-icon-li"></i>
|
|
|
|
fa-icon-hand-alt-right
|
2013-10-18 23:05:40 +08:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2013-10-19 04:55:57 +08:00
|
|
|
|
2013-10-18 23:05:40 +08:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</section>
|