decrease icon jumping and optimize icon lib switching

This commit is contained in:
alxd 2018-07-17 16:39:17 +02:00
parent 775df1256d
commit a8d8188003
3 changed files with 5 additions and 9 deletions

View file

@ -368,8 +368,8 @@ ul.social {
a:hover {
z-index: 2;
-webkit-transform: translateY(-5px);
transform: translateY(-5px);
-webkit-transform: translateY(-2px);
transform: translateY(-2px);
}
a {

File diff suppressed because one or more lines are too long

View file

@ -124,12 +124,8 @@
<ul class="social">
{% for name, link in SOCIAL %}
<li><a class="sc-{{ name }}" href="{{ link }}" target="_blank">
{% if name in ['envelope-open', 'rss'] %}
<i class="fas fa-{{ name }}">
{% else %}
<i class="fab fa-{{ name }}">
{% endif %}
</i></a></li>
<i class="fa{% if name in ['envelope-open', 'rss'] %}s{% else %}b{% endif %} fa-{{ name }}"></i>
</a></li>
{% endfor %}
</ul>
</div>