bootstrap-social.scss 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. /*
  2. * Social Buttons for Bootstrap
  3. *
  4. * Copyright 2013-2014 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);
  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. @extend .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%!important;
  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. @mixin btn-social($color-bg, $color: #fff) {
  86. background-color: $color-bg;
  87. @include button-variant($color, $color-bg, rgba(0,0,0,.2));
  88. }
  89. .btn-adn { @include btn-social(#d87a68); }
  90. .btn-bitbucket { @include btn-social(#205081); }
  91. .btn-dropbox { @include btn-social(#1087dd); }
  92. .btn-facebook { @include btn-social(#3b5998); }
  93. .btn-flickr { @include btn-social(#ff0084); }
  94. .btn-foursquare { @include btn-social(#f94877); }
  95. .btn-github { @include btn-social(#444444); }
  96. .btn-google-plus { @include btn-social(#dd4b39); }
  97. .btn-instagram { @include btn-social(#3f729b); }
  98. .btn-linkedin { @include btn-social(#007bb6); }
  99. .btn-microsoft { @include btn-social(#2672ec); }
  100. .btn-openid { @include btn-social(#f7931e); }
  101. .btn-pinterest { @include btn-social(#cb2027); }
  102. .btn-reddit { @include btn-social(#eff7ff, #000); }
  103. .btn-soundcloud { @include btn-social(#ff5500); }
  104. .btn-tumblr { @include btn-social(#2c4762); }
  105. .btn-twitter { @include btn-social(#55acee); }
  106. .btn-vimeo { @include btn-social(#1ab7ea); }
  107. .btn-vk { @include btn-social(#587ea3); }
  108. .btn-yahoo { @include btn-social(#720e9e); }