qunit.css 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. /** Font Family and Sizes */
  2. #qunit-tests, #qunit-header, .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, .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: 0em 0 0.5em 2em;
  38. }
  39. #qunit-userAgent {
  40. padding: 0.5em 0 0.5em 2.5em;
  41. background-color: #2b81af;
  42. color: #fff;
  43. text-shadow: rgba(0, 0, 0, 0.5) 2px 2px 1px;
  44. }
  45. /** Tests: Pass/Fail */
  46. #qunit-tests {
  47. list-style-position: inside;
  48. }
  49. #qunit-tests li {
  50. padding: 0.4em 0.5em 0.4em 2.5em;
  51. border-bottom: 1px solid #fff;
  52. list-style-position: inside;
  53. }
  54. #qunit-tests li strong {
  55. cursor: pointer;
  56. }
  57. #qunit-tests ol {
  58. margin-top: 0.5em;
  59. padding: 0.5em;
  60. background-color: #fff;
  61. border-radius: 15px;
  62. -moz-border-radius: 15px;
  63. -webkit-border-radius: 15px;
  64. box-shadow: inset 0px 2px 13px #999;
  65. -moz-box-shadow: inset 0px 2px 13px #999;
  66. -webkit-box-shadow: inset 0px 2px 13px #999;
  67. }
  68. #qunit-tests table {
  69. border-collapse: collapse;
  70. margin-top: .2em;
  71. }
  72. #qunit-tests th {
  73. text-align: right;
  74. vertical-align: top;
  75. padding: 0 .5em 0 0;
  76. }
  77. #qunit-tests td {
  78. vertical-align: top;
  79. }
  80. #qunit-tests pre {
  81. margin: 0;
  82. white-space: pre-wrap;
  83. word-wrap: break-word;
  84. }
  85. #qunit-tests del {
  86. background-color: #e0f2be;
  87. color: #374e0c;
  88. text-decoration: none;
  89. }
  90. #qunit-tests ins {
  91. background-color: #ffcaca;
  92. color: #500;
  93. text-decoration: none;
  94. }
  95. /*** Test Counts */
  96. #qunit-tests b.counts { color: black; }
  97. #qunit-tests b.passed { color: #5E740B; }
  98. #qunit-tests b.failed { color: #710909; }
  99. #qunit-tests li li {
  100. margin: 0.5em;
  101. padding: 0.4em 0.5em 0.4em 0.5em;
  102. background-color: #fff;
  103. border-bottom: none;
  104. list-style-position: inside;
  105. }
  106. /*** Passing Styles */
  107. #qunit-tests li li.pass {
  108. color: #5E740B;
  109. background-color: #fff;
  110. border-left: 26px solid #C6E746;
  111. }
  112. #qunit-tests .pass { color: #528CE0; background-color: #D2E0E6; }
  113. #qunit-tests .pass .test-name { color: #366097; }
  114. #qunit-tests .pass .test-actual,
  115. #qunit-tests .pass .test-expected { color: #999999; }
  116. #qunit-banner.qunit-pass { background-color: #C6E746; }
  117. /*** Failing Styles */
  118. #qunit-tests li li.fail {
  119. color: #710909;
  120. background-color: #fff;
  121. border-left: 26px solid #EE5757;
  122. }
  123. #qunit-tests .fail { color: #000000; background-color: #EE5757; }
  124. #qunit-tests .fail .test-name,
  125. #qunit-tests .fail .module-name { color: #000000; }
  126. #qunit-tests .fail .test-actual { color: #EE5757; }
  127. #qunit-tests .fail .test-expected { color: green; }
  128. #qunit-banner.qunit-fail,
  129. #qunit-testrunner-toolbar { background-color: #EE5757; }
  130. /** Footer */
  131. #qunit-testresult {
  132. padding: 0.5em 0.5em 0.5em 2.5em;
  133. color: #2b81af;
  134. background-color: #D2E0E6;
  135. border-radius: 0 0 15px 15px;
  136. -moz-border-radius: 0 0 15px 15px;
  137. -webkit-border-bottom-right-radius: 15px;
  138. -webkit-border-bottom-left-radius: 15px;
  139. }
  140. /** Fixture */
  141. #qunit-fixture {
  142. position: absolute;
  143. top: -10000px;
  144. left: -10000px;
  145. }