qunit.css 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. /** Font Family and Sizes */
  2. #qunit-tests, #qunit-header, #qunit-banner, #qunit-testrunner-toolbar, #qunit-userAgent, #qunit-testresult {
  3. font-family: "Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial;
  4. }
  5. #qunit-testrunner-toolbar, #qunit-userAgent, #qunit-testresult, #qunit-tests li { font-size: small; }
  6. #qunit-tests { font-size: smaller; }
  7. /** Resets */
  8. #qunit-tests, #qunit-tests ol, #qunit-header, #qunit-banner, #qunit-userAgent, #qunit-testresult {
  9. margin: 0;
  10. padding: 0;
  11. }
  12. /** Header */
  13. #qunit-header {
  14. padding: 0.5em 0 0.5em 1em;
  15. color: #8699a4;
  16. background-color: #0d3349;
  17. font-size: 1.5em;
  18. line-height: 1em;
  19. font-weight: normal;
  20. border-radius: 15px 15px 0 0;
  21. -moz-border-radius: 15px 15px 0 0;
  22. -webkit-border-top-right-radius: 15px;
  23. -webkit-border-top-left-radius: 15px;
  24. }
  25. #qunit-header a {
  26. text-decoration: none;
  27. color: #c2ccd1;
  28. }
  29. #qunit-header a:hover,
  30. #qunit-header a:focus {
  31. color: #fff;
  32. }
  33. #qunit-banner {
  34. height: 5px;
  35. }
  36. #qunit-testrunner-toolbar {
  37. padding: 0.5em 0 0.5em 2em;
  38. color: #5E740B;
  39. background-color: #eee;
  40. }
  41. #qunit-userAgent {
  42. padding: 0.5em 0 0.5em 2.5em;
  43. background-color: #2b81af;
  44. color: #fff;
  45. text-shadow: rgba(0, 0, 0, 0.5) 2px 2px 1px;
  46. }
  47. /** Tests: Pass/Fail */
  48. #qunit-tests {
  49. list-style-position: inside;
  50. }
  51. #qunit-tests li {
  52. padding: 0.4em 0.5em 0.4em 2.5em;
  53. border-bottom: 1px solid #fff;
  54. list-style-position: inside;
  55. }
  56. #qunit-tests.hidepass li.pass, #qunit-tests.hidepass li.running {
  57. display: none;
  58. }
  59. #qunit-tests li strong {
  60. cursor: pointer;
  61. }
  62. #qunit-tests ol {
  63. margin-top: 0.5em;
  64. padding: 0.5em;
  65. background-color: #fff;
  66. border-radius: 15px;
  67. -moz-border-radius: 15px;
  68. -webkit-border-radius: 15px;
  69. box-shadow: inset 0px 2px 13px #999;
  70. -moz-box-shadow: inset 0px 2px 13px #999;
  71. -webkit-box-shadow: inset 0px 2px 13px #999;
  72. }
  73. #qunit-tests table {
  74. border-collapse: collapse;
  75. margin-top: .2em;
  76. }
  77. #qunit-tests th {
  78. text-align: right;
  79. vertical-align: top;
  80. padding: 0 .5em 0 0;
  81. }
  82. #qunit-tests td {
  83. vertical-align: top;
  84. }
  85. #qunit-tests pre {
  86. margin: 0;
  87. white-space: pre-wrap;
  88. word-wrap: break-word;
  89. }
  90. #qunit-tests del {
  91. background-color: #e0f2be;
  92. color: #374e0c;
  93. text-decoration: none;
  94. }
  95. #qunit-tests ins {
  96. background-color: #ffcaca;
  97. color: #500;
  98. text-decoration: none;
  99. }
  100. /*** Test Counts */
  101. #qunit-tests b.counts { color: black; }
  102. #qunit-tests b.passed { color: #5E740B; }
  103. #qunit-tests b.failed { color: #710909; }
  104. #qunit-tests li li {
  105. margin: 0.5em;
  106. padding: 0.4em 0.5em 0.4em 0.5em;
  107. background-color: #fff;
  108. border-bottom: none;
  109. list-style-position: inside;
  110. }
  111. /*** Passing Styles */
  112. #qunit-tests li li.pass {
  113. color: #5E740B;
  114. background-color: #fff;
  115. border-left: 26px solid #C6E746;
  116. }
  117. #qunit-tests .pass { color: #528CE0; background-color: #D2E0E6; }
  118. #qunit-tests .pass .test-name { color: #366097; }
  119. #qunit-tests .pass .test-actual,
  120. #qunit-tests .pass .test-expected { color: #999999; }
  121. #qunit-banner.qunit-pass { background-color: #C6E746; }
  122. /*** Failing Styles */
  123. #qunit-tests li li.fail {
  124. color: #710909;
  125. background-color: #fff;
  126. border-left: 26px solid #EE5757;
  127. }
  128. #qunit-tests > li:last-child {
  129. border-radius: 0 0 15px 15px;
  130. -moz-border-radius: 0 0 15px 15px;
  131. -webkit-border-bottom-right-radius: 15px;
  132. -webkit-border-bottom-left-radius: 15px;
  133. }
  134. #qunit-tests .fail { color: #000000; background-color: #EE5757; }
  135. #qunit-tests .fail .test-name,
  136. #qunit-tests .fail .module-name { color: #000000; }
  137. #qunit-tests .fail .test-actual { color: #EE5757; }
  138. #qunit-tests .fail .test-expected { color: green; }
  139. #qunit-banner.qunit-fail { background-color: #EE5757; }
  140. /** Result */
  141. #qunit-testresult {
  142. padding: 0.5em 0.5em 0.5em 2.5em;
  143. color: #2b81af;
  144. background-color: #D2E0E6;
  145. border-bottom: 1px solid white;
  146. }
  147. /** Fixture */
  148. #qunit-fixture {
  149. position: absolute;
  150. top: -10000px;
  151. left: -10000px;
  152. }