Merge pull request #543 from danielsum/patch-1

Update Bootstrap-social.less
pull/553/head
Abdullah Almsaeed 2015-07-02 00:35:05 -04:00
commit 1e21624ddd
1 changed files with 31 additions and 24 deletions

View File

@ -1,13 +1,12 @@
/* /*
* Plugin: Social Buttons * Social Buttons for Bootstrap
* ---------------------- *
* Copyright 2013-2015 Panayiotis Lipiridis
* Licensed under the MIT License
*
* https://github.com/lipis/bootstrap-social
*/ */
// Copyright 2013-2014 Panayiotis Lipiridis
// Licensed under the MIT License
//
// https://github.com/lipis/bootstrap-social
@bs-height-base: (@line-height-computed + @padding-base-vertical * 2); @bs-height-base: (@line-height-computed + @padding-base-vertical * 2);
@bs-height-lg: (floor(@font-size-large * @line-height-base) + @padding-large-vertical * 2); @bs-height-lg: (floor(@font-size-large * @line-height-base) + @padding-large-vertical * 2);
@bs-height-sm: (floor(@font-size-small * 1.5) + @padding-small-vertical * 2); @bs-height-sm: (floor(@font-size-small * 1.5) + @padding-small-vertical * 2);
@ -15,41 +14,41 @@
.btn-social { .btn-social {
position: relative; position: relative;
padding-left: @bs-height-base + @padding-base-horizontal!important; padding-left: (@bs-height-base + @padding-base-horizontal);
text-align: left; text-align: left;
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
:first-child { > :first-child {
position: absolute; position: absolute;
left: 0; left: 0;
top: 0; top: 0;
bottom: 0; bottom: 0;
width: @bs-height-base!important; width: @bs-height-base;
line-height: (@bs-height-base + 2)!important; line-height: (@bs-height-base + 2);
font-size: 1.6em!important; font-size: 1.6em;
text-align: center; text-align: center;
border-right: 1px solid rgba(0, 0, 0, 0.2); border-right: 1px solid rgba(0, 0, 0, 0.2);
} }
&.btn-lg { &.btn-lg {
padding-left: @bs-height-lg + @padding-large-horizontal!important; padding-left: (@bs-height-lg + @padding-large-horizontal);
:first-child { > :first-child {
line-height: @bs-height-lg; line-height: @bs-height-lg;
width: @bs-height-lg; width: @bs-height-lg;
font-size: 1.8em; font-size: 1.8em;
} }
} }
&.btn-sm { &.btn-sm {
padding-left: @bs-height-sm + @padding-small-horizontal!important; padding-left: (@bs-height-sm + @padding-small-horizontal);
:first-child { > :first-child {
line-height: @bs-height-sm; line-height: @bs-height-sm;
width: @bs-height-sm; width: @bs-height-sm;
font-size: 1.4em; font-size: 1.4em;
} }
} }
&.btn-xs { &.btn-xs {
padding-left: @bs-height-xs + @padding-small-horizontal!important; padding-left: (@bs-height-xs + @padding-small-horizontal);
:first-child { > :first-child {
line-height: @bs-height-xs; line-height: @bs-height-xs;
width: @bs-height-xs; width: @bs-height-xs;
font-size: 1.2em; font-size: 1.2em;
@ -62,7 +61,7 @@
height: (@bs-height-base + 2); height: (@bs-height-base + 2);
width: (@bs-height-base + 2); width: (@bs-height-base + 2);
padding: 0; padding: 0;
:first-child { > :first-child {
border: none; border: none;
text-align: center; text-align: center;
width: 100%!important; width: 100%!important;
@ -87,21 +86,29 @@
} }
} }
.btn-social(@color-bg, @color: white) { .btn-social(@color-bg, @color: #fff) {
background-color: @color-bg; background-color: @color-bg;
.button-variant(@color, @color-bg, rgba(0, 0, 0, 0.2)); .button-variant(@color, @color-bg, rgba(0,0,0,.2));
} }
.btn-adn { .btn-social(#d87a68); }
.btn-bitbucket { .btn-social(#205081); } .btn-bitbucket { .btn-social(#205081); }
.btn-dropbox { .btn-social(#1087dd); } .btn-dropbox { .btn-social(#1087dd); }
.btn-facebook { .btn-social(#3b5998); } .btn-facebook { .btn-social(#3b5998); }
.btn-flickr { .btn-social(#ff0084); } .btn-flickr { .btn-social(#ff0084); }
.btn-foursquare { .btn-social(#0072b1); } .btn-foursquare { .btn-social(#f94877); }
.btn-github { .btn-social(#444444); } .btn-github { .btn-social(#444444); }
.btn-google-plus { .btn-social(#dd4b39); } .btn-google { .btn-social(#dd4b39); }
.btn-instagram { .btn-social(#3f729b); } .btn-instagram { .btn-social(#3f729b); }
.btn-linkedin { .btn-social(#007bb6); } .btn-linkedin { .btn-social(#007bb6); }
.btn-microsoft { .btn-social(#2672ec); }
.btn-openid { .btn-social(#f7931e); }
.btn-pinterest { .btn-social(#cb2027); }
.btn-reddit { .btn-social(#eff7ff, #000); }
.btn-soundcloud { .btn-social(#ff5500); }
.btn-tumblr { .btn-social(#2c4762); } .btn-tumblr { .btn-social(#2c4762); }
.btn-twitter { .btn-social(#55acee); } .btn-twitter { .btn-social(#55acee); }
.btn-vimeo { .btn-social(#1ab7ea); }
.btn-vk { .btn-social(#587ea3); } .btn-vk { .btn-social(#587ea3); }
.btn-yahoo { .btn-social(#720e9e); }