Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
Sam Collins 10ccd129a2 Updated Readme il y a 5 ans
css Adds messenger, and gitignore il y a 5 ans
src Adds messenger, and gitignore il y a 5 ans
templates Adds messenger, and gitignore il y a 5 ans
.fontcustom-manifest.json Adds messenger, and gitignore il y a 5 ans
.gitignore Adds messenger, and gitignore il y a 5 ans
.nojekyll Host sample on gh-pages il y a 9 ans
CNAME Add CNAME il y a 9 ans
History.md Release v1.3.0 il y a 7 ans
LICENSE Add LICENSE file il y a 9 ans
README.md Updated Readme il y a 5 ans
bower.json Remove excess comma in main array il y a 9 ans
composer.json composer.json: cleanup il y a 9 ans
demo.html Created simpler demo page il y a 5 ans
fontcustom.yml fontcustom config with comments il y a 9 ans
package.json Release v1.3.0 il y a 7 ans

README.md

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 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.