Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/smcllns/css-social-buttons
Zocial: CSS login and social buttons
https://github.com/smcllns/css-social-buttons
Last synced: about 1 month ago
JSON representation
Zocial: CSS login and social buttons
- Host: GitHub
- URL: https://github.com/smcllns/css-social-buttons
- Owner: smcllns
- License: mit
- Created: 2011-01-30T13:59:31.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2022-11-08T13:57:14.000Z (about 2 years ago)
- Last Synced: 2024-10-09T13:48:23.718Z (about 1 month ago)
- Language: CSS
- Homepage:
- Size: 3.26 MB
- Stars: 1,686
- Watchers: 61
- Forks: 293
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- Changelog: History.md
- License: LICENSE
Awesome Lists containing this project
- awesome-starred - smcllns/css-social-buttons - Zocial: CSS login and social buttons (others)
README
# 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 buttonThere's also a LESS version from @gustavohenke [here](https://github.com/gustavohenke/zocial-less)
## Examples:
```html
Sign in with Facebook
```or
```html
Follow Me
```## Demo
[https://smcllns.github.io/css-social-buttons/](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](https://github.com/FontCustom/fontcustom) (*)
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](http://opensource.org/licenses/mit-license.php)
The GitLab logo is derived from [this](https://gitlab.com/gitlab-com/gitlab-artwork/blob/a3aaa39c184e49bb3a0ba0d8be74718b3d5b887b/logo/logo-square.svg) which is released under CC BY-NC-SA 4.0.