You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Sam Collins 783af51c6b Adds messenger, and gitignore преди 5 години
css Adds messenger, and gitignore преди 5 години
site index.html: import from http://zocial.smcllns.com/ преди 9 години
src Adds messenger, and gitignore преди 5 години
templates Adds messenger, and gitignore преди 5 години
.fontcustom-manifest.json Adds messenger, and gitignore преди 5 години
.gitignore Adds messenger, and gitignore преди 5 години
.nojekyll Host sample on gh-pages преди 9 години
CNAME Add CNAME преди 9 години
History.md Release v1.3.0 преди 7 години
LICENSE Add LICENSE file преди 9 години
README.md Add GitLab (#107) преди 7 години
bower.json Remove excess comma in main array преди 9 години
composer.json composer.json: cleanup преди 9 години
fontcustom.yml fontcustom config with comments преди 9 години
index.html index.html: Fix number of icons. s/42/100/ ! преди 9 години
package.json Release v1.3.0 преди 7 години
sample.html Adds messenger, and gitignore преди 5 години

README.md

Zocial CSS social buttons

I basically rewrote this entire set so they are full vector buttons, meaning:

  • @font-face icons
  • custom font file for all social icons
  • icon font use private unicode spaces for accessibility
  • em sizing based on button font-size
  • support for about 83 different services
  • buttons and icons supported
  • no raster images (sweet)
  • works splendidly on any browser supporting @font-face
  • CSS3 degrades gracefully in IE8 and below etc.
  • also includes generic icon-less primary and secondary buttons

Demo

How to use these buttons

<button class="zocial facebook">Button label here</button>

or

<a class="zocial twitter">Button label</a>
  • Can be any element e.g. a, div, button etc.
  • Add class of .zocial
  • Add class for name of service e.g. .dropbox, .twitter, .github
  • Done :-)

Check out zocial.smcllns.com for code examples.

There’s also a LESS version from @gustavohenke here

Problems, questions or requests to @smcllns

CDN

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

How to contribute

  1. Install Font Custom
  2. Add new font in the src/ folder.
  3. Set color settings in the templates/zocial.css file.
  4. Run fontcustom compile
  5. Update the sample.html file 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.