Add icon download tooltip

This commit is contained in:
Cole Bemis
2017-03-02 19:47:41 -08:00
parent eee0407162
commit 1300d780ba
3 changed files with 83 additions and 2 deletions

View File

@ -2,8 +2,13 @@
<div class="container icons-container">
{% for icon in site.data['icons-manifest'] %}
{% capture icon_path %}icons/{{ icon }}.svg{% endcapture %}
<div class="feather-icon">
<div class="feather-icon" tabindex="0">
{% include_relative {{ icon_path }} %}
<div class="tooltip">
<p class="tooltip-icon-name">{{ icon }}</p>
<!-- TODO: remove tabindex="-1" -->
<a class="tooltip-download" href="{{ icon_path }}" download tabindex="-1">Download</a>
</div>
</div>
{% endfor %}
</div>