2 * Social Buttons for Bootstrap
4 * Copyright 2013-2014 Panayiotis Lipiridis
5 * Licensed under the MIT License
7 * https://github.com/lipis/bootstrap-social
9 * Note: this file has been altered to work correctly with AdminLTE
11 @font-size-base: 14px;
12 //** Unit-less `line-height` for use in components like buttons.
13 @line-height-base: 20/14; // 20/14
14 //** Computed "line-height" (`font-size` * `line-height`) for use with `margin`, `padding`, etc.
15 @line-height-computed: floor((@font-size-base * @line-height-base)); // ~20px
17 @font-size-large: ceil((@font-size-base * 1.25)); // ~18px
18 @font-size-small: ceil((@font-size-base * 0.85)); // ~12px
20 @padding-base-vertical: 6px;
21 @padding-base-horizontal: 12px;
23 @padding-large-vertical: 10px;
24 @padding-large-horizontal: 15px;
26 @padding-small-vertical: 5px;
27 @padding-small-horizontal: 10px;
29 @bs-height-base: (@line-height-computed + @padding-base-vertical * 2);
30 @bs-height-lg: (floor(@font-size-large * @line-height-base) + @padding-large-vertical * 2);
31 @bs-height-sm: (floor(@font-size-small * 1.5) + @padding-small-vertical * 2);
32 @bs-height-xs: (floor(@font-size-small * 1.2) + @padding-small-vertical + 1);
36 padding-left: @bs-height-base + @padding-base-horizontal!important;
40 text-overflow: ellipsis;
46 width: @bs-height-base!important;
47 line-height: (@bs-height-base + 2)!important;
48 font-size: 1.6em!important;
50 border-right: 1px solid rgba(0, 0, 0, 0.2);
53 padding-left: @bs-height-lg + @padding-large-horizontal!important;
55 line-height: @bs-height-lg;
61 padding-left: @bs-height-sm + @padding-small-horizontal!important;
63 line-height: @bs-height-sm;
69 padding-left: @bs-height-xs + @padding-small-horizontal!important;
71 line-height: @bs-height-xs;
80 height: (@bs-height-base + 2);
81 width: (@bs-height-base + 2);
86 width: 100%!important;
89 height: @bs-height-lg;
95 height: (@bs-height-sm + 2);
96 width: (@bs-height-sm + 2);
101 height: (@bs-height-xs + 2);
102 width: (@bs-height-xs + 2);
108 .btn-social(@color-bg, @color: white) {
109 background-color: @color-bg;
110 .button-variant(@color, @color-bg, rgba(0, 0, 0, 0.2));
114 .btn-bitbucket { .btn-social(#205081); }
115 .btn-dropbox { .btn-social(#1087dd); }
116 .btn-facebook { .btn-social(#3b5998); }
117 .btn-flickr { .btn-social(#ff0084); }
118 .btn-foursquare { .btn-social(#0072b1); }
119 .btn-github { .btn-social(#444444); }
120 .btn-google-plus { .btn-social(#dd4b39); }
121 .btn-instagram { .btn-social(#3f729b); }
122 .btn-linkedin { .btn-social(#007bb6); }
123 .btn-tumblr { .btn-social(#2c4762); }
124 .btn-twitter { .btn-social(#55acee); }
125 .btn-vk { .btn-social(#587ea3); }
128 // -------------------------
129 // Easily pump out default styles, as well as :hover, :focus, :active,
130 // and disabled options for all buttons
131 .button-variant(@color; @background; @border) {
133 background-color: @background;
134 border-color: @border;
140 .open .dropdown-toggle& {
142 background-color: darken(@background, 8%);
143 border-color: darken(@border, 12%);
147 .open .dropdown-toggle& {
148 background-image: none;
152 fieldset[disabled] & {
158 background-color: @background;
159 border-color: @border;
165 background-color: @color;