harness.css 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309
  1. /*
  2. * Copyright (C) 2010 Apple Inc. All rights reserved.
  3. *
  4. * Redistribution and use in source and binary forms, with or without
  5. * modification, are permitted provided that the following conditions
  6. * are met:
  7. * 1. Redistributions of source code must retain the above copyright
  8. * notice, this list of conditions and the following disclaimer.
  9. * 2. Redistributions in binary form must reproduce the above copyright
  10. * notice, this list of conditions and the following disclaimer in the
  11. * documentation and/or other materials provided with the distribution.
  12. *
  13. * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
  14. * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
  15. * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  16. * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
  17. * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  18. * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  19. * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  20. * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  21. * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  22. * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
  23. * THE POSSIBILITY OF SUCH DAMAGE.
  24. */
  25. body {
  26. font-family: Helvetica, sans-serif;
  27. background-color: #DDD;
  28. }
  29. .controls {
  30. border: 1px solid black;
  31. width: 300px;
  32. height: 660px;
  33. float: left;
  34. font-size: smaller;
  35. padding: 4px;
  36. }
  37. .controls div {
  38. margin: 4px;
  39. }
  40. .controls select {
  41. width: 100%;
  42. }
  43. .details > div {
  44. margin: 4px 0;
  45. }
  46. .test-type {
  47. float: left;
  48. }
  49. .name > button {
  50. margin-top: 20px;
  51. float: right;
  52. }
  53. .actions {
  54. margin-left: 320px;
  55. border: 1px solid black;
  56. font-size: smaller;
  57. height: 30px;
  58. padding: 4px;
  59. margin-bottom: 8px;
  60. }
  61. .actions button {
  62. font-size: 13px;
  63. width: 5em;
  64. }
  65. .note {
  66. display: inline-block;
  67. font-size: 10px;
  68. margin-left: 5px;
  69. color: gray;
  70. }
  71. .action-buttons {
  72. float: right;
  73. }
  74. #test-content {
  75. margin-left: 320px;
  76. height: 612px;
  77. border: 1px solid black;
  78. padding: 4px;
  79. background-color: white;
  80. }
  81. .info > div {
  82. margin: 6px 0;
  83. }
  84. .info .title {
  85. font-size: larger;
  86. font-weight: bold;
  87. }
  88. .info .url {
  89. font-family: monospace;
  90. }
  91. .info .assertion, .info .flags {
  92. font-size: smaller;
  93. }
  94. #warning {
  95. padding-left: 1em;
  96. color: red;
  97. display: none;
  98. }
  99. #print-button {
  100. float: right;
  101. display: none;
  102. }
  103. #test-content.print {
  104. }
  105. #test-content.print #print-button {
  106. display: inline;
  107. }
  108. #test-content.warn #warning {
  109. display: inline;
  110. }
  111. #test-content iframe {
  112. border: 1px solid gray;
  113. margin: 2px;
  114. }
  115. #test-content h2 {
  116. font-size: 11pt;
  117. margin: 2px 0 2px 0;
  118. color: darkgray;
  119. }
  120. #test-list > option.untested {
  121. }
  122. #test-list > option.pass {
  123. color: rgba(0, 128, 0, 0.6);
  124. }
  125. #test-list > option.fail {
  126. color: rgba(255, 0, 0, 0.6);
  127. }
  128. #test-list > option.skipped {
  129. color: rgba(255, 128, 0, 0.6);
  130. }
  131. #test-content.with-ref {
  132. }
  133. .frame-wrapper {
  134. }
  135. .frame-wrapper iframe {
  136. width: 98%;
  137. height: 460px;
  138. }
  139. .frame-wrapper {
  140. height: 500px;
  141. width: 99%;
  142. display: inline-block;
  143. }
  144. .with-ref > .frame-wrapper {
  145. width: 49%;
  146. }
  147. #ref-wrapper {
  148. height: 500px;
  149. width: 49%;
  150. display: none;
  151. }
  152. .with-ref > #ref-wrapper {
  153. display: inline-block;
  154. }
  155. .results {
  156. border: 1px solid black;
  157. padding: 4px;
  158. margin-top: 6px;
  159. }
  160. #output {
  161. border: 1px solid black;
  162. font-size: smaller;
  163. height: 220px;
  164. margin: 4px;
  165. padding: 4px;
  166. overflow-y: auto;
  167. background-color: white;
  168. }
  169. #output > p {
  170. margin: 0;
  171. }
  172. #output .pass {
  173. color: green;
  174. }
  175. #output .fail {
  176. color: red;
  177. }
  178. #output .skipped {
  179. color: orange;
  180. }
  181. #output .invalid {
  182. background: red;
  183. }
  184. .output-options {
  185. float: right;
  186. border: 1px solid black;
  187. width: 200px;
  188. height: 220px;
  189. margin: 4px;
  190. padding: 4px;
  191. font-size: smaller;
  192. }
  193. .output-options select {
  194. width: 90%;
  195. }
  196. .summary {
  197. font-size: smaller;
  198. margin: 4px;
  199. }
  200. .summary .label {
  201. display: inline-block;
  202. min-width: 5em;
  203. margin: 0;
  204. }
  205. .summary span {
  206. display: inline-block;
  207. min-width: 3em;
  208. text-align: right;
  209. margin: 0;
  210. }
  211. .summary td {
  212. text-align: right;
  213. padding: 4px;
  214. }
  215. .custom button {
  216. display: block;
  217. margin: 12px 0;
  218. }
  219. /* Overlay */
  220. #overlay {
  221. position: fixed;
  222. top: 0;
  223. left: 0;
  224. bottom: 0;
  225. right: 0;
  226. background-color: rgba(0, 0, 0, 0.6);
  227. display: none;
  228. }
  229. #overlay.visible {
  230. display: block;
  231. }
  232. .overlay-contents {
  233. position: relative;
  234. background-color: white;
  235. margin: 50px auto;
  236. width: 1000px;
  237. padding: 20px;
  238. }
  239. .overlay-contents textarea {
  240. width: 90em;
  241. height: 50em;
  242. }
  243. .overlay-contents .buttons {
  244. text-align: right;
  245. }
  246. .overlay-contents .note {
  247. float: left;
  248. }
  249. .overlay-contents .buttons button {
  250. font-size: 13px;
  251. width: 6em;
  252. margin: 12px 8px;
  253. }