-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfont-awesome-cheatsheet-5x.html
75 lines (72 loc) · 2.83 KB
/
font-awesome-cheatsheet-5x.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
---
layout: base_search
permalink: /font-awesome-cheatsheet-5x/
title: Font Awesome Cheatsheet v5.x
description: This is a simple cheatsheet for Font Awesome v5.x. You can copy code and unicode by one click
keywords: Fontawesome, font awesome, cheatsheet, version 5.x
---
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.10.1/css/all.css" integrity="sha384-wxqG4glGB3nlqX0bi23nmgwCSjWIW13BdLUEYC4VIMehfbcro/ATkyDsF/AbIOVe" crossorigin="anonymous">
<table id="icons" class="table table-striped table-bordered fa-5">
<thead>
<tr>
<th>Icon</th>
<th>Name</th>
<th>Class</th>
<th>Code</th>
<th>Unicode</th>
<th>Search</th>
<th>Changed in Version</th>
</tr>
</thead>
<tfoot>
<tr>
<th>Icon</th>
<th>Name</th>
<th>Class</th>
<th>Code</th>
<th>Unicode</th>
<th>Search</th>
<th>Changed in Version</th>
</tr>
</tfoot>
<tbody>
{% for icon in site.data.icons50 %}
{% assign style = icon[1].styles %}
{% case style[0] %}
{% when 'brands' %}
{% assign prefix = 'fab' %}
{% when 'solid' %}
{% assign prefix = 'fas' %}
{% when 'regular' %}
{% assign prefix = 'far' %}
{% when 'light' %}
{% assign prefix = 'fal' %}
{% when 'duotone' %}
{% assign prefix = 'fad' %}
{% else %}
{% assign prefix = 'fa' %}
{% endcase %}
<tr>
<td><i class="{{ prefix }} fa-{{ icon[0] }}"></i></td>
<td>{{ icon[1].label }}</td>
<td>{{ icon[0] }}</td>
<td>
<pre><code class="highlight" data-lang="html" data-to-copy-html='<i class="{{ prefix }} fa-{{ icon[0] }}"></i>' ><span class="nt"><i </span><span class="na">class=</span><span class="s">"{{ prefix }} fa-{{ icon[0] }}"</span><span class="nt">></span><span class="nt"></i</span><span class="nt">></span></code></pre>
</td>
<td class="copy-unicode" data-to-copy-html="{{ icon[1].unicode }}">{{ icon[1].unicode }}</td>
<td>
{% assign my_array = icon[1].search.terms %}
{% for tag in my_array %}
<span>{{ tag }} </span>
{% endfor %}
</td>
<td>
{% assign versions = icon[1].changes %}
{% for version in versions %}
<span>{{ version }} </span>
{% endfor %}
</td>
</tr>
{% endfor %}
</tbody>
</table>