Giter Site home page Giter Site logo

lipis / bootstrap-social Goto Github PK

View Code? Open in Web Editor NEW
2.9K 112.0 824.0 2.54 MB

:couple: Social Sign-In Buttons for Bootstrap

Home Page: https://lipis.github.io/bootstrap-social/

License: MIT License

JavaScript 3.57% HTML 96.43%
social-buttons bootstrap css

bootstrap-social's Introduction

Social Buttons for Bootstrap

npm version Bower version

Social Buttons made in pure CSS based on Bootstrap and Font Awesome!

Check the live demo!

Installation

Include the bootstrap-social.css or bootstrap-social.less in your project, or install it through Bower:

bower install bootstrap-social

Available classes

  • btn-adn
  • btn-bitbucket
  • btn-dropbox
  • btn-facebook
  • btn-flickr
  • btn-foursquare
  • btn-github
  • btn-google
  • btn-instagram
  • btn-linkedin
  • btn-microsoft
  • btn-odnoklassniki
  • btn-openid
  • btn-pinterest
  • btn-reddit
  • btn-soundcloud
  • btn-tumblr
  • btn-twitter
  • btn-vimeo
  • btn-vk
  • btn-yahoo

Examples

<a class="btn btn-block btn-social btn-twitter">
  <span class="fa fa-twitter"></span>
  Sign in with Twitter
</a>

<a class="btn btn-social-icon btn-twitter">
  <span class="fa fa-twitter"></span>
</a>

Notes

For now I won't accept any request for new buttons as I'm planning to split the main CSS to have separate files for all of the requested ones.

bootstrap-social's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bootstrap-social's Issues

Issue with mobile Chrome's 'Reduce data usage'

Chrome's 'Reduce data usage' option breaks the CSS of bootstrap-social. Chrome is removing a space from .btn-social-icon :first-child selector, checkout this SO issue.

I've fixed it by adding a child selector everywhere where :first-child is used, it became

> :first-child

Maybe it would make sense to make this change in the main lib itself? I think, it would make bootstrap-social more stable.

CDN

Please host on CDN if possible

Issue with spin icons

If put some spin icon instead of social icon (e.g. after button is clicked), right border of icon is rotating with the icon.

[a class="btn btn-block btn-social btn-facebook"]
[i class="fa fa-spinner fa-spin"][/i] Sign in with Facebook
[/a]

Npm repository is old

Hello,

There's a npm repository in the npmjs.org

https://www.npmjs.com/package/bootstrap-social

I don't know if this is official and maintained by you or not, but if it is official, could you please take time to update this? If not, are there any plans to add this to npm as official repository?

Thanks in advance,

Styling errors

Hi, I've added bootstrap and font awesome, and added bootstrap-social.css from the root of the repo. I then added the example HTML, and got this:
screen shot 2014-02-22 at 10 23 28 pm

Am I using the wrong .css file? I didn't see a /css folder as instructed in step 2 of http://lipis.github.io/bootstrap-social/

button-variant compile issue

I've added the less file file to my project but I'm having issues compiling:

SyntaxError: .button-variant is undefined in client_src\css_core\social-buttons.less on line 94, column 22:

Any suggestions?

Add !important to colors

Can !important be added to all of the color and background-color attributes? I place the social buttons into navbar dropdowns and the colors are getting overridden by the Bootstrap CSS, but adding !important seems to fix the issue.

Request: Steam

Not so much the sign in, but a button that matches the theme of the others would be nice for linking my steam profile on my website :D

download failed: fontawesome-webfont.ttf

Probably not a bootstrap-social issue, but...
When I test locally, I have no issue.
After deploying (to gh-pages), social icons are not rendered because fontawesome web fonts were not uploaded...
Any hint about the grunt config for this small issue?

Foursquare button has to be updated.

The logo and colors of Foursquare were changed.
Their mobile applications are already updated.

https://ru.foursquare.com/about/logos

Foursquare Brand Guide PDF — https://playfoursquare.s3.amazonaws.com/press/foursquare-brandguide.pdf

Primary colors (order preserved as it is in pdf):
FS Watermelon — #F94877
FS Navy — #0732A2
FS Blue — #2D5BE3

Logo EPS:
https://playfoursquare.s3.amazonaws.com/press/2014/foursquare-logomark.eps
https://playfoursquare.s3.amazonaws.com/press/2014/foursquare-logomark-white.eps

As I understood from the PDF, you should use either FS Watermelon (#F94877) backround and white logo, or white/light gray backround and FS Watermelon (#F94877) logo.

See FortAwesome/Font-Awesome#4077 for the new logo request.

Social sharecount number support?

Hey!

Thank you for your awesome job!

Please do you plan to add support for the share count number? Something like this, but nicer:)

image

Thank you!

does not pass csslint

Running bootstrap-social through csslint fails on

border-right: 1px solid rgba(0, 0, 0, 0.2);
border-color: rgba(0, 0, 0, 0.2);

There is no fallback for rgba. S/B

border-right: 1px solid rgb(0, 0, 0);
border-right: 1px solid rgba(0, 0, 0, 0.2);

Add css for Youtube btn

