mocha.css 3.9 KB

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