css-social-buttons

Zocial button set with CSS. Entirely vector-based social buttons.

  • 所有者: smcllns/css-social-buttons
  • 平台:
  • 许可证: MIT License
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

Zocial CSS Social Buttons

The idea is to create beautiful social buttons using only CSS, rendering popular social icons as a font, and requiring minimal extra markup.

Benefits

  • Buttons always look sharp at any size and screen resolution.
  • Easily customize the size and call to action of the buttons.
  • Easily localize button text to other languages.

Usage

  1. Can be any element e.g. a, div, button etc.
  2. Add class of .zocial and add class for name of service e.g. .dropbox, .twitter, .github
  3. Optional: Add a class of icon to display as icon instead of button
  4. Optional: Change font size of the element to resize button

There's also a LESS version from @gustavohenke here

Examples:

<button class="zocial facebook">Sign in with Facebook</button>

or

<a class="zocial twitter">Follow Me</a>

Demo

https://smcllns.github.io/css-social-buttons/

Browser Support

  • custom font file for all social icons works well in any browser supporting @font-face
  • icon font use private unicode spaces for accessibility
  • CSS3 degrades gracefully in IE8 and below

CDN

This project is available on CDNJS:
https://cdnjs.com/libraries/css-social-buttons

How to contribute

  1. Install Font Custom
  2. Add or update the icon .svg in the src/ folder.
  3. Set the button and font color in templates/zocial.css file.
  4. Run fontcustom compile
  5. Update the demo page (index.html) with both the button and icon.
  6. Test rendering. If broken go to step 2.
  7. Send pull-request !

License

Under MIT License

The GitLab logo is derived from this which is released under CC BY-NC-SA 4.0.

主要指标

概览
名称与所有者smcllns/css-social-buttons
主编程语言CSS
编程语言HTML (语言数: 2)
平台
许可证MIT License
所有者活动
创建于2011-01-30 13:59:31
推送于2022-11-08 13:57:14
最后一次提交2020-06-27 11:55:40
发布数6
最新版本名称v1.4.0 (发布于 )
第一版名称v1.0.0 (发布于 )
用户参与
星数1.7k
关注者数61
派生数292
提交数188
已启用问题?
问题数73
打开的问题数7
拉请求数28
打开的拉请求数4
关闭的拉请求数13
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?