1 | $bodyBackground = #F7F6F5;
|
2 | $bodyTextColor = #DEDEDE;
|
3 | $cellBorderColor = #DEDEDE;
|
4 | $failedColor = #F15064;
|
5 | $headingColor = #717171;
|
6 | $passedColor = #41C645;
|
7 | $skippedColor = #b0b0b0;
|
8 | $sectionHeadingBackground = #C4E5E5;
|
9 | $summaryBorderColor = #DFDFDF;
|
10 | $summaryBottomBackground = #fff;
|
11 | $summaryTextColor = #777;
|
12 | $summaryTopBackground = #F1F0EF;
|
13 | $testsColor = #59B0C6;
|
14 | $reportTextColor = #3C3C3C;
|
15 | $lineHeight = 18px;
|
16 |
|
17 | statusColors($bg, $color) {
|
18 | .column-status {
|
19 | background: $bg;
|
20 | border: 1px solid darken($bg, 10%);
|
21 |
|
22 | .icon {
|
23 | path {
|
24 | fill: $color;
|
25 | }
|
26 | }
|
27 | }
|
28 | }
|
29 |
|
30 | userSelect($value) {
|
31 | user-select: $value;
|
32 | -ms-user-select: $value;
|
33 | -moz-user-select: $value;
|
34 | -webkit-user-select: $value;
|
35 | }
|
36 |
|
37 | html,
|
38 | body {
|
39 | background: $bodyBackground;
|
40 | color: $bodyTextColor;
|
41 | font: 14px/normal Helvetica, Arial, sans-serif;
|
42 | line-height: $lineHeight;
|
43 | margin: 0;
|
44 | visibility: visible;
|
45 | padding-bottom: 2em;
|
46 | padding-top: 0;
|
47 | }
|
48 |
|
49 | .icon {
|
50 | display: block;
|
51 | margin: 0 auto;
|
52 | }
|
53 |
|
54 | .internReportContainer {
|
55 | display: flex;
|
56 | flex-direction: column;
|
57 | align-items: stretch;
|
58 | margin: 0 auto;
|
59 | width: 75%;
|
60 | min-width: 800px;
|
61 | }
|
62 |
|
63 | .reportHeader {
|
64 | background: #fff;
|
65 | box-shadow: 0px 1px 2px 0px rgba(#000, 15%);
|
66 | margin: 0 0 1em 0;
|
67 | padding: 0.6em;
|
68 | text-align: center;
|
69 |
|
70 | .headerLogo {
|
71 | height: 45px;
|
72 | margin-right: 10px;
|
73 | vertical-align: middle;
|
74 | width: 45px;
|
75 | }
|
76 |
|
77 | .headerTitle {
|
78 | color: $headingColor;
|
79 | font-size: 1em;
|
80 | font-weight: 300;
|
81 | padding-top: 3px;
|
82 | vertical-align: middle;
|
83 | }
|
84 | }
|
85 |
|
86 | .summary {
|
87 | border-collapse: collapse;
|
88 | margin-bottom: 2.5em;
|
89 | width: 100%;
|
90 | display: flex;
|
91 |
|
92 | .summaryContent {
|
93 | display: flex;
|
94 | flex-direction: column;
|
95 | flex-grow: 1;
|
96 | align-items: center;
|
97 | justify-content: space-evenly;
|
98 |
|
99 | font-size: 1em;
|
100 | background: $summaryTopBackground;
|
101 | border: 1px solid $summaryBorderColor;
|
102 | border-radius: 6px 6px 0 0;
|
103 | box-shadow: 0px 1px 2px 0px rgba(#000, 15%);
|
104 | margin: 0 1em 0 auto;
|
105 | color: $summaryTextColor;
|
106 |
|
107 | .icon {
|
108 | margin-top: 10px;
|
109 | width: 42px;
|
110 | height: 42px;
|
111 | }
|
112 |
|
113 | &.suites,
|
114 | &.tests,
|
115 | &.duration,
|
116 | &.skipped {
|
117 | svg path {
|
118 | fill: $summaryTextColor;
|
119 | }
|
120 | }
|
121 |
|
122 | &.failed,
|
123 | &.success,
|
124 | &.successRate {
|
125 | svg path {
|
126 | fill: white;
|
127 | }
|
128 | }
|
129 |
|
130 | &.failed,
|
131 | &.successRate.failed {
|
132 | background: $failedColor;
|
133 | color: #fff;
|
134 |
|
135 | .summaryTitle {
|
136 | border-color: darken($failedColor, 20%);
|
137 | color: $summaryTextColor;
|
138 | }
|
139 |
|
140 | &.success {
|
141 | margin-right: 1em;
|
142 | }
|
143 | }
|
144 |
|
145 | &.success,
|
146 | &.successRate {
|
147 | background: darken($passedColor, 20%);
|
148 | color: #fff;
|
149 | margin-right: 0;
|
150 |
|
151 | .summaryTitle {
|
152 | border-color: darken($passedColor, 20%);
|
153 | color: $summaryTextColor;
|
154 | }
|
155 | }
|
156 |
|
157 | .summaryTitle {
|
158 | flex-grow: 0;
|
159 | background: #fff;
|
160 | border: 1px solid $summaryBorderColor;
|
161 | border-radius: 14px;
|
162 | display: inline-block;
|
163 | padding: 0.2em 1em;
|
164 | position: relative;
|
165 | top: 10px;
|
166 | z-index: 1;
|
167 | }
|
168 |
|
169 | .summaryData {
|
170 | flex-grow: 1;
|
171 | width: 100%;
|
172 | display: flex;
|
173 | align-items: center;
|
174 | justify-content: center;
|
175 |
|
176 | background: $summaryBottomBackground;
|
177 | box-sizing: border-box;
|
178 | color: $summaryTextColor;
|
179 | font-size: 28px;
|
180 | font-weight: 300;
|
181 | padding: 26px 0 16px 0;
|
182 | }
|
183 | }
|
184 | }
|
185 |
|
186 | .toggleFilter {
|
187 | color: $reportTextColor;
|
188 | input {
|
189 | margin-left: 0.5em;
|
190 | margin-right: 0.5em;
|
191 | }
|
192 | }
|
193 |
|
194 | .report {
|
195 | background-color: #fff;
|
196 | border-collapse: collapse;
|
197 | color: $reportTextColor;
|
198 | table-layout: fixed;
|
199 | width: 100%;
|
200 |
|
201 | a {
|
202 | text-decoration: none;
|
203 | }
|
204 |
|
205 | a:hover {
|
206 | text-decoration: underline;
|
207 | }
|
208 |
|
209 | a,
|
210 | a:visited {
|
211 | color: inherit;
|
212 | }
|
213 |
|
214 | td {
|
215 | padding: 0.7em;
|
216 | border-left: 1px solid $cellBorderColor;
|
217 | border-right: 1px solid $cellBorderColor;
|
218 | vertical-align: top;
|
219 | }
|
220 |
|
221 | .column-status {
|
222 | padding: 0;
|
223 |
|
224 | .statusContent {
|
225 | position: relative;
|
226 | padding: 0.7em 0;
|
227 | text-align: center;
|
228 | }
|
229 | }
|
230 |
|
231 | .suite {
|
232 | background: $sectionHeadingBackground;
|
233 |
|
234 | .column-status {
|
235 | .icon {
|
236 | width: 21px;
|
237 | height: 21px;
|
238 | }
|
239 |
|
240 | .statusContent:after {
|
241 | bottom: 0;
|
242 | content: '\25bc';
|
243 | display: block;
|
244 | font-size: 9px;
|
245 | position: absolute;
|
246 | right: 2px;
|
247 | }
|
248 | }
|
249 |
|
250 | statusColors(darken($sectionHeadingBackground, 10%), darken($sectionHeadingBackground, 60%));
|
251 |
|
252 | td {
|
253 | border: 1px solid darken($sectionHeadingBackground, 20%);
|
254 |
|
255 | &.title {
|
256 | font-size: 15px;
|
257 | font-weight: bold;
|
258 | }
|
259 |
|
260 | &.duration {
|
261 | text-align:right;
|
262 | }
|
263 | }
|
264 |
|
265 | .column-info {
|
266 | span {
|
267 | margin-right: 1em;
|
268 | }
|
269 |
|
270 | .success {
|
271 | color: darken($passedColor, 30%);
|
272 | }
|
273 |
|
274 | .failed {
|
275 | color: darken($failedColor, 30%);
|
276 | }
|
277 |
|
278 | .skipped {
|
279 | color: darken($skippedColor, 30%);
|
280 | }
|
281 | }
|
282 |
|
283 | &.collapsed {
|
284 | .column-status .statusContent:after {
|
285 | content: '\25b6';
|
286 | }
|
287 | }
|
288 |
|
289 | &.indent {
|
290 | $bgColor = lighten($sectionHeadingBackground, 60%);
|
291 | background: $bgColor;
|
292 |
|
293 | td {
|
294 | border-color: darken($bgColor, 10%);
|
295 | }
|
296 |
|
297 | statusColors(darken($bgColor, 15%), darken($bgColor, 60%));
|
298 | }
|
299 |
|
300 | &.skipped {
|
301 | statusColors(lighten($skippedColor, 80%), $skippedColor)
|
302 |
|
303 | color: $skippedColor;
|
304 | background-color: #fff;
|
305 |
|
306 | td {
|
307 | border-color: darken(#fff, 10%);
|
308 | }
|
309 | }
|
310 | }
|
311 |
|
312 | .testResult {
|
313 | transition: background 0.3s ease;
|
314 |
|
315 | .icon {
|
316 | width: 21px;
|
317 | height: 21px;
|
318 | }
|
319 |
|
320 |
|
321 | td {
|
322 | border: 1px solid $cellBorderColor;
|
323 |
|
324 | &.duration {
|
325 | text-align: right;
|
326 | }
|
327 | }
|
328 |
|
329 | &.passed {
|
330 | statusColors(lighten($passedColor, 70%), $passedColor)
|
331 |
|
332 | &:hover {
|
333 | background: lighten($passedColor, 90%);
|
334 | }
|
335 | }
|
336 |
|
337 | &.failed {
|
338 | background: lighten($failedColor, 65%);
|
339 | statusColors(lighten($failedColor, 70%), $failedColor);
|
340 |
|
341 | &:hover {
|
342 | background:lighten(@background, 20%);
|
343 | }
|
344 |
|
345 | td {
|
346 | border-color:lighten($failedColor, 40%);
|
347 | border-bottom:0;
|
348 | }
|
349 |
|
350 | .testError {
|
351 | pre {
|
352 | margin: 0;
|
353 | }
|
354 | }
|
355 | }
|
356 |
|
357 | &.skipped {
|
358 | statusColors(lighten($skippedColor, 80%), $skippedColor)
|
359 | color: $skippedColor;
|
360 | }
|
361 | }
|
362 |
|
363 | .indent1 { padding-left: 1.5em; }
|
364 | .indent2 { padding-left: 3em; }
|
365 | .indent3 { padding-left: 4.5em; }
|
366 | .indent4 { padding-left: 6em; }
|
367 | .indent5 { padding-left: 7.5em; }
|
368 | }
|
369 |
|
370 | .truncateText {
|
371 | overflow-x: hidden;
|
372 | text-overflow: ellipsis;
|
373 | }
|
374 |
|
375 | .scrollText {
|
376 | overflow: auto;
|
377 | }
|
378 |
|
379 | .column-status {
|
380 | width: 40px;
|
381 | }
|
382 |
|
383 | .column-id {
|
384 | width: 20%;
|
385 | }
|
386 |
|
387 | .column-info {
|
388 | width: 60%;
|
389 | }
|
390 |
|
391 | .column-time {
|
392 | width: 70px;
|
393 | }
|
394 |
|
395 | .hidePassed .report {
|
396 | .passed {
|
397 | display: none;
|
398 | }
|
399 | }
|
400 |
|
401 | .hideSkipped .report {
|
402 | .skipped {
|
403 | display: none;
|
404 | }
|
405 | }
|
406 |
|
407 | .reportControls {
|
408 | margin-bottom: 0.75em;
|
409 | color: $summaryTextColor;
|
410 |
|
411 | > * {
|
412 | width: 50%;
|
413 | }
|
414 |
|
415 | * {
|
416 | display: inline-block;
|
417 | }
|
418 |
|
419 | > :last-child {
|
420 | text-align: right;
|
421 | > * {
|
422 | margin-left: 1em;
|
423 | }
|
424 | }
|
425 | }
|
426 |
|
427 | .linkButton {
|
428 | padding: 1px 4px 3px 4px;
|
429 | border-radius: 4px;
|
430 | background: $summaryTopBackground;
|
431 | border: 1px solid $summaryBorderColor;
|
432 | display: inline-block;
|
433 | font-size: 0.8em;
|
434 | cursor: pointer;
|
435 | userSelect(none);
|
436 | }
|