65d3f7286f2419df3f3e0a1edb0c214d87c247c1.svn-base 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  1. @charset "utf-8";
  2. body {
  3. margin:0;
  4. }
  5. #mocha {
  6. font: 20px/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif;
  7. margin: 60px 50px;
  8. }
  9. #mocha ul,
  10. #mocha li {
  11. margin: 0;
  12. padding: 0;
  13. }
  14. #mocha ul {
  15. list-style: none;
  16. }
  17. #mocha h1,
  18. #mocha h2 {
  19. margin: 0;
  20. }
  21. #mocha h1 {
  22. margin-top: 15px;
  23. font-size: 1em;
  24. font-weight: 200;
  25. }
  26. #mocha h1 a {
  27. text-decoration: none;
  28. color: inherit;
  29. }
  30. #mocha h1 a:hover {
  31. text-decoration: underline;
  32. }
  33. #mocha .suite .suite h1 {
  34. margin-top: 0;
  35. font-size: .8em;
  36. }
  37. #mocha .hidden {
  38. display: none;
  39. }
  40. #mocha h2 {
  41. font-size: 12px;
  42. font-weight: normal;
  43. cursor: pointer;
  44. }
  45. #mocha .suite {
  46. margin-left: 15px;
  47. }
  48. #mocha .test {
  49. margin-left: 15px;
  50. overflow: hidden;
  51. }
  52. #mocha .test.pending:hover h2::after {
  53. content: '(pending)';
  54. font-family: arial, sans-serif;
  55. }
  56. #mocha .test.pass.medium .duration {
  57. background: #c09853;
  58. }
  59. #mocha .test.pass.slow .duration {
  60. background: #b94a48;
  61. }
  62. #mocha .test.pass::before {
  63. content: '✓';
  64. font-size: 12px;
  65. display: block;
  66. float: left;
  67. margin-right: 5px;
  68. color: #00d6b2;
  69. }
  70. #mocha .test.pass .duration {
  71. font-size: 9px;
  72. margin-left: 5px;
  73. padding: 2px 5px;
  74. color: #fff;
  75. -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.2);
  76. -moz-box-shadow: inset 0 1px 1px rgba(0,0,0,.2);
  77. box-shadow: inset 0 1px 1px rgba(0,0,0,.2);
  78. -webkit-border-radius: 5px;
  79. -moz-border-radius: 5px;
  80. -ms-border-radius: 5px;
  81. -o-border-radius: 5px;
  82. border-radius: 5px;
  83. }
  84. #mocha .test.pass.fast .duration {
  85. display: none;
  86. }
  87. #mocha .test.pending {
  88. color: #0b97c4;
  89. }
  90. #mocha .test.pending::before {
  91. content: '◦';
  92. color: #0b97c4;
  93. }
  94. #mocha .test.fail {
  95. color: #c00;
  96. }
  97. #mocha .test.fail pre {
  98. color: black;
  99. }
  100. #mocha .test.fail::before {
  101. content: '✖';
  102. font-size: 12px;
  103. display: block;
  104. float: left;
  105. margin-right: 5px;
  106. color: #c00;
  107. }
  108. #mocha .test pre.error {
  109. color: #c00;
  110. max-height: 300px;
  111. overflow: auto;
  112. }
  113. /**
  114. * (1): approximate for browsers not supporting calc
  115. * (2): 42 = 2*15 + 2*10 + 2*1 (padding + margin + border)
  116. * ^^ seriously
  117. */
  118. #mocha .test pre {
  119. display: block;
  120. float: left;
  121. clear: left;
  122. font: 12px/1.5 monaco, monospace;
  123. margin: 5px;
  124. padding: 15px;
  125. border: 1px solid #eee;
  126. max-width: 85%; /*(1)*/
  127. max-width: calc(100% - 42px); /*(2)*/
  128. word-wrap: break-word;
  129. border-bottom-color: #ddd;
  130. -webkit-border-radius: 3px;
  131. -webkit-box-shadow: 0 1px 3px #eee;
  132. -moz-border-radius: 3px;
  133. -moz-box-shadow: 0 1px 3px #eee;
  134. border-radius: 3px;
  135. }
  136. #mocha .test h2 {
  137. position: relative;
  138. }
  139. #mocha .test a.replay {
  140. position: absolute;
  141. top: 3px;
  142. right: 0;
  143. text-decoration: none;
  144. vertical-align: middle;
  145. display: block;
  146. width: 15px;
  147. height: 15px;
  148. line-height: 15px;
  149. text-align: center;
  150. background: #eee;
  151. font-size: 15px;
  152. -moz-border-radius: 15px;
  153. border-radius: 15px;
  154. -webkit-transition: opacity 200ms;
  155. -moz-transition: opacity 200ms;
  156. transition: opacity 200ms;
  157. opacity: 0.3;
  158. color: #888;
  159. }
  160. #mocha .test:hover a.replay {
  161. opacity: 1;
  162. }
  163. #mocha-report.pass .test.fail {
  164. display: none;
  165. }
  166. #mocha-report.fail .test.pass {
  167. display: none;
  168. }
  169. #mocha-report.pending .test.pass,
  170. #mocha-report.pending .test.fail {
  171. display: none;
  172. }
  173. #mocha-report.pending .test.pass.pending {
  174. display: block;
  175. }
  176. #mocha-error {
  177. color: #c00;
  178. font-size: 1.5em;
  179. font-weight: 100;
  180. letter-spacing: 1px;
  181. }
  182. #mocha-stats {
  183. position: fixed;
  184. top: 15px;
  185. right: 10px;
  186. font-size: 12px;
  187. margin: 0;
  188. color: #888;
  189. z-index: 1;
  190. }
  191. #mocha-stats .progress {
  192. float: right;
  193. padding-top: 0;
  194. }
  195. #mocha-stats em {
  196. color: black;
  197. }
  198. #mocha-stats a {
  199. text-decoration: none;
  200. color: inherit;
  201. }
  202. #mocha-stats a:hover {
  203. border-bottom: 1px solid #eee;
  204. }
  205. #mocha-stats li {
  206. display: inline-block;
  207. margin: 0 5px;
  208. list-style: none;
  209. padding-top: 11px;
  210. }
  211. #mocha-stats canvas {
  212. width: 40px;
  213. height: 40px;
  214. }
  215. #mocha code .comment { color: #ddd; }
  216. #mocha code .init { color: #2f6fad; }
  217. #mocha code .string { color: #5890ad; }
  218. #mocha code .keyword { color: #8a6343; }
  219. #mocha code .number { color: #2f6fad; }
  220. @media screen and (max-device-width: 480px) {
  221. #mocha {
  222. margin: 60px 0px;
  223. }
  224. #mocha #stats {
  225. position: absolute;
  226. }
  227. }