You are here

floating_social_icons.css in Floating Social Icons 8

/*CSS for dynamic classes */

#floating-icons .floating-social-icons {
  display: inline-block;
  position: fixed;
  z-index: 9999;
}

#floating-icons .floating-top {
  top: 0px;
  right: 100px;
}

#floating-icons .floating-right {
  right: 0px;
  top: 100px;
}

#floating-icons .floating-bottom {
  bottom: 0px;
  right: 100px;
}

#floating-icons .floating-left {
  left: 0px;
  top: 100px;
}


/* CSS for anchor tag */

#floating-icons a.grow,
#floating-icons a.shrink,
#floating-icons a.black-white,
#floating-icons a.white-black,
#floating-icons a.rotate {
  position: relative;
  width: 45px;
  height: 30px;
  padding: 8px 0;
  display: inline-block;
  text-align: center;
  color: #fff;
  line-height: inherit;
  font-size: 24px;
  border-bottom: none;
}

#floating-icons a.rotate {
  -webkit-transition-property: transform;
  -moz-transition-property: transform;
  -ms-transition-property: transform;
  -o-transition-property: transform;
  transition-property: transform;
  transition-duration: 1s;
}

#floating-icons a.shrink:active,
#floating-icons a.shrink:hover {
  z-index: 10;
  -webkit-box-shadow: 1px 1px 1px 1px #333;
  -moz-box-shadow: 1px 1px 1px 1px #333;
  box-shadow: 1px 1px 1px 1px #333;
  -webkit-transform: scale(0.9);
  -moz-transform: scale(0.9);
  -ms-transform: scale(0.9);
  -o-transform: scale(0.9);
  transform: scale(0.9);
}

#floating-icons a.grow:active,
#floating-icons a.grow:hover {
  z-index: 10;
  -webkit-box-shadow: 1px 1px 1px 1px #333;
  -moz-box-shadow: 1px 1px 1px 1px #333;
  box-shadow: 1px 1px 1px 1px #333;
  -webkit-transform: scale(1.1);
  -moz-transform: scale(1.1);
  -ms-transform: scale(1.1);
  -o-transform: scale(1.1);
  transform: scale(1.1);
}

#floating-icons a.black-white:active,
#floating-icons a.black-white:hover {
  z-index: 10;
  color: #ffffff;
  background: #000000;
  -webkit-box-shadow: 1px 2px 15px 3px #333;
  -moz-box-shadow: 1px 2px 15px 3px #333;
  box-shadow: 1px 2px 15px 3px #333;
  -webkit-transform: scale(1.1);
  -moz-transform: scale(1.1);
  -ms-transform: scale(1.1);
  -o-transform: scale(1.1);
  transform: scale(1.1);
}

#floating-icons a.white-black:active,
#floating-icons a.white-black:hover {
  z-index: 10;
  color: #000000;
  background: #ffffff;
  -webkit-box-shadow: 1px 2px 15px 3px #333;
  -moz-box-shadow: 1px 2px 15px 3px #333;
  box-shadow: 1px 2px 15px 3px #333;
  -webkit-transform: scale(1.1);
  -moz-transform: scale(1.1);
  -ms-transform: scale(1.1);
  -o-transform: scale(1.1);
  transform: scale(1.1);
}

#floating-icons a.rotate:active,
#floating-icons a.rotate:hover {
  z-index: 10;
  animation-name: rotate;
  animation-duration: 1s;
  animation-iteration-count: 1;
  animation-timing-function: linear;
}


/* Css for dynamic classes */

#floating-icons .floating-horizontal {
  float: left;
}

#floating-icons .floating-vertical {
  display: block;
}


/* Setting Background Color for font awesome icons */

#floating-icons .facebook {
  background-color: #3b5998;
}

#floating-icons .google-plus {
  background-color: #dd4b39;
}

#floating-icons .linkedin {
  background-color: #007bb6;
}

#floating-icons .twitter {
  background-color: #00aced;
}

#floating-icons .pinterest {
  background-color: #cb2027;
}

#floating-icons .instagram {
  background: linear-gradient(#683dc0, #f46833, #fcb050);
}

#floating-icons .youtube {
  background: #f23f29;
}

