Last active
March 27, 2017 08:21
-
-
Save Lukom/b052d352fddf060cf822e0ccbea27274 to your computer and use it in GitHub Desktop.
Social Share buttons
This file contains hidden or 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
<svg xmlns="http://www.w3.org/2000/svg"> | |
<symbol id="facebook" viewBox="0 0 16 16"> | |
<path d="M8 14H3.67C2.73 13.9 2 13.17 2 12.23V3.67A1.65 1.65 0 0 1 3.67 2h8.66A1.65 1.65 0 0 1 14 3.67v8.56c0 .94-.73 1.67-1.67 1.77H10v-3.97h1.3l.7-2.06h-2V6.93c0-.46.17-.9.87-.9H12v-1.8c.03 0-.93-.26-1.53-.26-1.27 0-2.44.7-2.47 2.13v1.87H6v2.06h2V14z"/> | |
</symbol> | |
<symbol id="twitter" viewBox="0 0 72 72"> | |
<path d="M68.8 15c-2.3 1.2-5 2-7.5 2.2C64 15.6 66 13 67 10c-2.5 1.5-5.3 2.5-8.3 3-2.4-2.4-5.8-4-9.5-4-7.2 0-13 6-13 13 0 1 0 2 .2 3-11-.5-20.5-5.7-27-13.6-1 2-1.7 4.2-1.7 6.6 0 4.5 2.3 8.5 5.8 11-2.2-.2-4.2-.8-6-1.8v.2C7.5 33.7 12 39 18 40.2c-1 .3-2 .5-3.3.5-.8 0-1.6 0-2.4-.2 1.6 5.2 6.5 9 12.2 9-4.5 3.6-10 5.7-16.3 5.7-1 0-2 0-3-.2 5.8 3.7 12.7 6 20 6 24 0 37.3-20 37.3-37.4V22c2.5-2 4.8-4.2 6.5-7z"/> | |
</symbol> | |
<symbol id="plusone" viewBox="0 0 512 512"> | |
<path d="M181.6 307v51h70c-11 33-28 51.2-70 51.2-42.5 0-75.6-34.4-75.6-77 0-42.4 33.2-76.8 75.6-76.8 22.5 0 37 8 50.3 19 10.4-10.8 9.5-12.3 36.6-38-23-20.8-53.6-33.6-87-33.6C110 203 52 261 52 332.5S110.2 462 181.7 462c107 0 133-93 124.3-155H181.6zm233.4 2.4v-45h-32v45h-46v32h46v46h32v-46h45v-32h-45z"/> | |
</symbol> | |
</svg> |
This file contains hidden or 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
module SvgHelper | |
def svg_ico(name, options = {}) | |
content_tag :svg, options do | |
tag :use, 'xlink:href': "#{asset_path('icons.svg')}##{name}" | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment