fpcunit.css 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370
  1. @charset "utf-8";
  2. body {
  3. margin:0;
  4. }
  5. #fpcunit {
  6. font: 20px/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif;
  7. margin: 60px 50px;
  8. }
  9. #fpcunit ul,
  10. #fpcunit li {
  11. margin: 0;
  12. padding: 0;
  13. }
  14. #fpcunit ul {
  15. list-style: none;
  16. }
  17. #fpcunit h1,
  18. #fpcunit h2 {
  19. margin: 0;
  20. }
  21. #fpcunit h1 {
  22. margin-top: 15px;
  23. font-size: 1em;
  24. font-weight: 200;
  25. }
  26. #fpcunit h1 a {
  27. text-decoration: none;
  28. color: inherit;
  29. }
  30. #fpcunit h1 a:hover {
  31. text-decoration: underline;
  32. }
  33. #fpcunit .suite .suite h1 {
  34. margin-top: 0;
  35. font-size: .8em;
  36. }
  37. #fpcunit .suite .suite .suite h1 {
  38. margin-top: 0;
  39. font-size: .8em;
  40. }
  41. #fpcunit .suite h1 {
  42. margin-top: 0;
  43. font-size: .8em;
  44. }
  45. #fpcunit .hidden {
  46. display: none;
  47. }
  48. #fpcunit h2 {
  49. font-size: 12px;
  50. font-weight: normal;
  51. cursor: pointer;
  52. }
  53. #fpcunit .suite {
  54. margin-left: 15px;
  55. }
  56. #fpcunit .test {
  57. margin-left: 15px;
  58. overflow: hidden;
  59. }
  60. #fpcunit .test.pending:hover h2::after {
  61. content: '(pending)';
  62. font-family: arial, sans-serif;
  63. }
  64. #fpcunit .test.pass.medium .duration {
  65. background: #c09853;
  66. }
  67. #fpcunit .test.pass.slow .duration {
  68. background: #b94a48;
  69. }
  70. #fpcunit .test.pass::before {
  71. content: '✓';
  72. font-size: 12px;
  73. display: block;
  74. float: left;
  75. margin-right: 5px;
  76. color: #00d6b2;
  77. }
  78. #fpcunit .test.pass .duration {
  79. font-size: 9px;
  80. margin-left: 5px;
  81. padding: 2px 5px;
  82. color: #fff;
  83. -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.2);
  84. -moz-box-shadow: inset 0 1px 1px rgba(0,0,0,.2);
  85. box-shadow: inset 0 1px 1px rgba(0,0,0,.2);
  86. -webkit-border-radius: 5px;
  87. -moz-border-radius: 5px;
  88. -ms-border-radius: 5px;
  89. -o-border-radius: 5px;
  90. border-radius: 5px;
  91. }
  92. #fpcunit .test.pass.fast .duration {
  93. display: none;
  94. }
  95. #fpcunit .test.pending {
  96. color: #0b97c4;
  97. }
  98. #fpcunit .test.pending::before {
  99. content: '◦';
  100. color: #0b97c4;
  101. }
  102. #fpcunit .test.fail {
  103. color: #B00;
  104. }
  105. #fpcunit .test.fail pre {
  106. color: black;
  107. }
  108. #fpcunit .test.fail::before {
  109. content: '✖';
  110. font-size: 12px;
  111. display: block;
  112. float: left;
  113. margin-right: 5px;
  114. color: #B00;
  115. }
  116. #fpcunit .test.ignore {
  117. color: #FF7F50;
  118. }
  119. #fpcunit .test.ignore pre {
  120. color: #FF7F50;
  121. }
  122. #fpcunit .test.ignore::before {
  123. content: '✖';
  124. font-size: 12px;
  125. display: block;
  126. float: left;
  127. margin-right: 5px;
  128. color: #FF7F50;
  129. }
  130. #fpcunit .test.error {
  131. color: #F00;
  132. }
  133. #fpcunit .test.error pre {
  134. color: #F00;
  135. }
  136. #fpcunit .test.error::before {
  137. content: '✖';
  138. font-size: 12px;
  139. display: block;
  140. float: left;
  141. margin-right: 5px;
  142. color: #F00;
  143. }
  144. #fpcunit .test pre.error {
  145. color: #c00;
  146. max-height: 300px;
  147. overflow: auto;
  148. }
  149. #fpcunit .test .html-error {
  150. overflow: auto;
  151. color: black;
  152. line-height: 1.5;
  153. display: block;
  154. float: left;
  155. clear: left;
  156. font: 12px/1.5 monaco, monospace;
  157. margin: 5px;
  158. padding: 15px;
  159. border: 1px solid #eee;
  160. max-width: 85%; /*(1)*/
  161. max-width: -webkit-calc(100% - 42px);
  162. max-width: -moz-calc(100% - 42px);
  163. max-width: calc(100% - 42px); /*(2)*/
  164. max-height: 300px;
  165. word-wrap: break-word;
  166. border-bottom-color: #ddd;
  167. -webkit-box-shadow: 0 1px 3px #eee;
  168. -moz-box-shadow: 0 1px 3px #eee;
  169. box-shadow: 0 1px 3px #eee;
  170. -webkit-border-radius: 3px;
  171. -moz-border-radius: 3px;
  172. border-radius: 3px;
  173. }
  174. #fpcunit .test .html-error pre.error {
  175. border: none;
  176. -webkit-border-radius: 0;
  177. -moz-border-radius: 0;
  178. border-radius: 0;
  179. -webkit-box-shadow: 0;
  180. -moz-box-shadow: 0;
  181. box-shadow: 0;
  182. padding: 0;
  183. margin: 0;
  184. margin-top: 18px;
  185. max-height: none;
  186. }
  187. /**
  188. * (1): approximate for browsers not supporting calc
  189. * (2): 42 = 2*15 + 2*10 + 2*1 (padding + margin + border)
  190. * ^^ seriously
  191. */
  192. #fpcunit .test pre {
  193. display: block;
  194. float: left;
  195. clear: left;
  196. font: 12px/1.5 monaco, monospace;
  197. margin: 5px;
  198. padding: 15px;
  199. border: 1px solid #eee;
  200. max-width: 85%; /*(1)*/
  201. max-width: -webkit-calc(100% - 42px);
  202. max-width: -moz-calc(100% - 42px);
  203. max-width: calc(100% - 42px); /*(2)*/
  204. word-wrap: break-word;
  205. border-bottom-color: #ddd;
  206. -webkit-box-shadow: 0 1px 3px #eee;
  207. -moz-box-shadow: 0 1px 3px #eee;
  208. box-shadow: 0 1px 3px #eee;
  209. -webkit-border-radius: 3px;
  210. -moz-border-radius: 3px;
  211. border-radius: 3px;
  212. }
  213. #fpcunit .test h2 {
  214. position: relative;
  215. }
  216. #fpcunit .test a.replay {
  217. position: absolute;
  218. top: 3px;
  219. right: 0;
  220. text-decoration: none;
  221. vertical-align: middle;
  222. display: block;
  223. width: 15px;
  224. height: 15px;
  225. line-height: 15px;
  226. text-align: center;
  227. background: #eee;
  228. font-size: 15px;
  229. -webkit-border-radius: 15px;
  230. -moz-border-radius: 15px;
  231. border-radius: 15px;
  232. -webkit-transition:opacity 200ms;
  233. -moz-transition:opacity 200ms;
  234. -o-transition:opacity 200ms;
  235. transition: opacity 200ms;
  236. opacity: 0.3;
  237. color: #888;
  238. }
  239. #fpcunit .test:hover a.replay {
  240. opacity: 1;
  241. }
  242. #fpcunit-report.pass .test.fail {
  243. display: none;
  244. }
  245. #fpcunit-report.fail .test.pass {
  246. display: none;
  247. }
  248. #fpcunit-report.pending .test.pass,
  249. #fpcunit-report.pending .test.fail {
  250. display: none;
  251. }
  252. #fpcunit-report.pending .test.pass.pending {
  253. display: block;
  254. }
  255. #fpcunit-error {
  256. color: #c00;
  257. font-size: 1.5em;
  258. font-weight: 100;
  259. letter-spacing: 1px;
  260. }
  261. #fpcunit-stats {
  262. position: fixed;
  263. top: 15px;
  264. right: 10px;
  265. font-size: 12px;
  266. margin: 0;
  267. color: #888;
  268. z-index: 1;
  269. }
  270. #fpcunit-stats .progress {
  271. float: right;
  272. padding-top: 0;
  273. /**
  274. * Set safe initial values, so mochas .progress does not inherit these
  275. * properties from Bootstrap .progress (which causes .progress height to
  276. * equal line height set in Bootstrap).
  277. */
  278. height: auto;
  279. -webkit-box-shadow: none;
  280. -moz-box-shadow: none;
  281. box-shadow: none;
  282. background-color: initial;
  283. }
  284. #fpcunit-stats em {
  285. color: black;
  286. }
  287. #fpcunit-stats a {
  288. text-decoration: none;
  289. color: inherit;
  290. }
  291. #fpcunit-stats a:hover {
  292. border-bottom: 1px solid #eee;
  293. }
  294. #fpcunit-stats li {
  295. display: inline-block;
  296. margin: 0 5px;
  297. list-style: none;
  298. padding-top: 11px;
  299. }
  300. #fpcunit-stats canvas {
  301. width: 40px;
  302. height: 40px;
  303. }
  304. #fpcunit code .comment { color: #ddd; }
  305. #fpcunit code .init { color: #2f6fad; }
  306. #fpcunit code .string { color: #5890ad; }
  307. #fpcunit code .keyword { color: #8a6343; }
  308. #fpcunit code .number { color: #2f6fad; }
  309. @media screen and (max-device-width: 480px) {
  310. #fpcunit {
  311. margin: 60px 0px;
  312. }
  313. #fpcunit #stats {
  314. position: absolute;
  315. }
  316. }