#floating-icons .mail {
  background: linear-gradient(#5a84fd, #6fe9ff);
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}


/* Responsive css */

/*mobile potrait*/

@media screen and (max-width:414px),
screen and (min-width:568px) and (max-width: 767px),
screen and (min-width:768px) and (max-width:1024px) {

  #floating-icons .floating-top,
  #floating-icons .floating-right,
  #floating-icons .floating-bottom,
  #floating-icons .floating-left {
    width: 100%;
    display: inline-block;
    position: fixed;
    z-index: 9999;
    bottom: 0px;
    top: initial;
    right: initial;
    left: 0px;
  }
  #floating-icons a.grow,
  #floating-icons a.shrink,
  #floating-icons a.black-white,
  #floating-icons a.white-black,
  #floating-icons a.rotate {
    width: 100%;
  }
  #floating-icons .two {
    width: 50%;
    float: left;
  }
  #floating-icons .three {
    width: 33.33%;
    float: left;
  }
  #floating-icons .four {
    width: 25%;
    float: left;
  }
  #floating-icons .five {
    width: 20%;
    float: left;
  }
  #floating-icons .six {
    width: 16.66%;
    float: left;
  }
  #floating-icons .seven {
    width: 14.28%;
    float: left;
  }
  #floating-icons .eight {
    width: 12.50%;
    float: left;
  }
  #floating-icons a {
    width: 100%;
    float: left;
  }
  footer {
    margin-bottom: 25px;
  }
}

File

