Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
Sam Collins 306c065c85 Prep for v1.4 release pirms 4 gadiem
css Added salesforce icon. Updated README to include running fontcustom from Docker. pirms 4 gadiem
src Added salesforce icon. Updated README to include running fontcustom from Docker. pirms 4 gadiem
templates Added salesforce icon. Updated README to include running fontcustom from Docker. pirms 4 gadiem
.fontcustom-manifest.json Added salesforce icon. Updated README to include running fontcustom from Docker. pirms 4 gadiem
.gitignore Adds messenger, and gitignore pirms 5 gadiem
.nojekyll Host sample on gh-pages pirms 9 gadiem
History.md Prep for v1.4 release pirms 4 gadiem
LICENSE Prep for v1.4 release pirms 4 gadiem
README.md Added salesforce icon. Updated README to include running fontcustom from Docker. pirms 4 gadiem
bower.json Remove excess comma in main array pirms 9 gadiem
composer.json composer.json: cleanup pirms 9 gadiem
fontcustom.yml fontcustom config with comments pirms 9 gadiem
index.html Added salesforce icon. Updated README to include running fontcustom from Docker. pirms 4 gadiem
package.json Prep for v1.4 release pirms 4 gadiem

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

(*) if you are having difficulting installing Font Custom, you can use a docker container. Instead of running #4, run docker run -v ${PWD}:/project drichner/fontcustom compile from the root of this directory.

License

Under MIT License

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