Skip to content

Commit

Permalink
Merge pull request #407 from epfl-idevelop/fix-social-icons
Browse files Browse the repository at this point in the history
Fix social icon in documentation
  • Loading branch information
jdelasoie authored Oct 30, 2019
2 parents f1bc1ad + f59a92d commit 2713b27
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 11 deletions.
6 changes: 3 additions & 3 deletions assets/components/atoms/social-icon/social-icon-link.twig
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{% set pretty_name = pretty_name or 'Twitter' %}
{% set icon = icon or 'icon-twitter' %}
{% set pretty_name = pretty_name ?: 'Twitter' %}
{% set icon = icon ?: 'icon-twitter' %}
{% set round = round ? ' social-icon-round' : '' %}
{% set discrete = discrete ? ' social-icon-discrete' : '' %}
{% set negative = negative ? ' social-icon-negative' : '' %}
<a href="#" class="{{ 'social-icon social-' ~ icon ~ round ~ negative ~ discrete }}">
{% include '@atoms/icon/icon.twig' with { icon: icon } %}
</a>
</a>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% set pretty_name = pretty_name or 'Twitter' %}
{% set icon = icon or 'icon-twitter' %}
{% set pretty_name = pretty_name ?: 'Twitter' %}
{% set icon = icon ?: 'icon-twitter' %}
{% set round = round ? ' social-icon-round' : '' %}
{% set discrete = discrete ? ' social-icon-discrete' : '' %}
{% set negative = negative ? ' social-icon-negative' : '' %}
Expand Down
5 changes: 2 additions & 3 deletions assets/components/atoms/social-icon/social-icon-single.twig
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
{% set pretty_name = pretty_name or 'Twitter' %}
{% set icon = icon or 'icon-twitter' %}
{% set pretty_name = pretty_name ?: 'Twitter' %}
{% set icon = icon ?: 'icon-twitter' %}
{% set round = round ? ' social-icon-round' : '' %}
{% set discrete = discrete ? ' social-icon-discrete' : '' %}
{% set negative = negative ? ' social-icon-negative' : '' %}
<span class="{{ 'social-icon social-' ~ icon ~ round ~ negative }}">
{% include '@atoms/icon/icon.twig' with { icon: icon } %}
</span>

5 changes: 2 additions & 3 deletions assets/components/atoms/social-icon/social-icon.twig
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
{% set pretty_name = pretty_name or 'Twitter' %}
{% set icon = icon or 'icon-twitter' %}
{% set pretty_name = pretty_name ?: 'Twitter' %}
{% set icon = icon ?: 'icon-twitter' %}
{% set round = round ? ' social-icon-round' : '' %}
{% set discrete = discrete ? ' social-icon-discrete' : '' %}
{% set negative = negative ? ' social-icon-negative' : '' %}
<span class="{{ 'social-icon social-' ~ icon ~ round ~ negative }}">
{% include '@atoms/icon/icon.twig' with { icon: icon } %}
</span>

0 comments on commit 2713b27

Please sign in to comment.