Repositorio del curso CCOM4030 el semestre B91 del proyecto Artesanías con el Instituto de Cultura

mocha.css 5.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326
  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. #mocha .test .html-error {
  114. overflow: auto;
  115. color: black;
  116. line-height: 1.5;
  117. display: block;
  118. float: left;
  119. clear: left;
  120. font: 12px/1.5 monaco, monospace;
  121. margin: 5px;
  122. padding: 15px;
  123. border: 1px solid #eee;
  124. max-width: 85%; /*(1)*/
  125. max-width: -webkit-calc(100% - 42px);
  126. max-width: -moz-calc(100% - 42px);
  127. max-width: calc(100% - 42px); /*(2)*/
  128. max-height: 300px;
  129. word-wrap: break-word;
  130. border-bottom-color: #ddd;
  131. -webkit-box-shadow: 0 1px 3px #eee;
  132. -moz-box-shadow: 0 1px 3px #eee;
  133. box-shadow: 0 1px 3px #eee;
  134. -webkit-border-radius: 3px;
  135. -moz-border-radius: 3px;
  136. border-radius: 3px;
  137. }
  138. #mocha .test .html-error pre.error {
  139. border: none;
  140. -webkit-border-radius: 0;
  141. -moz-border-radius: 0;
  142. border-radius: 0;
  143. -webkit-box-shadow: 0;
  144. -moz-box-shadow: 0;
  145. box-shadow: 0;
  146. padding: 0;
  147. margin: 0;
  148. margin-top: 18px;
  149. max-height: none;
  150. }
  151. /**
  152. * (1): approximate for browsers not supporting calc
  153. * (2): 42 = 2*15 + 2*10 + 2*1 (padding + margin + border)
  154. * ^^ seriously
  155. */
  156. #mocha .test pre {
  157. display: block;
  158. float: left;
  159. clear: left;
  160. font: 12px/1.5 monaco, monospace;
  161. margin: 5px;
  162. padding: 15px;
  163. border: 1px solid #eee;
  164. max-width: 85%; /*(1)*/
  165. max-width: -webkit-calc(100% - 42px);
  166. max-width: -moz-calc(100% - 42px);
  167. max-width: calc(100% - 42px); /*(2)*/
  168. word-wrap: break-word;
  169. border-bottom-color: #ddd;
  170. -webkit-box-shadow: 0 1px 3px #eee;
  171. -moz-box-shadow: 0 1px 3px #eee;
  172. box-shadow: 0 1px 3px #eee;
  173. -webkit-border-radius: 3px;
  174. -moz-border-radius: 3px;
  175. border-radius: 3px;
  176. }
  177. #mocha .test h2 {
  178. position: relative;
  179. }
  180. #mocha .test a.replay {
  181. position: absolute;
  182. top: 3px;
  183. right: 0;
  184. text-decoration: none;
  185. vertical-align: middle;
  186. display: block;
  187. width: 15px;
  188. height: 15px;
  189. line-height: 15px;
  190. text-align: center;
  191. background: #eee;
  192. font-size: 15px;
  193. -webkit-border-radius: 15px;
  194. -moz-border-radius: 15px;
  195. border-radius: 15px;
  196. -webkit-transition:opacity 200ms;
  197. -moz-transition:opacity 200ms;
  198. -o-transition:opacity 200ms;
  199. transition: opacity 200ms;
  200. opacity: 0.3;
  201. color: #888;
  202. }
  203. #mocha .test:hover a.replay {
  204. opacity: 1;
  205. }
  206. #mocha-report.pass .test.fail {
  207. display: none;
  208. }
  209. #mocha-report.fail .test.pass {
  210. display: none;
  211. }
  212. #mocha-report.pending .test.pass,
  213. #mocha-report.pending .test.fail {
  214. display: none;
  215. }
  216. #mocha-report.pending .test.pass.pending {
  217. display: block;
  218. }
  219. #mocha-error {
  220. color: #c00;
  221. font-size: 1.5em;
  222. font-weight: 100;
  223. letter-spacing: 1px;
  224. }
  225. #mocha-stats {
  226. position: fixed;
  227. top: 15px;
  228. right: 10px;
  229. font-size: 12px;
  230. margin: 0;
  231. color: #888;
  232. z-index: 1;
  233. }
  234. #mocha-stats .progress {
  235. float: right;
  236. padding-top: 0;
  237. /**
  238. * Set safe initial values, so mochas .progress does not inherit these
  239. * properties from Bootstrap .progress (which causes .progress height to
  240. * equal line height set in Bootstrap).
  241. */
  242. height: auto;
  243. -webkit-box-shadow: none;
  244. -moz-box-shadow: none;
  245. box-shadow: none;
  246. background-color: initial;
  247. }
  248. #mocha-stats em {
  249. color: black;
  250. }
  251. #mocha-stats a {
  252. text-decoration: none;
  253. color: inherit;
  254. }
  255. #mocha-stats a:hover {
  256. border-bottom: 1px solid #eee;
  257. }
  258. #mocha-stats li {
  259. display: inline-block;
  260. margin: 0 5px;
  261. list-style: none;
  262. padding-top: 11px;
  263. }
  264. #mocha-stats canvas {
  265. width: 40px;
  266. height: 40px;
  267. }
  268. #mocha code .comment { color: #ddd; }
  269. #mocha code .init { color: #2f6fad; }
  270. #mocha code .string { color: #5890ad; }
  271. #mocha code .keyword { color: #8a6343; }
  272. #mocha code .number { color: #2f6fad; }
  273. @media screen and (max-device-width: 480px) {
  274. #mocha {
  275. margin: 60px 0px;
  276. }
  277. #mocha #stats {
  278. position: absolute;
  279. }
  280. }