persona-buttons.css 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  1. /* Link body */
  2. .persona-button{
  3. color: #fff;
  4. display: inline-block;
  5. font-size: 14px;
  6. font-family: Helvetica, Arial, sans-serif;
  7. font-weight: bold;
  8. line-height: 1.1;
  9. overflow: hidden;
  10. position: relative;
  11. text-decoration: none;
  12. text-shadow: 0 1px rgba(0,0,0,0.5), 0 0 2px rgba(0,0,0,0.2);
  13. background: #297dc3;
  14. background: -moz-linear-gradient(top, #43a6e2, #287cc2);
  15. background: -ms-linear-gradient(top, #43a6e2, #287cc2);
  16. background: -o-linear-gradient(top, #43a6e2, #287cc2);
  17. background: -webkit-linear-gradient(top, #43a6e2, #287cc2);
  18. background: linear-gradient(top, #43a6e2, #287cc2);
  19. -moz-border-radius: 3px;
  20. -ms-border-radius: 3px;
  21. -o-border-radius: 3px;
  22. -webkit-border-radius: 3px;
  23. border-radius: 3px;
  24. -moz-box-shadow: 0 1px 0 rgba(0,0,0,0.2);
  25. -ms-box-shadow: 0 1px 0 rgba(0,0,0,0.2);
  26. -o-box-shadow: 0 1px 0 rgba(0,0,0,0.2);
  27. -webkit-box-shadow: 0 1px 0 rgba(0,0,0,0.2);
  28. box-shadow: 0 1px 0 rgba(0,0,0,0.2);
  29. }
  30. .persona-button:hover{
  31. background: #21669f;
  32. background: -moz-linear-gradient(top, #3788b9, #21669f);
  33. background: -ms-linear-gradient(top, #3788b9, #21669f);
  34. background: -o-linear-gradient(top, #3788b9, #21669f);
  35. background: -webkit-linear-gradient(top, #3788b9, #21669f);
  36. background: linear-gradient(top, #3788b9, #21669f);
  37. }
  38. .persona-button:active, .persona-button:focus{
  39. top: 1px;
  40. -moz-box-shadow: none;
  41. -ms-box-shadow: none;
  42. -o-box-shadow: none;
  43. -webkit-box-shadow: none;
  44. box-shadow: none;
  45. }
  46. .persona-button span{
  47. display: inline-block;
  48. padding: 5px 10px 5px 40px;
  49. }
  50. /* Icon */
  51. .persona-button span:after{
  52. background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAAPCAYAAAA/I0V3AAAA4klEQVR42o2RWaqEMBRE3YaCiDjPwQGcd9CrysLv4wTyoLFD90dxqbp1EgdPRB7Kskznea6Zn/aPoKoqUUrJOI5m4l2QBfSyLHKep1zXZSae3An1fS/7vst931bGkzuhaZrsLVbGkzuheZ7lOI6HyJ2QUkqv6yrbtv0LT+6E7G0UrfBfP3lZlpoXH4ZBmHgn5Pv+KwxDfqp0XQdgJp6c/RsUBIGOokiSJDE/s21bACbe5Ozp0TdAHMdSFIXUdS1N01C2wpObPT36HifwCJzI0iX29Oh7XP0E3CB9L01TzM+i/wePv4ZE5RtAngAAAABJRU5ErkJggg==) 10px center no-repeat;
  53. content: '';
  54. display: block;
  55. width: 31px;
  56. position: absolute;
  57. bottom: 0;
  58. left: -3px;
  59. top: 0;
  60. z-index: 10;
  61. }
  62. /* Icon background */
  63. .persona-button span:before{
  64. content: '';
  65. display: block;
  66. height: 100%;
  67. width: 20px;
  68. position: absolute;
  69. bottom: 0;
  70. left: 0;
  71. top: 0;
  72. z-index: 1;
  73. background: #42a9dd;
  74. background: -moz-linear-gradient(top, #50b8e8, #3095ce);
  75. background: -ms-linear-gradient(top, #50b8e8, #3095ce);
  76. background: -o-linear-gradient(top, #50b8e8, #3095ce);
  77. background: -webkit-linear-gradient(top, #50b8e8, #3095ce);
  78. background: linear-gradient(top, #50b8e8, #3095ce);
  79. -moz-border-radius: 3px 0 0 3px;
  80. -ms-border-radius: 3px 0 0 3px;
  81. -o-border-radius: 3px 0 0 3px;
  82. -webkit-border-radius: 3px 0 0 3px;
  83. border-radius: 3px 0 0 3px;
  84. }
  85. /* Triangle */
  86. .persona-button:before{
  87. background: #42a9dd;
  88. content: '';
  89. display: block;
  90. height: 26px;
  91. width: 26px;
  92. position: absolute;
  93. left: 2px;
  94. top: 50%;
  95. margin-top: -13px;
  96. z-index: 0;
  97. background: -moz-linear-gradient(-45deg, #50b8e8, #3095ce);
  98. background: -ms-linear-gradient(-45deg, #50b8e8, #3095ce);
  99. background: -o-linear-gradient(-45deg, #50b8e8, #3095ce);
  100. background: -webkit-linear-gradient(-45deg, #50b8e8, #3095ce);
  101. background: linear-gradient(-45deg, #3095ce, #50b8e8); /* flipped for updated spec */
  102. -moz-box-shadow: 1px -1px 1px rgba(0,0,0,0.1);
  103. -ms-box-shadow: 1px -1px 1px rgba(0,0,0,0.1);
  104. -o-box-shadow: 1px -1px 1px rgba(0,0,0,0.1);
  105. -webkit-box-shadow: 1px -1px 1px rgba(0,0,0,0.1);
  106. box-shadow: 1px -1px 1px rgba(0,0,0,0.1);
  107. -moz-transform: rotate(45deg);
  108. -ms-transform: rotate(45deg);
  109. -o-transform: rotate(45deg);
  110. -webkit-transform: rotate(45deg);
  111. transform: rotate(45deg);
  112. }
  113. /* Inset shadow (required here because the icon background clips it when on the `a` element) */
  114. .persona-button:after{
  115. content: '';
  116. display: block;
  117. height: 100%;
  118. width: 100%;
  119. position: absolute;
  120. left: 0;
  121. top: 0;
  122. bottom: 0;
  123. right: 0;
  124. z-index: 10;
  125. -moz-border-radius: 3px;
  126. -ms-border-radius: 3px;
  127. -o-border-radius: 3px;
  128. -webkit-border-radius: 3px;
  129. border-radius: 3px;
  130. -moz-box-shadow: inset 0 -1px 0 rgba(0,0,0,0.3);
  131. -ms-box-shadow: inset 0 -1px 0 rgba(0,0,0,0.3);
  132. -o-box-shadow: inset 0 -1px 0 rgba(0,0,0,0.3);
  133. -webkit-box-shadow: inset 0 -1px 0 rgba(0,0,0,0.3);
  134. box-shadow: inset 0 -1px 0 rgba(0,0,0,0.3);
  135. }
  136. /* ========================================================
  137. * Dark button
  138. * ===================================================== */
  139. .persona-button.dark{
  140. background: #3c3c3c;
  141. background: -moz-linear-gradient(top, #606060, #3c3c3c);
  142. background: -ms-linear-gradient(top, #606060, #3c3c3c);
  143. background: -o-linear-gradient(top, #606060, #3c3c3c);
  144. background: -webkit-linear-gradient(top, #606060, #3c3c3c);
  145. background: linear-gradient(top, #606060, #3c3c3c);
  146. }
  147. .persona-button.dark:hover{
  148. background: #2d2d2d;
  149. background: -moz-linear-gradient(top, #484848, #2d2d2d);
  150. background: -ms-linear-gradient(top, #484848, #2d2d2d);
  151. background: -o-linear-gradient(top, #484848, #2d2d2d);
  152. background: -webkit-linear-gradient(top, #484848, #2d2d2d);
  153. background: linear-gradient(top, #484848, #2d2d2d);
  154. }
  155. .persona-button.dark span:before{ /* Icon BG */
  156. background: #d34f2d;
  157. background: -moz-linear-gradient(top, #ebac45, #d34f2d);
  158. background: -ms-linear-gradient(top, #ebac45, #d34f2d);
  159. background: -o-linear-gradient(top, #ebac45, #d34f2d);
  160. background: -webkit-linear-gradient(top, #ebac45, #d34f2d);
  161. background: linear-gradient(top, #ebac45, #d34f2d);
  162. }
  163. .persona-button.dark:before{ /* Triangle */
  164. background: #d34f2d;
  165. background: -moz-linear-gradient(-45deg, #ebac45, #d34f2d);
  166. background: -ms-linear-gradient(-45deg, #ebac45, #d34f2d);
  167. background: -o-linear-gradient(-45deg, #ebac45, #d34f2d);
  168. background: -webkit-linear-gradient(-45deg, #ebac45, #d34f2d);
  169. background: linear-gradient(-45deg, #d34f2d, #ebac45); /* flipped for updated spec */
  170. }
  171. /* ========================================================
  172. * Orange button
  173. * ===================================================== */
  174. .persona-button.orange{
  175. background: #ee731a;
  176. background: -moz-linear-gradient(top, #ee731a, #d03116);
  177. background: -ms-linear-gradient(top, #ee731a, #d03116);
  178. background: -o-linear-gradient(top, #ee731a, #d03116);
  179. background: -webkit-linear-gradient(top, #ee731a, #d03116);
  180. background: linear-gradient(top, #ee731a, #d03116);
  181. }
  182. .persona-button.orange:hover{
  183. background: #cb6216;
  184. background: -moz-linear-gradient(top, #cb6216, #b12a13);
  185. background: -ms-linear-gradient(top, #cb6216, #b12a13);
  186. background: -o-linear-gradient(top, #cb6216, #b12a13);
  187. background: -webkit-linear-gradient(top, #cb6216, #b12a13);
  188. background: linear-gradient(top, #cb6216, #b12a13);
  189. }
  190. .persona-button.orange span:before{ /* Icon BG */
  191. background: #e84a21;
  192. background: -moz-linear-gradient(top, #f7ad27, #e84a21);
  193. background: -ms-linear-gradient(top, #f7ad27, #e84a21);
  194. background: -o-linear-gradient(top, #f7ad27, #e84a21);
  195. background: -webkit-linear-gradient(top, #f7ad27, #e84a21);
  196. background: linear-gradient(top, #f7ad27, #e84a21);
  197. }
  198. .persona-button.orange:before{ /* Triangle */
  199. background: #e84a21;
  200. background: -moz-linear-gradient(-45deg, #f7ad27, #e84a21);
  201. background: -ms-linear-gradient(-45deg, #f7ad27, #e84a21);
  202. background: -o-linear-gradient(-45deg, #f7ad27, #e84a21);
  203. background: -webkit-linear-gradient(-45deg, #f7ad27, #e84a21);
  204. background: linear-gradient(-45deg, #e84a21, #f7ad27); /* flipped for updated spec */
  205. }