Skip to content

Commit

Permalink
Merge pull request FortAwesome#10396 from FortAwesome/cheatsheet-fix
Browse files Browse the repository at this point in the history
Fix cheatsheet print layout
  • Loading branch information
tagliala authored Dec 19, 2016
2 parents d445932 + 40ed3ab commit 63e9e06
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/assets/less/site.less
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
@import "site/bootstrap/modals";

@import "site/layout";
@import "site/print";
@import "site/social-buttons";
@import "site/jumbotron-carousel";
@import "site/stripe-ad";
Expand Down
5 changes: 5 additions & 0 deletions src/assets/less/site/print.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@media print {
.col-print-4 {
.make-xs-column(4);
}
}
4 changes: 2 additions & 2 deletions src/cheatsheet.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ <h2 class="page-header">Every Font Awesome {{ site.fontawesome.version }} Icon,
{% assign sorted_icons = icons | expand_aliases | sort_by:'class' %}

{% for icon in sorted_icons %}
<div class="col-md-4 col-sm-6 col-lg-3">
<div class="col-md-4 col-sm-6 col-lg-3 col-print-4">
{% if icon.created >= site.fontawesome.major_version %}<small class="text-muted pull-right">{{ icon.created }}</small>{% endif %}
<i class="fa fa-fw" aria-hidden="true" title="Copy to use {{ icon.class }}">&#x{{ icon.unicode }}</i>
<i class="fa fa-fw" aria-hidden="true" title="Copy to use {{ icon.class }}">&#x{{ icon.unicode }};</i>
fa-{{ icon.class }}
{% if icon.alias_of %} <span class="text-muted">(alias)</span>{% endif %}
<span class="text-muted">[&amp;#x{{ icon.unicode }};]</span>
Expand Down

0 comments on commit 63e9e06

Please sign in to comment.