jasmine.less 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245
  1. @import "ui-variables";
  2. @import "octicon-mixins";
  3. html {
  4. background-color: @base-background-color;
  5. }
  6. body {
  7. padding: 0;
  8. background-color: transparent;
  9. }
  10. .spec-reporter-container {
  11. position: fixed;
  12. display: flex;
  13. flex-direction: column;
  14. justify-content: flex-end;
  15. z-index: 99999;
  16. top: 0;
  17. left: 0;
  18. right: 0;
  19. bottom: 0;
  20. }
  21. .spec-reporter {
  22. flex: 1 1 0;
  23. overflow-y: auto;
  24. font-size: 11px;
  25. line-height: 1.6em;
  26. color: #333;
  27. background-color: hsl(0, 0%, 98%);
  28. // 578px initial window height, resize to see underlying editor
  29. @media (min-height: 578px) {
  30. flex: 0 1 75%;
  31. min-height: 578px;
  32. }
  33. .list-unstyled {
  34. list-style: none;
  35. }
  36. .reload-button {
  37. color: #333;
  38. background-color: #fff;
  39. border: 1px solid #ccc;
  40. &:hover {
  41. background-color: #ddd;
  42. color: #222;
  43. }
  44. }
  45. .symbol-header {
  46. font-size: 18px;
  47. font-weight: bold;
  48. padding-bottom: 10px;
  49. }
  50. .symbol-area {
  51. padding: 10px;
  52. }
  53. .symbol-summary {
  54. overflow: hidden;
  55. margin: 0;
  56. li {
  57. font-family: Monaco, Consolas, monospace;
  58. float: left;
  59. line-height: 10px;
  60. height: 10px;
  61. width: 10px;
  62. font-size: 10px;
  63. &.passed {
  64. color: #5cb85c;
  65. }
  66. &.failed {
  67. color: #d9534f;
  68. }
  69. &.skipped {
  70. color: #f0ad4e;
  71. }
  72. &.pending {
  73. color: #eee;
  74. }
  75. &::before {
  76. content: "\02022";
  77. }
  78. }
  79. }
  80. .status {
  81. font-size: 20px;
  82. line-height: 2em;
  83. padding: 5px;
  84. border-radius: 0;
  85. text-align: center;
  86. .spec-count {
  87. float: left;
  88. }
  89. .time {
  90. float: right;
  91. }
  92. }
  93. .results {
  94. padding: 10px;
  95. .description {
  96. font-size: 16px;
  97. padding: 5px 0 5px 0;
  98. }
  99. > .suite {
  100. > .description {
  101. font-size: 18px;
  102. font-weight: bold;
  103. }
  104. margin-bottom: 20px;
  105. }
  106. .spec {
  107. margin-top: 5px;
  108. padding: 0 10px 10px 10px;
  109. border-left: 3px solid #d9534f;
  110. .spec-toggle {
  111. .octicon(fold);
  112. float: right;
  113. cursor: pointer;
  114. opacity: 0;
  115. color: #999;
  116. &.folded {
  117. .octicon(unfold);
  118. }
  119. }
  120. .spec-toggle:hover {
  121. color: #333;
  122. }
  123. &:hover .spec-toggle {
  124. opacity: 1;
  125. }
  126. }
  127. .suite > .suite,
  128. .suite > .spec {
  129. margin-left: 10px;
  130. }
  131. }
  132. .result-message {
  133. font-size: 16px;
  134. font-weight: bold;
  135. color: #d9534f;
  136. padding: 5px 0 5px 0;
  137. white-space: pre-wrap;
  138. }
  139. .result-message.deprecation-message {
  140. font-weight: normal;
  141. color: darken(#f0ad4e, 20%);
  142. line-height: 1.4;
  143. a {
  144. color: darken(#f0ad4e, 15%);
  145. }
  146. code {
  147. color: darken(#f0ad4e, 20%);
  148. background: lighten(#f0ad4e, 35%);
  149. }
  150. }
  151. .stack-trace {
  152. font-size: 12px;
  153. margin: 5px 0 0 0;
  154. border-radius: 2px;
  155. line-height: 18px;
  156. color: #ccc;
  157. border: 1px solid #ddd;
  158. overflow: auto;
  159. }
  160. .tooltip {
  161. .tooltip-inner {
  162. border: 1px solid #ccc;
  163. background: #fff;
  164. color: #666;
  165. max-width: 400px;
  166. }
  167. &.in {
  168. opacity: 1;
  169. }
  170. .tooltip-arrow {
  171. visibility: hidden;
  172. }
  173. }
  174. .result-message.fail, .stack-trace.padded {
  175. text-overflow: ellipsis;
  176. display: -webkit-box;
  177. -webkit-box-orient: vertical;
  178. -webkit-line-clamp: 10;
  179. overflow: hidden;
  180. &.expanded {
  181. -webkit-line-clamp: inherit;
  182. // overflow: hidden;
  183. }
  184. }
  185. .deprecation-toggle {
  186. .octicon(fold);
  187. float: right;
  188. cursor: pointer;
  189. opacity: 0;
  190. color: #999;
  191. &.folded {
  192. .octicon(unfold);
  193. }
  194. }
  195. .deprecation-toggle:hover {
  196. color: #333;
  197. }
  198. &:hover .deprecation-toggle {
  199. opacity: 1;
  200. }
  201. }