css/floating_social_icons.css
View source
  1. /*CSS for dynamic classes */
  2. #floating-icons .floating-social-icons {
  3. display: inline-block;
  4. position: fixed;
  5. z-index: 9999;
  6. }
  7. #floating-icons .floating-top {
  8. top: 0px;
  9. right: 100px;
  10. }
  11. #floating-icons .floating-right {
  12. right: 0px;
  13. top: 100px;
  14. }
  15. #floating-icons .floating-bottom {
  16. bottom: 0px;
  17. right: 100px;
  18. }
  19. #floating-icons .floating-left {
  20. left: 0px;
  21. top: 100px;
  22. }
  23. /* CSS for anchor tag */
  24. #floating-icons a.grow,
  25. #floating-icons a.shrink,
  26. #floating-icons a.black-white,
  27. #floating-icons a.white-black,
  28. #floating-icons a.rotate {
  29. position: relative;
  30. width: 45px;
  31. height: 30px;
  32. padding: 8px 0;
  33. display: inline-block;
  34. text-align: center;
  35. color: #fff;
  36. line-height: inherit;
  37. font-size: 24px;
  38. border-bottom: none;
  39. }
  40. #floating-icons a.rotate {
  41. -webkit-transition-property: transform;
  42. -moz-transition-property: transform;
  43. -ms-transition-property: transform;
  44. -o-transition-property: transform;
  45. transition-property: transform;
  46. transition-duration: 1s;
  47. }
  48. #floating-icons a.shrink:active,
  49. #floating-icons a.shrink:hover {
  50. z-index: 10;
  51. -webkit-box-shadow: 1px 1px 1px 1px #333;
  52. -moz-box-shadow: 1px 1px 1px 1px #333;
  53. box-shadow: 1px 1px 1px 1px #333;
  54. -webkit-transform: scale(0.9);
  55. -moz-transform: scale(0.9);
  56. -ms-transform: scale(0.9);
  57. -o-transform: scale(0.9);
  58. transform: scale(0.9);
  59. }
  60. #floating-icons a.grow:active,
  61. #floating-icons a.grow:hover {
  62. z-index: 10;
  63. -webkit-box-shadow: 1px 1px 1px 1px #333;
  64. -moz-box-shadow: 1px 1px 1px 1px #333;
  65. box-shadow: 1px 1px 1px 1px #333;
  66. -webkit-transform: scale(1.1);
  67. -moz-transform: scale(1.1);
  68. -ms-transform: scale(1.1);
  69. -o-transform: scale(1.1);
  70. transform: scale(1.1);
  71. }
  72. #floating-icons a.black-white:active,
  73. #floating-icons a.black-white:hover {
  74. z-index: 10;
  75. color: #ffffff;
  76. background: #000000;
  77. -webkit-box-shadow: 1px 2px 15px 3px #333;
  78. -moz-box-shadow: 1px 2px 15px 3px #333;
  79. box-shadow: 1px 2px 15px 3px #333;
  80. -webkit-transform: scale(1.1);
  81. -moz-transform: scale(1.1);
  82. -ms-transform: scale(1.1);
  83. -o-transform: scale(1.1);
  84. transform: scale(1.1);
  85. }
  86. #floating-icons a.white-black:active,
  87. #floating-icons a.white-black:hover {
  88. z-index: 10;
  89. color: #000000;
  90. background: #ffffff;
  91. -webkit-box-shadow: 1px 2px 15px 3px #333;
  92. -moz-box-shadow: 1px 2px 15px 3px #333;
  93. box-shadow: 1px 2px 15px 3px #333;
  94. -webkit-transform: scale(1.1);
  95. -moz-transform: scale(1.1);
  96. -ms-transform: scale(1.1);
  97. -o-transform: scale(1.1);
  98. transform: scale(1.1);
  99. }
  100. #floating-icons a.rotate:active,
  101. #floating-icons a.rotate:hover {
  102. z-index: 10;
  103. animation-name: rotate;
  104. animation-duration: 1s;
  105. animation-iteration-count: 1;
  106. animation-timing-function: linear;
  107. }
  108. /* Css for dynamic classes */
  109. #floating-icons .floating-horizontal {
  110. float: left;
  111. }
  112. #floating-icons .floating-vertical {
  113. display: block;
  114. }
  115. /* Setting Background Color for font awesome icons */
  116. #floating-icons .facebook {
  117. background-color: #3b5998;
  118. }
  119. #floating-icons .google-plus {
  120. background-color: #dd4b39;
  121. }
  122. #floating-icons .linkedin {
  123. background-color: #007bb6;
  124. }
  125. #floating-icons .twitter {
  126. background-color: #00aced;
  127. }
  128. #floating-icons .pinterest {
  129. background-color: #cb2027;
  130. }
  131. #floating-icons .instagram {
  132. background: linear-gradient(#683dc0, #f46833, #fcb050);
  133. }
  134. #floating-icons .youtube {
  135. background: #f23f29;
  136. }
  137. #floating-icons .mail {
  138. background: linear-gradient(#5a84fd, #6fe9ff);
  139. }
  140. @keyframes rotate {
  141. from {
  142. transform: rotate(0deg);
  143. }
  144. to {
  145. transform: rotate(360deg);
  146. }
  147. }
  148. /* Responsive css */
  149. /*mobile potrait*/
  150. @media screen and (max-width:414px),
  151. screen and (min-width:568px) and (max-width: 767px),
  152. screen and (min-width:768px) and (max-width:1024px) {
  153. #floating-icons .floating-top,
  154. #floating-icons .floating-right,
  155. #floating-icons .floating-bottom,
  156. #floating-icons .floating-left {
  157. width: 100%;
  158. display: inline-block;
  159. position: fixed;
  160. z-index: 9999;
  161. bottom: 0px;
  162. top: initial;
  163. right: initial;
  164. left: 0px;
  165. }
  166. #floating-icons a.grow,
  167. #floating-icons a.shrink,
  168. #floating-icons a.black-white,
  169. #floating-icons a.white-black,
  170. #floating-icons a.rotate {
  171. width: 100%;
  172. }
  173. #floating-icons .two {
  174. width: 50%;
  175. float: left;
  176. }
  177. #floating-icons .three {
  178. width: 33.33%;
  179. float: left;
  180. }
  181. #floating-icons .four {
  182. width: 25%;
  183. float: left;
  184. }
  185. #floating-icons .five {
  186. width: 20%;
  187. float: left;
  188. }
  189. #floating-icons .six {
  190. width: 16.66%;
  191. float: left;
  192. }
  193. #floating-icons .seven {
  194. width: 14.28%;
  195. float: left;
  196. }
  197. #floating-icons .eight {
  198. width: 12.50%;
  199. float: left;
  200. }
  201. #floating-icons a {
  202. width: 100%;
  203. float: left;
  204. }
  205. footer {
  206. margin-bottom: 25px;
  207. }
  208. }