Brak opisu

style.css 4.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. /**
  2. * Like Button toolbar button, loading text & container styles
  3. */
  4. /* Master container */
  5. #jp-post-flair {
  6. padding-top: .5em;
  7. }
  8. /* Overall Sharedaddy block title */
  9. div.sharedaddy,
  10. #content div.sharedaddy,
  11. #main div.sharedaddy {
  12. clear: both;
  13. }
  14. div.sharedaddy h3.sd-title {
  15. margin: 0 0 1em 0;
  16. display: inline-block;
  17. line-height: 1.2;
  18. font-size: 9pt;
  19. font-weight: bold;
  20. }
  21. div.sharedaddy h3.sd-title:before {
  22. content: "";
  23. display: block;
  24. width: 100%;
  25. min-width: 30px;
  26. border-top: 1px solid #dcdcde;
  27. margin-bottom: 1em;
  28. }
  29. /* Toolbar */
  30. #wpadminbar li#wp-admin-bar-admin-bar-likes-widget {
  31. width: 61px;
  32. overflow: hidden;
  33. }
  34. #wpadminbar iframe.admin-bar-likes-widget {
  35. width: 61px;
  36. height: 28px;
  37. min-height: 28px;
  38. border-width: 0px;
  39. position: absolute;
  40. top: 0;
  41. }
  42. div.jetpack-likes-widget-wrapper {
  43. width: 100%;
  44. min-height: 50px; /* Previous height, 60px */
  45. position: relative; /* Need to abs position placeholder and iframe so there isn't a jarring jump */
  46. }
  47. div.jetpack-likes-widget-wrapper .sd-link-color {
  48. font-size: 12px;
  49. }
  50. div.jetpack-likes-widget-wrapper.slim-likes-widget {
  51. width: 1px; /* initial default */
  52. min-height: 0;
  53. }
  54. div.jetpack-comment-likes-widget-wrapper {
  55. width: 100%;
  56. position: relative;
  57. min-height: 31px;
  58. }
  59. div.jetpack-comment-likes-widget-wrapper iframe {
  60. margin-bottom: 0;
  61. }
  62. #likes-other-gravatars {
  63. display: none;
  64. position: absolute;
  65. padding: 10px 10px 12px 10px;
  66. background-color: #2e4453;
  67. border-width: 0;
  68. box-shadow: 0 0 10px #2e4453;
  69. box-shadow: 0 0 10px rgba(46,68,83,.6);
  70. min-width: 130px;
  71. z-index: 1000;
  72. }
  73. #likes-other-gravatars * {
  74. line-height: normal;
  75. }
  76. #likes-other-gravatars .likes-text {
  77. color: white;
  78. font-size: 12px;
  79. padding-bottom: 8px;
  80. }
  81. #likes-other-gravatars ul,
  82. #likes-other-gravatars li {
  83. margin: 0;
  84. padding: 0;
  85. text-indent: 0;
  86. list-style-type: none;
  87. }
  88. #likes-other-gravatars li::before {
  89. content: "";
  90. }
  91. #likes-other-gravatars ul.wpl-avatars {
  92. overflow: auto;
  93. display: block;
  94. max-height: 190px;
  95. }
  96. #likes-other-gravatars ul.wpl-avatars li {
  97. width: 32px;
  98. height: 32px;
  99. float: left;
  100. margin: 0 5px 5px 0;
  101. }
  102. #likes-other-gravatars ul.wpl-avatars li a {
  103. margin: 0 2px 0 0;
  104. border-bottom: none !important;
  105. display: block;
  106. }
  107. #likes-other-gravatars ul.wpl-avatars li a img {
  108. background: none;
  109. border: none;
  110. margin: 0 !important;
  111. padding: 0 !important;
  112. position: static;
  113. }
  114. div.sd-box {
  115. border-top: 1px solid #dcdcde;
  116. border-top: 1px solid rgba(0,0,0,.13);
  117. }
  118. .entry-content .post-likes-widget, .post-likes-widget,
  119. .comment-likes-widget {
  120. margin: 0;
  121. border-width: 0;
  122. display: block;
  123. }
  124. /* Loading text */
  125. .post-likes-widget-placeholder,
  126. .comment-likes-widget-placeholder {
  127. margin: 0;
  128. border-width: 0;
  129. position: relative;
  130. }
  131. .comment-likes-widget-placeholder {
  132. height: 18px;
  133. position: absolute;
  134. display: flex;
  135. font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
  136. }
  137. .comment-likes-widget-placeholder::before {
  138. color: #2EA2CC;
  139. width: 16px;
  140. height: 16px;
  141. content: '';
  142. display: inline-block;
  143. position: relative;
  144. top: 3px;
  145. padding-right: 5px;
  146. background-repeat: no-repeat;
  147. background-size: 16px 16px;
  148. background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='0' fill='none' width='24' height='24'/%3E%3Cg%3E%3Cpath fill='%232EA2CC' d='M12 2l2.582 6.953L22 9.257l-5.822 4.602L18.18 21 12 16.89 5.82 21l2.002-7.14L2 9.256l7.418-.304'/%3E%3C/g%3E%3C/svg%3E");
  149. }
  150. .post-likes-widget-placeholder .button {
  151. display: none; /* Let's not show a dummy like button, let's just make a great button experience once it's loaded */
  152. }
  153. .post-likes-widget-placeholder .button span {
  154. }
  155. .post-likes-widget-placeholder .loading,
  156. .comment-likes-widget-placeholder .loading {
  157. color: #999;
  158. font-size: 12px;
  159. }
  160. .comment-likes-widget-placeholder .loading {
  161. padding-left: 5px;
  162. margin-top: 4px;
  163. align-self: center;
  164. color: #4E4E4E;
  165. }
  166. .slim-likes-widget .post-likes-widget {
  167. width: auto;
  168. float: none;
  169. }
  170. /* Like Special cases (display on it's own) */
  171. div.sharedaddy.sd-like-enabled .sd-like h3 {
  172. display: none;
  173. }
  174. div.sharedaddy.sd-like-enabled .sd-like .post-likes-widget {
  175. width: 100%;
  176. float: none;
  177. position: absolute; /* Need to abs position placeholder and iframe so there isn't a jarring jump */
  178. top: 0;
  179. }
  180. .comment-likes-widget {
  181. width: 100%;
  182. }
  183. /* Make ratings block. @todo: make !important unnecessary by removing inline style */
  184. .pd-rating,
  185. .cs-rating {
  186. display: block !important;
  187. }
  188. /* Hide G+ title */
  189. .sd-gplus .sd-title {
  190. display: none;
  191. }