bootstrap-social.less 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. /*
  2. * Social Buttons for Bootstrap
  3. *
  4. * Copyright 2013-2015 Panayiotis Lipiridis
  5. * Licensed under the MIT License
  6. *
  7. * https://github.com/lipis/bootstrap-social
  8. */
  9. @bs-height-base: (@line-height-computed + @padding-base-vertical * 2);
  10. @bs-height-lg: (floor(@font-size-large * @line-height-base) + @padding-large-vertical * 2 + 2);
  11. @bs-height-sm: (floor(@font-size-small * 1.5) + @padding-small-vertical * 2);
  12. @bs-height-xs: (floor(@font-size-small * 1.2) + @padding-small-vertical + 1);
  13. .btn-social {
  14. position: relative;
  15. padding-left: (@bs-height-base + @padding-base-horizontal);
  16. text-align: left;
  17. white-space: nowrap;
  18. overflow: hidden;
  19. text-overflow: ellipsis;
  20. > :first-child {
  21. position: absolute;
  22. left: 0;
  23. top: 0;
  24. bottom: 0;
  25. width: @bs-height-base;
  26. line-height: (@bs-height-base + 2);
  27. font-size: 1.6em;
  28. text-align: center;
  29. border-right: 1px solid rgba(0, 0, 0, 0.2);
  30. }
  31. &.btn-lg {
  32. padding-left: (@bs-height-lg + @padding-large-horizontal);
  33. > :first-child {
  34. line-height: @bs-height-lg;
  35. width: @bs-height-lg;
  36. font-size: 1.8em;
  37. }
  38. }
  39. &.btn-sm {
  40. padding-left: (@bs-height-sm + @padding-small-horizontal);
  41. > :first-child {
  42. line-height: @bs-height-sm;
  43. width: @bs-height-sm;
  44. font-size: 1.4em;
  45. }
  46. }
  47. &.btn-xs {
  48. padding-left: (@bs-height-xs + @padding-small-horizontal);
  49. > :first-child {
  50. line-height: @bs-height-xs;
  51. width: @bs-height-xs;
  52. font-size: 1.2em;
  53. }
  54. }
  55. }
  56. .btn-social-icon {
  57. .btn-social;
  58. height: (@bs-height-base + 2);
  59. width: (@bs-height-base + 2);
  60. padding: 0;
  61. > :first-child {
  62. border: none;
  63. text-align: center;
  64. width: 100%;
  65. }
  66. &.btn-lg {
  67. height: @bs-height-lg;
  68. width: @bs-height-lg;
  69. padding-left: 0;
  70. padding-right: 0;
  71. }
  72. &.btn-sm {
  73. height: (@bs-height-sm + 2);
  74. width: (@bs-height-sm + 2);
  75. padding-left: 0;
  76. padding-right: 0;
  77. }
  78. &.btn-xs {
  79. height: (@bs-height-xs + 2);
  80. width: (@bs-height-xs + 2);
  81. padding-left: 0;
  82. padding-right: 0;
  83. }
  84. }
  85. .btn-social(@color-bg, @color: #fff) {
  86. background-color: @color-bg;
  87. .button-variant(@color, @color-bg, rgba(0, 0, 0, .2));
  88. }
  89. .btn-adn {
  90. .btn-social(#d87a68);
  91. }
  92. .btn-bitbucket {
  93. .btn-social(#205081);
  94. }
  95. .btn-dropbox {
  96. .btn-social(#1087dd);
  97. }
  98. .btn-facebook {
  99. .btn-social(#3b5998);
  100. }
  101. .btn-flickr {
  102. .btn-social(#ff0084);
  103. }
  104. .btn-foursquare {
  105. .btn-social(#f94877);
  106. }
  107. .btn-github {
  108. .btn-social(#444444);
  109. }
  110. .btn-google {
  111. .btn-social(#dd4b39);
  112. }
  113. .btn-instagram {
  114. .btn-social(#3f729b);
  115. }
  116. .btn-linkedin {
  117. .btn-social(#007bb6);
  118. }
  119. .btn-microsoft {
  120. .btn-social(#2672ec);
  121. }
  122. .btn-openid {
  123. .btn-social(#f7931e);
  124. }
  125. .btn-pinterest {
  126. .btn-social(#cb2027);
  127. }
  128. .btn-reddit {
  129. .btn-social(#eff7ff, #000);
  130. }
  131. .btn-soundcloud {
  132. .btn-social(#ff5500);
  133. }
  134. .btn-tumblr {
  135. .btn-social(#2c4762);
  136. }
  137. .btn-twitter {
  138. .btn-social(#55acee);
  139. }
  140. .btn-vimeo {
  141. .btn-social(#1ab7ea);
  142. }
  143. .btn-vk {
  144. .btn-social(#587ea3);
  145. }
  146. .btn-yahoo {
  147. .btn-social(#720e9e);
  148. }