mocha.css 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. body {
  2. font: 20px/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif;
  3. padding: 60px 50px;
  4. }
  5. #mocha ul, #mocha li {
  6. margin: 0;
  7. padding: 0;
  8. }
  9. #mocha ul {
  10. list-style: none;
  11. }
  12. #mocha h1, #mocha h2 {
  13. margin: 0;
  14. }
  15. #mocha h1 {
  16. margin-top: 15px;
  17. font-size: 1em;
  18. font-weight: 200;
  19. }
  20. #mocha h1 a {
  21. text-decoration: none;
  22. color: inherit;
  23. }
  24. #mocha h1 a:hover {
  25. text-decoration: underline;
  26. }
  27. #mocha .suite .suite h1 {
  28. margin-top: 0;
  29. font-size: .8em;
  30. }
  31. #mocha h2 {
  32. font-size: 12px;
  33. font-weight: normal;
  34. cursor: pointer;
  35. }
  36. #mocha .suite {
  37. margin-left: 15px;
  38. }
  39. #mocha .test {
  40. margin-left: 15px;
  41. }
  42. #mocha .test:hover h2::after {
  43. position: relative;
  44. top: 0;
  45. right: -10px;
  46. content: '(view source)';
  47. font-size: 12px;
  48. font-family: arial;
  49. color: #888;
  50. }
  51. #mocha .test.pending:hover h2::after {
  52. content: '(pending)';
  53. font-family: arial;
  54. }
  55. #mocha .test.pass.medium .duration {
  56. background: #C09853;
  57. }
  58. #mocha .test.pass.slow .duration {
  59. background: #B94A48;
  60. }
  61. #mocha .test.pass::before {
  62. content: '✓';
  63. font-size: 12px;
  64. display: block;
  65. float: left;
  66. margin-right: 5px;
  67. color: #00d6b2;
  68. }
  69. #mocha .test.pass .duration {
  70. font-size: 9px;
  71. margin-left: 5px;
  72. padding: 2px 5px;
  73. color: white;
  74. -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.2);
  75. -moz-box-shadow: inset 0 1px 1px rgba(0,0,0,.2);
  76. box-shadow: inset 0 1px 1px rgba(0,0,0,.2);
  77. -webkit-border-radius: 5px;
  78. -moz-border-radius: 5px;
  79. -ms-border-radius: 5px;
  80. -o-border-radius: 5px;
  81. border-radius: 5px;
  82. }
  83. #mocha .test.pass.fast .duration {
  84. display: none;
  85. }
  86. #mocha .test.pending {
  87. color: #0b97c4;
  88. }
  89. #mocha .test.pending::before {
  90. content: '◦';
  91. color: #0b97c4;
  92. }
  93. #mocha .test.fail {
  94. color: #c00;
  95. }
  96. #mocha .test.fail pre {
  97. color: black;
  98. }
  99. #mocha .test.fail::before {
  100. content: '✖';
  101. font-size: 12px;
  102. display: block;
  103. float: left;
  104. margin-right: 5px;
  105. color: #c00;
  106. }
  107. #mocha .test pre.error {
  108. color: #c00;
  109. }
  110. #mocha .test pre {
  111. display: inline-block;
  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. }
  120. #error {
  121. color: #c00;
  122. font-size: 1.5 em;
  123. font-weight: 100;
  124. letter-spacing: 1px;
  125. }
  126. #stats {
  127. position: fixed;
  128. top: 15px;
  129. right: 10px;
  130. font-size: 12px;
  131. margin: 0;
  132. color: #888;
  133. }
  134. #stats .progress {
  135. float: right;
  136. padding-top: 0;
  137. }
  138. #stats em {
  139. color: black;
  140. }
  141. #stats li {
  142. display: inline-block;
  143. margin: 0 5px;
  144. list-style: none;
  145. padding-top: 11px;
  146. }
  147. code .comment { color: #ddd }
  148. code .init { color: #2F6FAD }
  149. code .string { color: #5890AD }
  150. code .keyword { color: #8A6343 }
  151. code .number { color: #2F6FAD }