mocha-1.9.0.css 3.6 KB

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