You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
AdminLTE/build/scss/_bootstrap-social.scss

173 lines
3.1 KiB

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