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?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?