wp-pointer.css 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  1. .wp-pointer-content {
  2. padding: 0 0 10px;
  3. position: relative;
  4. font-size: 13px;
  5. background: #fff;
  6. border: 1px solid #c3c4c7;
  7. box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
  8. }
  9. .wp-pointer-content h3 {
  10. position: relative;
  11. margin: -1px -1px 5px;
  12. padding: 15px 18px 14px 60px;
  13. border: 1px solid #2271b1;
  14. border-bottom: none;
  15. line-height: 1.4;
  16. font-size: 14px;
  17. color: #fff;
  18. background: #2271b1;
  19. }
  20. .wp-pointer-content h3:before {
  21. background: #fff;
  22. border-radius: 50%;
  23. color: #2271b1;
  24. content: "\f227";
  25. font: normal 20px/1.6 dashicons;
  26. position: absolute;
  27. top: 8px;
  28. left: 15px;
  29. speak: never;
  30. text-align: center;
  31. width: 32px;
  32. height: 32px;
  33. -webkit-font-smoothing: antialiased;
  34. -moz-osx-font-smoothing: grayscale;
  35. }
  36. .wp-pointer-content h4 {
  37. margin: 1.33em 20px 1em;
  38. font-size: 1.15em;
  39. }
  40. .wp-pointer-content p {
  41. padding: 0 20px;
  42. }
  43. .wp-pointer-buttons {
  44. margin: 0;
  45. padding: 5px 15px;
  46. overflow: auto;
  47. }
  48. .wp-pointer-buttons a {
  49. float: right;
  50. display: inline-block;
  51. text-decoration: none;
  52. }
  53. .wp-pointer-buttons a.close {
  54. padding-left: 3px;
  55. position: relative;
  56. }
  57. .wp-pointer-buttons a.close:before {
  58. background: none;
  59. color: #787c82;
  60. content: "\f153";
  61. display: block !important;
  62. font: normal 16px/1 dashicons;
  63. speak: never;
  64. margin: 1px 0;
  65. text-align: center;
  66. -webkit-font-smoothing: antialiased !important;
  67. width: 10px;
  68. height: 100%;
  69. position: absolute;
  70. left: -15px;
  71. top: 1px;
  72. }
  73. .wp-pointer-buttons a.close:hover:before {
  74. color: #d63638;
  75. }
  76. /* The arrow base class must take up no space, even with transparent borders. */
  77. .wp-pointer-arrow,
  78. .wp-pointer-arrow-inner {
  79. position: absolute;
  80. width: 0;
  81. height: 0;
  82. }
  83. .wp-pointer-arrow {
  84. z-index: 10;
  85. width: 0;
  86. height: 0;
  87. border: 0 solid transparent;
  88. }
  89. .wp-pointer-arrow-inner {
  90. z-index: 20;
  91. }
  92. /* Make Room for the Arrow! */
  93. .wp-pointer-top,
  94. .wp-pointer-undefined {
  95. padding-top: 13px;
  96. }
  97. .wp-pointer-bottom {
  98. margin-top: -13px;
  99. padding-bottom: 13px;
  100. }
  101. /* rtl:ignore */
  102. .wp-pointer-left {
  103. padding-left: 13px;
  104. }
  105. /* rtl:ignore */
  106. .wp-pointer-right {
  107. margin-left: -13px;
  108. padding-right: 13px;
  109. }
  110. /* Base Size & Positioning */
  111. .wp-pointer-top .wp-pointer-arrow,
  112. .wp-pointer-bottom .wp-pointer-arrow,
  113. .wp-pointer-undefined .wp-pointer-arrow {
  114. left: 50px;
  115. }
  116. .wp-pointer-left .wp-pointer-arrow,
  117. .wp-pointer-right .wp-pointer-arrow {
  118. top: 50%;
  119. margin-top: -15px;
  120. }
  121. /* Arrow Sprite */
  122. .wp-pointer-top .wp-pointer-arrow,
  123. .wp-pointer-undefined .wp-pointer-arrow {
  124. top: 0;
  125. border-width: 0 13px 13px;
  126. border-bottom-color: #2271b1;
  127. }
  128. .wp-pointer-top .wp-pointer-arrow-inner,
  129. .wp-pointer-undefined .wp-pointer-arrow-inner {
  130. top: 1px;
  131. margin-left: -13px;
  132. margin-top: -13px;
  133. border: 13px solid transparent;
  134. border-bottom-color: #2271b1;
  135. display: block;
  136. content: " ";
  137. }
  138. .wp-pointer-bottom .wp-pointer-arrow {
  139. bottom: 0;
  140. border-width: 13px 13px 0;
  141. border-top-color: #c3c4c7;
  142. }
  143. .wp-pointer-bottom .wp-pointer-arrow-inner {
  144. bottom: 1px;
  145. margin-left: -13px;
  146. margin-bottom: -13px;
  147. border: 13px solid transparent;
  148. border-top-color: #fff;
  149. display: block;
  150. content: " ";
  151. }
  152. /* rtl:ignore */
  153. .wp-pointer-left .wp-pointer-arrow {
  154. left: 0;
  155. border-width: 13px 13px 13px 0;
  156. border-right-color: #c3c4c7;
  157. }
  158. /* rtl:ignore */
  159. .wp-pointer-left .wp-pointer-arrow-inner {
  160. left: 1px;
  161. margin-left: -13px;
  162. margin-top: -13px;
  163. border: 13px solid transparent;
  164. border-right-color: #fff;
  165. display: block;
  166. content: " ";
  167. }
  168. /* rtl:ignore */
  169. .wp-pointer-right .wp-pointer-arrow {
  170. right: 0;
  171. border-width: 13px 0 13px 13px;
  172. border-left-color: #c3c4c7;
  173. }
  174. /* rtl:ignore */
  175. .wp-pointer-right .wp-pointer-arrow-inner {
  176. right: 1px;
  177. margin-right: -13px;
  178. margin-top: -13px;
  179. border: 13px solid transparent;
  180. border-left-color: #fff;
  181. display: block;
  182. content: " ";
  183. }
  184. .wp-pointer.arrow-bottom .wp-pointer-content {
  185. margin-bottom: -45px;
  186. }
  187. .wp-pointer.arrow-bottom .wp-pointer-arrow {
  188. top: 100%;
  189. margin-top: -30px;
  190. }
  191. /* Disable pointers at responsive sizes */
  192. @media screen and (max-width: 782px) {
  193. .wp-pointer {
  194. display: none;
  195. }
  196. }