Merge pull request #10396 from FortAwesome/cheatsheet-fix

Fix cheatsheet print layout
This commit is contained in:
Geremia Taglialatela 2016-12-19 21:32:15 +01:00 committed by GitHub
commit 63e9e06e8e
3 changed files with 8 additions and 2 deletions

View File

@ -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";

View File

@ -0,0 +1,5 @@
@media print {
.col-print-4 {
.make-xs-column(4);
}
}

View File

@ -23,9 +23,9 @@ relative_path: ../
{% 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>