1
+ $font-size-text : 12px ;
2
+ $font-size-h1 : 24px ;
3
+ $font-size-h2 : 16px ;
4
+
5
+ $border-width : 1px ;
6
+
7
+ $spacing : 5px ;
8
+
9
+
10
+
1
11
body {
2
12
font-family : Helvetica , Arial , sans-serif ;
3
- font-size : 12 px ;
13
+ font-size : $font-size-text ;
4
14
/* do not increase min-width as some may use split screens */
5
15
min-width : 800px ;
6
16
color : #999 ;
7
17
}
8
18
9
19
h1 {
10
- font-size : 24 px ;
20
+ font-size : $font-size-h1 ;
11
21
color : black ;
12
22
}
13
23
14
24
h2 {
15
- font-size : 16 px ;
25
+ font-size : $font-size-h2 ;
16
26
color : black ;
17
27
}
18
28
19
29
p {
20
- color : black ;
30
+ color : black ;
21
31
}
22
32
23
33
a {
@@ -32,25 +42,40 @@ table {
32
42
* SUMMARY INFORMATION
33
43
******************************/
34
44
35
- #environment td {
36
- padding : 5px ;
37
- border : 1px solid #E6E6E6 ;
38
- }
45
+ #environment {
46
+ td {
47
+ padding : $spacing ;
48
+ border : $border-width solid #E6E6E6 ;
49
+ }
39
50
40
- #environment tr :nth-child (odd ) {
41
- background-color : #f6f6f6 ;
51
+ tr :nth-child (odd ) {
52
+ background-color : #f6f6f6 ;
53
+ }
42
54
}
43
55
44
56
/* *****************************
45
57
* TEST RESULT COLORS
46
58
******************************/
47
- span .passed , .passed .col-result {
59
+ span .passed ,
60
+ .passed .col-result {
48
61
color : green ;
49
62
}
50
- span .skipped , span .xfailed , span .rerun , .skipped .col-result , .xfailed .col-result , .rerun .col-result {
63
+
64
+ span .skipped ,
65
+ span .xfailed ,
66
+ span .rerun ,
67
+ .skipped .col-result ,
68
+ .xfailed .col-result ,
69
+ .rerun .col-result {
51
70
color : orange ;
52
71
}
53
- span .error , span .failed , span .xpassed , .error .col-result , .failed .col-result , .xpassed .col-result {
72
+
73
+ span .error ,
74
+ span .failed ,
75
+ span .xpassed ,
76
+ .error .col-result ,
77
+ .failed .col-result ,
78
+ .xpassed .col-result {
54
79
color : red ;
55
80
}
56
81
@@ -69,72 +94,85 @@ span.error, span.failed, span.xpassed, .error .col-result, .failed .col-result,
69
94
*------------------*/
70
95
71
96
#results-table {
72
- border : 1 px solid #e6e6e6 ;
97
+ border : $border-width solid #e6e6e6 ;
73
98
color : #999 ;
74
- font-size : 12px ;
75
- width : 100%
76
- }
99
+ font-size : $font-size-text ;
100
+ width : 100% ;
77
101
78
- #results-table th , #results-table td {
79
- padding : 5px ;
80
- border : 1px solid #E6E6E6 ;
81
- text-align : left
82
- }
83
- #results-table th {
84
- font-weight : bold
102
+ th ,
103
+ td {
104
+ padding : $spacing ;
105
+ border : $border-width solid #E6E6E6 ;
106
+ text-align : left ;
107
+ }
108
+
109
+ th {
110
+ font-weight : bold ;
111
+ }
85
112
}
86
113
87
114
/* ------------------
88
115
* 2. Extra
89
116
*------------------*/
90
117
91
- .log :only-child {
92
- height : inherit
93
- }
118
+ $extra-height : 240 px ;
119
+ $extra-media-width : 320 px ;
120
+
94
121
.log {
95
122
background-color : #e6e6e6 ;
96
- border : 1 px solid #e6e6e6 ;
123
+ border : $border-width solid #e6e6e6 ;
97
124
color : black ;
98
125
display : block ;
99
126
font-family : " Courier New" , Courier , monospace ;
100
- height : 230 px ;
127
+ height : $extra-height - 2 * $spacing ;
101
128
overflow-y : scroll ;
102
- padding : 5px ;
103
- white-space : pre-wrap
129
+ padding : $spacing ;
130
+ white-space : pre-wrap ;
131
+
132
+ & :only-child {
133
+ height : inherit ;
134
+ }
104
135
}
136
+
105
137
div .image {
106
- border : 1 px solid #e6e6e6 ;
138
+ border : $border-width solid #e6e6e6 ;
107
139
float : right ;
108
- height : 240 px ;
109
- margin-left : 5 px ;
140
+ height : $extra-height ;
141
+ margin-left : $spacing ;
110
142
overflow : hidden ;
111
- width : 320px
112
- }
113
- div .image img {
114
- width : 320px
143
+ width : $extra-media-width ;
144
+
145
+ img {
146
+ width : $extra-media-width ;
147
+ }
115
148
}
149
+
116
150
div .video {
117
- border : 1 px solid #e6e6e6 ;
151
+ border : $border-width solid #e6e6e6 ;
118
152
float : right ;
119
- height : 240px ;
120
- margin-left : 5px ;
121
- overflow : hidden ;
122
- width : 320px
123
- }
124
- div .video video {
153
+ height : $extra-height ;
154
+ margin-left : $spacing ;
125
155
overflow : hidden ;
126
- width : 320px ;
127
- height : 240px ;
156
+ width : $extra-media-width ;
157
+
158
+ video {
159
+ overflow : hidden ;
160
+ width : $extra-media-width ;
161
+ height : $extra-height ;
162
+ }
128
163
}
164
+
129
165
.collapsed {
130
166
display : none ;
131
167
}
168
+
132
169
.expander ::after {
133
170
content : " (show details)" ;
134
171
color : #BBB ;
135
172
font-style : italic ;
136
173
cursor : pointer ;
137
174
}
175
+
138
176
.collapser ::after {
139
177
content : " (hide details)" ;
140
178
color : #BBB ;
@@ -152,26 +190,28 @@ div.video video {
152
190
.sort-icon {
153
191
font-size : 0px ;
154
192
float : left ;
155
- margin-right : 5px ;
156
- margin-top : 5px ;
193
+ margin-right : $spacing ;
194
+ margin-top : $spacing ;
195
+
157
196
/* triangle*/
197
+ $triangle-width : 8px ;
158
198
width : 0 ;
159
199
height : 0 ;
160
- border-left : 8 px solid transparent ;
161
- border-right : 8 px solid transparent ;
162
- }
163
-
164
- .inactive .sort-icon {
165
- /* finish triangle*/
166
- border-top : 8 px solid #E6E6E6 ;
167
- }
168
-
169
- .asc.active .sort-icon {
170
- /* finish triangle*/
171
- border-bottom : 8 px solid #999 ;
172
- }
173
-
174
- .desc.active .sort-icon {
175
- /* finish triangle*/
176
- border-top : 8 px solid #999 ;
200
+ border-left : $triangle-width solid transparent ;
201
+ border-right : $triangle-width solid transparent ;
202
+
203
+ .inactive {
204
+ /* finish triangle */
205
+ border-top : $ triangle-width solid #E6E6E6 ;
206
+ }
207
+
208
+ .asc.active {
209
+ /* finish triangle */
210
+ border-bottom : $ triangle-width solid #999 ;
211
+ }
212
+
213
+ .desc.active {
214
+ /* finish triangle */
215
+ border-top : $ triangle-width solid #999 ;
216
+ }
177
217
}
0 commit comments