css-social-buttons

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

  • Owner: smcllns/css-social-buttons
  • Platform:
  • License:: MIT License
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

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.

Main metrics

Overview
Name With Ownersmcllns/css-social-buttons
Primary LanguageCSS
Program languageHTML (Language Count: 2)
Platform
License:MIT License
所有者活动
Created At2011-01-30 13:59:31
Pushed At2022-11-08 13:57:14
Last Commit At2020-06-27 11:55:40
Release Count6
Last Release Namev1.4.0 (Posted on )
First Release Namev1.0.0 (Posted on )
用户参与
Stargazers Count1.7k
Watchers Count61
Fork Count292
Commits Count188
Has Issues Enabled
Issues Count73
Issue Open Count7
Pull Requests Count28
Pull Requests Open Count4
Pull Requests Close Count13
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private