No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

prism-previewers.css 4.9KB

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