-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #407 from epfl-idevelop/fix-social-icons
Fix social icon in documentation
- Loading branch information
Showing
4 changed files
with
9 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
4 changes: 2 additions & 2 deletions
4
assets/components/atoms/social-icon/social-icon-single-link.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
|