Hi, Here is the css to add the button youtube, convert it into less ;)

.btn-youtube{color:#fff;background-color:#DC2725;border-color:rgba(0,0,0,0.2)}.btn-youtube:hover,.btn-youtube:focus,.btn-youtube:active,.btn-youtube.active,.open>.dropdown-toggle.btn-youtube{color:#fff;background-color:#B21E1C;border-color:rgba(0,0,0,0.2)}
.btn-youtube:active,.btn-youtube.active,.open>.dropdown-toggle.btn-youtube{background-image:none}
.btn-youtube.disabled,.btn-youtube[disabled],fieldset[disabled] .btn-youtube,.btn-youtube.disabled:hover,.btn-youtube[disabled]:hover,fieldset[disabled] .btn-youtube:hover,.btn-youtube.disabled:focus,.btn-youtube[disabled]:focus,fieldset[disabled] .btn-youtube:focus,.btn-youtube.disabled:active,.btn-youtube[disabled]:active,fieldset[disabled] .btn-youtube:active,.btn-youtube.disabled.active,.btn-youtube[disabled].active,fieldset[disabled] .btn-youtube.active{background-color:#DC2725;border-color:rgba(0,0,0,0.2)}
.btn-youtube .badge{color:#DC2725;background-color:#fff}

For less

.btn-youtube { .btn-social(#DC2725); }

Problems with Bootstrap 3

Shadows and background images cause UI problems in Bootstrap 3.

You can add the line to get the desired appearance:

.btn{text-shadow:none;background-image:none;-webkit-box-shadow:none;box-shadow:none}

social-adn

The fa-adn icon already exists. Only the button missing! I really appreciate this project :)

www.app.net

EDIT: And sorry, it should obviously be btn-adn in the title..

btn-youtube

Please add a Youtube button with the fa-youtube icon or (alternatively fa-youtube-play)

.btn-pseudo-states doesn't exists

In bootstrap3 doesn't exists the mixin .btn-pseudo-states() (line 20 on bootstrap-social-3.less) that's why the console throws an error to at moment to compile the file bootstrap-social-3.less, so it seems to me that it right to use .button-variant() instead of .btn-pseudo-states().

good library (y) !

Bootstrap Social Buttons issue with Bootstrap Split Button Drop Downs

Using the split button drop down example provided by bootstrap:
http://getbootstrap.com/components/#btn-dropdowns-split

split portion of drop down is not displayed properly when setting the class of both buttons in the bootstrap example to:

"btn btn-block btn-social btn-facebook".

or other combinations of css classes with the two buttons. I did not see any css for btn-group within your bootstrap-social.css.

this would be great if your project was fully usable with bootstrap.

Thanks for keeping up this cool project.

btn-vimeo

Please add a Vimeo button with the fa-vimeo-square icon

Google / google-plus

i propose using the adding google class to the css.
Just the same as google-plus but with other nbame because mostly google is set as the provider and not google plus.

[enhancement] Add missing bower.json.

Hey, maintainer(s) of lipis/bootstrap-social!

We at VersionEye are working hard to keep up the quality of the bower's registry.

We just finished our initial analysis of the quality of the Bower.io registry:

7530 - registered packages, 224 of them doesnt exists anymore;

We analysed 7306 existing packages and 1070 of them don't have bower.json on the master branch ( that's where a Bower client pulls a data ).

Sadly, your library lipis/bootstrap-social is one of them.

Can you spare 15 minutes to help us to make Bower better?

Just add a new file bower.json and change attributes.

{
  "name": "lipis/bootstrap-social",
  "version": "1.0.0",
  "main": "path/to/main.css",
  "description": "please add it",
  "license": "Eclipse",
  "ignore": [
    ".jshintrc",
    "**/*.txt"
  ],
  "dependencies": {
    "<dependency_name>": "<semantic_version>",
    "<dependency_name>": "<Local_folder>",
    "<dependency_name>": "<package>"
  },
  "devDependencies": {
    "<test-framework-name>": "<version>"
  }
}

Read more about bower.json on the official spefication and nodejs semver library has great examples of proper versioning.

NB! Please validate your bower.json with jsonlint before commiting your updates.

Thank you!

Timo,
twitter: @versioneye
email: [email protected]
VersionEye - no more legacy software!

Composer package

I'd like to suggest you bundle Bootstrap Social as a package for Composer & submit it to Packagist.

The process is as simple as creating a composer.json file & submitting the GitHub URL on Packagist. If you also authorise Packagist in the GitHub project settings then your updates to Bootstrap Social automagically go to Packagist.

An example of a web assets package bundled like this is metisMenu, & on Packagist.

With Bootstrap Social bundled like this, any developer who declares it as a dependancy has it updated any time they run composer update on their project.

SCSS support

I was able to convert bootstrap-social from LESS to SCSS without too much pain. It's exactly the same number of LoC.

Would you like me to send a PR or are you planning to keep it css and LESS only?

Justified buttons

Is there any quick way of putting these is a group and making it spread evenly across a div?

btn-soundcloud

Please add a SoundCloud button with the new fa-soundcloud icon introduced in Font Awesome 4.1.0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.