Skip to content

abouet/bootstrap-social

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bootstrap-social

Social network buttons for Bootstrap 4 using Fontawesone icons

bootstrap-social is a add-on to Bootstrap to add utility to its button system to integrate painlessly social networks.

Installation

Include stylesheet

<link href="bootstrap-social.css" rel="stylesheet" />

Include the bootstrap-social stylesheet in the head. it requires the original Bootstrap stylesheet to work

<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css" />

Documentation

bootstrap-social works with the Bootstrap button system : class="btn". bootstrap-social uses the right color of the social network. You can use FontAwesome tags to add the image to your button.

Classic

Add btn-social to have a classic button with text + btn-<your network name>

For Facebook

    <a class="btn btn-social btn-facebook">
	<i class="fab fa-facebook-f"></i>
	Login via Facebook
    </a>

It works with any image or tag :

    <a class="btn btn-social btn-google">
	<img src="img/btn_google.svg">
	Login via Google
    </a>

Icon only

Should you need only a square button dispalying the icon of you favorite network, use btn-social-icon :

    <a class="btn btn-social-icon btn-linkedin">
       <i class="fab fa-linkedin-in"></i>
    </a>

Outline buttons

    <a class="btn btn-social-icon btn-linkedin">
       <i class="fab fa-linkedin-in"></i>
    </a>

Sizes

Button group

Bootstap propose the option the group buttons. In that case, no need to use btn-social or btn-social-icon, just put btn-<your network name> in a div with btn-group (as explained in the Bootstrap documentation)

    <div class="btn-group">
    	<button type="button" class="btn btn-linkedin">
	    <i class="fab fa-linkedin-in"></i>
    	</button>
    	<button type="button" class="btn btn-viadeo">
            <i class="fab fa-viadeo"></i>
    	</button>
    	<button type="button" class="btn btn-github">
            <i class="fab fa-github"></i>
    	</button>
    </div>

Vertical variation

As explained in the Bootstrap documentation, a vertical variation exists for button group and it works just the same.

    <div class="btn-group-vertical">
    	<button type="button" class="btn btn-linkedin">
    		<i class="fab fa-linkedin-in"></i>
    	</button>
    	<button type="button" class="btn btn-viadeo">
    		<i class="fab fa-viadeo"></i>
    	</button>
    	<button type="button" class="btn btn-github">
    		<i class="fab fa-github"></i>
    	</button>
    </div>

Supported social networks

  • Adn
  • Bitbucket
  • Discord
  • Dropbox
  • Facebook
  • Flickr
  • Foursquar
  • Github
  • Google
  • Instagram
  • Linkedin
  • Microsoft
  • Odnoklassniki
  • Openid
  • Pinterest
  • Reddit
  • Soundcloud
  • Tumblr
  • Twitter
  • Viadeo
  • Vimeo
  • Vk
  • Yahoo

About

Social network button using Bootstrap 4

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors