prism-previewers.css 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  1. .prism-previewer,
  2. .prism-previewer:before,
  3. .prism-previewer:after {
  4. position: absolute;
  5. pointer-events: none;
  6. }
  7. .prism-previewer,
  8. .prism-previewer:after {
  9. left: 50%;
  10. }
  11. .prism-previewer {
  12. margin-top: -48px;
  13. width: 32px;
  14. height: 32px;
  15. margin-left: -16px;
  16. z-index: 10;
  17. opacity: 0;
  18. -webkit-transition: opacity .25s;
  19. -o-transition: opacity .25s;
  20. transition: opacity .25s;
  21. }
  22. .prism-previewer.flipped {
  23. margin-top: 0;
  24. margin-bottom: -48px;
  25. }
  26. .prism-previewer:before,
  27. .prism-previewer:after {
  28. content: '';
  29. position: absolute;
  30. pointer-events: none;
  31. }
  32. .prism-previewer:before {
  33. top: -5px;
  34. right: -5px;
  35. left: -5px;
  36. bottom: -5px;
  37. border-radius: 10px;
  38. border: 5px solid #fff;
  39. box-shadow: 0 0 3px rgba(0, 0, 0, 0.5) inset, 0 0 10px rgba(0, 0, 0, 0.75);
  40. }
  41. .prism-previewer:after {
  42. top: 100%;
  43. width: 0;
  44. height: 0;
  45. margin: 5px 0 0 -7px;
  46. border: 7px solid transparent;
  47. border-color: rgba(255, 0, 0, 0);
  48. border-top-color: #fff;
  49. }
  50. .prism-previewer.flipped:after {
  51. top: auto;
  52. bottom: 100%;
  53. margin-top: 0;
  54. margin-bottom: 5px;
  55. border-top-color: rgba(255, 0, 0, 0);
  56. border-bottom-color: #fff;
  57. }
  58. .prism-previewer.active {
  59. opacity: 1;
  60. }
  61. .prism-previewer-angle:before {
  62. border-radius: 50%;
  63. background: #fff;
  64. }
  65. .prism-previewer-angle:after {
  66. margin-top: 4px;
  67. }
  68. .prism-previewer-angle svg {
  69. width: 32px;
  70. height: 32px;
  71. -webkit-transform: rotate(-90deg);
  72. -moz-transform: rotate(-90deg);
  73. -ms-transform: rotate(-90deg);
  74. -o-transform: rotate(-90deg);
  75. transform: rotate(-90deg);
  76. }
  77. .prism-previewer-angle[data-negative] svg {
  78. -webkit-transform: scaleX(-1) rotate(-90deg);
  79. -moz-transform: scaleX(-1) rotate(-90deg);
  80. -ms-transform: scaleX(-1) rotate(-90deg);
  81. -o-transform: scaleX(-1) rotate(-90deg);
  82. transform: scaleX(-1) rotate(-90deg);
  83. }
  84. .prism-previewer-angle circle {
  85. fill: transparent;
  86. stroke: hsl(200, 10%, 20%);
  87. stroke-opacity: 0.9;
  88. stroke-width: 32;
  89. stroke-dasharray: 0, 500;
  90. }
  91. .prism-previewer-gradient {
  92. background-image: linear-gradient(45deg, #bbb 25%, transparent 25%, transparent 75%, #bbb 75%, #bbb), linear-gradient(45deg, #bbb 25%, #eee 25%, #eee 75%, #bbb 75%, #bbb);
  93. background-size: 10px 10px;
  94. background-position: 0 0, 5px 5px;
  95. width: 64px;
  96. margin-left: -32px;
  97. }
  98. .prism-previewer-gradient:before {
  99. content: none;
  100. }
  101. .prism-previewer-gradient div {
  102. position: absolute;
  103. top: -5px;
  104. left: -5px;
  105. right: -5px;
  106. bottom: -5px;
  107. border-radius: 10px;
  108. border: 5px solid #fff;
  109. box-shadow: 0 0 3px rgba(0, 0, 0, 0.5) inset, 0 0 10px rgba(0, 0, 0, 0.75);
  110. }
  111. .prism-previewer-color {
  112. background-image: linear-gradient(45deg, #bbb 25%, transparent 25%, transparent 75%, #bbb 75%, #bbb), linear-gradient(45deg, #bbb 25%, #eee 25%, #eee 75%, #bbb 75%, #bbb);
  113. background-size: 10px 10px;
  114. background-position: 0 0, 5px 5px;
  115. }
  116. .prism-previewer-color:before {
  117. background-color: inherit;
  118. background-clip: padding-box;
  119. }
  120. .prism-previewer-easing {
  121. margin-top: -76px;
  122. margin-left: -30px;
  123. width: 60px;
  124. height: 60px;
  125. background: #333;
  126. }
  127. .prism-previewer-easing.flipped {
  128. margin-bottom: -116px;
  129. }
  130. .prism-previewer-easing svg {
  131. width: 60px;
  132. height: 60px;
  133. }
  134. .prism-previewer-easing circle {
  135. fill: hsl(200, 10%, 20%);
  136. stroke: white;
  137. }
  138. .prism-previewer-easing path {
  139. fill: none;
  140. stroke: white;
  141. stroke-linecap: round;
  142. stroke-width: 4;
  143. }
  144. .prism-previewer-easing line {
  145. stroke: white;
  146. stroke-opacity: 0.5;
  147. stroke-width: 2;
  148. }
  149. @-webkit-keyframes prism-previewer-time {
  150. 0% {
  151. stroke-dasharray: 0, 500;
  152. stroke-dashoffset: 0;
  153. }
  154. 50% {
  155. stroke-dasharray: 100, 500;
  156. stroke-dashoffset: 0;
  157. }
  158. 100% {
  159. stroke-dasharray: 0, 500;
  160. stroke-dashoffset: -100;
  161. }
  162. }
  163. @-o-keyframes prism-previewer-time {
  164. 0% {
  165. stroke-dasharray: 0, 500;
  166. stroke-dashoffset: 0;
  167. }
  168. 50% {
  169. stroke-dasharray: 100, 500;
  170. stroke-dashoffset: 0;
  171. }
  172. 100% {
  173. stroke-dasharray: 0, 500;
  174. stroke-dashoffset: -100;
  175. }
  176. }
  177. @-moz-keyframes prism-previewer-time {
  178. 0% {
  179. stroke-dasharray: 0, 500;
  180. stroke-dashoffset: 0;
  181. }
  182. 50% {
  183. stroke-dasharray: 100, 500;
  184. stroke-dashoffset: 0;
  185. }
  186. 100% {
  187. stroke-dasharray: 0, 500;
  188. stroke-dashoffset: -100;
  189. }
  190. }
  191. @keyframes prism-previewer-time {
  192. 0% {
  193. stroke-dasharray: 0, 500;
  194. stroke-dashoffset: 0;
  195. }
  196. 50% {
  197. stroke-dasharray: 100, 500;
  198. stroke-dashoffset: 0;
  199. }
  200. 100% {
  201. stroke-dasharray: 0, 500;
  202. stroke-dashoffset: -100;
  203. }
  204. }
  205. .prism-previewer-time:before {
  206. border-radius: 50%;
  207. background: #fff;
  208. }
  209. .prism-previewer-time:after {
  210. margin-top: 4px;
  211. }
  212. .prism-previewer-time svg {
  213. width: 32px;
  214. height: 32px;
  215. -webkit-transform: rotate(-90deg);
  216. -moz-transform: rotate(-90deg);
  217. -ms-transform: rotate(-90deg);
  218. -o-transform: rotate(-90deg);
  219. transform: rotate(-90deg);
  220. }
  221. .prism-previewer-time circle {
  222. fill: transparent;
  223. stroke: hsl(200, 10%, 20%);
  224. stroke-opacity: 0.9;
  225. stroke-width: 32;
  226. stroke-dasharray: 0, 500;
  227. stroke-dashoffset: 0;
  228. -webkit-animation: prism-previewer-time linear infinite 3s;
  229. -moz-animation: prism-previewer-time linear infinite 3s;
  230. -o-animation: prism-previewer-time linear infinite 3s;
  231. animation: prism-previewer-time linear infinite 3s;
  232. }