mocha.css 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  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. }
  46. #mocha .test:hover h2::after {
  47. position: relative;
  48. top: 0;
  49. right: -10px;
  50. content: '(view source)';
  51. font-size: 12px;
  52. font-family: arial;
  53. color: #888;
  54. }
  55. #mocha .test.pending:hover h2::after {
  56. content: '(pending)';
  57. font-family: arial;
  58. }
  59. #mocha .test.pass.medium .duration {
  60. background: #C09853;
  61. }
  62. #mocha .test.pass.slow .duration {
  63. background: #B94A48;
  64. }
  65. #mocha .test.pass::before {
  66. content: '✓';
  67. font-size: 12px;
  68. display: block;
  69. float: left;
  70. margin-right: 5px;
  71. color: #00d6b2;
  72. }
  73. #mocha .test.pass .duration {
  74. font-size: 9px;
  75. margin-left: 5px;
  76. padding: 2px 5px;
  77. color: white;
  78. -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.2);
  79. -moz-box-shadow: inset 0 1px 1px rgba(0,0,0,.2);
  80. box-shadow: inset 0 1px 1px rgba(0,0,0,.2);
  81. -webkit-border-radius: 5px;
  82. -moz-border-radius: 5px;
  83. -ms-border-radius: 5px;
  84. -o-border-radius: 5px;
  85. border-radius: 5px;
  86. }
  87. #mocha .test.pass.fast .duration {
  88. display: none;
  89. }
  90. #mocha .test.pending {
  91. color: #0b97c4;
  92. }
  93. #mocha .test.pending::before {
  94. content: '◦';
  95. color: #0b97c4;
  96. }
  97. #mocha .test.fail {
  98. color: #c00;
  99. }
  100. #mocha .test.fail pre {
  101. color: black;
  102. }
  103. #mocha .test.fail::before {
  104. content: '✖';
  105. font-size: 12px;
  106. display: block;
  107. float: left;
  108. margin-right: 5px;
  109. color: #c00;
  110. }
  111. #mocha .test pre.error {
  112. color: #c00;
  113. }
  114. #mocha .test pre {
  115. display: inline-block;
  116. font: 12px/1.5 monaco, monospace;
  117. margin: 5px;
  118. padding: 15px;
  119. border: 1px solid #eee;
  120. border-bottom-color: #ddd;
  121. -webkit-border-radius: 3px;
  122. -webkit-box-shadow: 0 1px 3px #eee;
  123. }
  124. #report.pass .test.fail {
  125. display: none;
  126. }
  127. #report.fail .test.pass {
  128. display: none;
  129. }
  130. #error {
  131. color: #c00;
  132. font-size: 1.5 em;
  133. font-weight: 100;
  134. letter-spacing: 1px;
  135. }
  136. #stats {
  137. position: fixed;
  138. top: 15px;
  139. right: 10px;
  140. font-size: 12px;
  141. margin: 0;
  142. color: #888;
  143. }
  144. #stats .progress {
  145. float: right;
  146. padding-top: 0;
  147. }
  148. #stats em {
  149. color: black;
  150. }
  151. #stats a {
  152. text-decoration: none;
  153. color: inherit;
  154. }
  155. #stats a:hover {
  156. border-bottom: 1px solid #eee;
  157. }
  158. #stats li {
  159. display: inline-block;
  160. margin: 0 5px;
  161. list-style: none;
  162. padding-top: 11px;
  163. }
  164. code .comment { color: #ddd }
  165. code .init { color: #2F6FAD }
  166. code .string { color: #5890AD }
  167. code .keyword { color: #8A6343 }
  168. code .number { color: #2F6FAD }