1 | @charset "utf-8"; |
---|
2 | |
---|
3 | body { |
---|
4 | margin:0; |
---|
5 | } |
---|
6 | |
---|
7 | #mocha { |
---|
8 | font: 20px/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif; |
---|
9 | margin: 60px 50px; |
---|
10 | } |
---|
11 | |
---|
12 | #mocha ul, #mocha li { |
---|
13 | margin: 0; |
---|
14 | padding: 0; |
---|
15 | } |
---|
16 | |
---|
17 | #mocha ul { |
---|
18 | list-style: none; |
---|
19 | } |
---|
20 | |
---|
21 | #mocha h1, #mocha h2 { |
---|
22 | margin: 0; |
---|
23 | } |
---|
24 | |
---|
25 | #mocha h1 { |
---|
26 | margin-top: 15px; |
---|
27 | font-size: 1em; |
---|
28 | font-weight: 200; |
---|
29 | } |
---|
30 | |
---|
31 | #mocha h1 a { |
---|
32 | text-decoration: none; |
---|
33 | color: inherit; |
---|
34 | } |
---|
35 | |
---|
36 | #mocha h1 a:hover { |
---|
37 | text-decoration: underline; |
---|
38 | } |
---|
39 | |
---|
40 | #mocha .suite .suite h1 { |
---|
41 | margin-top: 0; |
---|
42 | font-size: .8em; |
---|
43 | } |
---|
44 | |
---|
45 | #mocha .hidden { |
---|
46 | display: none; |
---|
47 | } |
---|
48 | |
---|
49 | #mocha h2 { |
---|
50 | font-size: 12px; |
---|
51 | font-weight: normal; |
---|
52 | cursor: pointer; |
---|
53 | } |
---|
54 | |
---|
55 | #mocha .suite { |
---|
56 | margin-left: 15px; |
---|
57 | } |
---|
58 | |
---|
59 | #mocha .test { |
---|
60 | margin-left: 15px; |
---|
61 | overflow: hidden; |
---|
62 | } |
---|
63 | |
---|
64 | #mocha .test.pending:hover h2::after { |
---|
65 | content: '(pending)'; |
---|
66 | font-family: arial, sans-serif; |
---|
67 | } |
---|
68 | |
---|
69 | #mocha .test.pass.medium .duration { |
---|
70 | background: #C09853; |
---|
71 | } |
---|
72 | |
---|
73 | #mocha .test.pass.slow .duration { |
---|
74 | background: #B94A48; |
---|
75 | } |
---|
76 | |
---|
77 | #mocha .test.pass::before { |
---|
78 | content: 'â'; |
---|
79 | font-size: 12px; |
---|
80 | display: block; |
---|
81 | float: left; |
---|
82 | margin-right: 5px; |
---|
83 | color: #00d6b2; |
---|
84 | } |
---|
85 | |
---|
86 | #mocha .test.pass .duration { |
---|
87 | font-size: 9px; |
---|
88 | margin-left: 5px; |
---|
89 | padding: 2px 5px; |
---|
90 | color: white; |
---|
91 | -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.2); |
---|
92 | -moz-box-shadow: inset 0 1px 1px rgba(0,0,0,.2); |
---|
93 | box-shadow: inset 0 1px 1px rgba(0,0,0,.2); |
---|
94 | -webkit-border-radius: 5px; |
---|
95 | -moz-border-radius: 5px; |
---|
96 | -ms-border-radius: 5px; |
---|
97 | -o-border-radius: 5px; |
---|
98 | border-radius: 5px; |
---|
99 | } |
---|
100 | |
---|
101 | #mocha .test.pass.fast .duration { |
---|
102 | display: none; |
---|
103 | } |
---|
104 | |
---|
105 | #mocha .test.pending { |
---|
106 | color: #0b97c4; |
---|
107 | } |
---|
108 | |
---|
109 | #mocha .test.pending::before { |
---|
110 | content: 'âŠ'; |
---|
111 | color: #0b97c4; |
---|
112 | } |
---|
113 | |
---|
114 | #mocha .test.fail { |
---|
115 | color: #c00; |
---|
116 | } |
---|
117 | |
---|
118 | #mocha .test.fail pre { |
---|
119 | color: black; |
---|
120 | } |
---|
121 | |
---|
122 | #mocha .test.fail::before { |
---|
123 | content: 'â'; |
---|
124 | font-size: 12px; |
---|
125 | display: block; |
---|
126 | float: left; |
---|
127 | margin-right: 5px; |
---|
128 | color: #c00; |
---|
129 | } |
---|
130 | |
---|
131 | #mocha .test pre.error { |
---|
132 | color: #c00; |
---|
133 | max-height: 300px; |
---|
134 | overflow: auto; |
---|
135 | } |
---|
136 | |
---|
137 | #mocha .test pre { |
---|
138 | display: block; |
---|
139 | float: left; |
---|
140 | clear: left; |
---|
141 | font: 12px/1.5 monaco, monospace; |
---|
142 | margin: 5px; |
---|
143 | padding: 15px; |
---|
144 | border: 1px solid #eee; |
---|
145 | border-bottom-color: #ddd; |
---|
146 | -webkit-border-radius: 3px; |
---|
147 | -webkit-box-shadow: 0 1px 3px #eee; |
---|
148 | -moz-border-radius: 3px; |
---|
149 | -moz-box-shadow: 0 1px 3px #eee; |
---|
150 | border-radius: 3px; |
---|
151 | } |
---|
152 | |
---|
153 | #mocha .test h2 { |
---|
154 | position: relative; |
---|
155 | } |
---|
156 | |
---|
157 | #mocha .test a.replay { |
---|
158 | position: absolute; |
---|
159 | top: 3px; |
---|
160 | right: 0; |
---|
161 | text-decoration: none; |
---|
162 | vertical-align: middle; |
---|
163 | display: block; |
---|
164 | width: 15px; |
---|
165 | height: 15px; |
---|
166 | line-height: 15px; |
---|
167 | text-align: center; |
---|
168 | background: #eee; |
---|
169 | font-size: 15px; |
---|
170 | -moz-border-radius: 15px; |
---|
171 | border-radius: 15px; |
---|
172 | -webkit-transition: opacity 200ms; |
---|
173 | -moz-transition: opacity 200ms; |
---|
174 | transition: opacity 200ms; |
---|
175 | opacity: 0.3; |
---|
176 | color: #888; |
---|
177 | } |
---|
178 | |
---|
179 | #mocha .test:hover a.replay { |
---|
180 | opacity: 1; |
---|
181 | } |
---|
182 | |
---|
183 | #mocha-report.pass .test.fail { |
---|
184 | display: none; |
---|
185 | } |
---|
186 | |
---|
187 | #mocha-report.fail .test.pass { |
---|
188 | display: none; |
---|
189 | } |
---|
190 | |
---|
191 | #mocha-report.pending .test.pass, |
---|
192 | #mocha-report.pending .test.fail { |
---|
193 | display: none; |
---|
194 | } |
---|
195 | #mocha-report.pending .test.pass.pending { |
---|
196 | display: block; |
---|
197 | } |
---|
198 | |
---|
199 | #mocha-error { |
---|
200 | color: #c00; |
---|
201 | font-size: 1.5em; |
---|
202 | font-weight: 100; |
---|
203 | letter-spacing: 1px; |
---|
204 | } |
---|
205 | |
---|
206 | #mocha-stats { |
---|
207 | position: fixed; |
---|
208 | top: 15px; |
---|
209 | right: 10px; |
---|
210 | font-size: 12px; |
---|
211 | margin: 0; |
---|
212 | color: #888; |
---|
213 | z-index: 1; |
---|
214 | } |
---|
215 | |
---|
216 | #mocha-stats .progress { |
---|
217 | float: right; |
---|
218 | padding-top: 0; |
---|
219 | } |
---|
220 | |
---|
221 | #mocha-stats em { |
---|
222 | color: black; |
---|
223 | } |
---|
224 | |
---|
225 | #mocha-stats a { |
---|
226 | text-decoration: none; |
---|
227 | color: inherit; |
---|
228 | } |
---|
229 | |
---|
230 | #mocha-stats a:hover { |
---|
231 | border-bottom: 1px solid #eee; |
---|
232 | } |
---|
233 | |
---|
234 | #mocha-stats li { |
---|
235 | display: inline-block; |
---|
236 | margin: 0 5px; |
---|
237 | list-style: none; |
---|
238 | padding-top: 11px; |
---|
239 | } |
---|
240 | |
---|
241 | #mocha-stats canvas { |
---|
242 | width: 40px; |
---|
243 | height: 40px; |
---|
244 | } |
---|
245 | |
---|
246 | #mocha code .comment { color: #ddd } |
---|
247 | #mocha code .init { color: #2F6FAD } |
---|
248 | #mocha code .string { color: #5890AD } |
---|
249 | #mocha code .keyword { color: #8A6343 } |
---|
250 | #mocha code .number { color: #2F6FAD } |
---|
251 | |
---|
252 | @media screen and (max-device-width: 480px) { |
---|
253 | #mocha { |
---|
254 | margin: 60px 0px; |
---|
255 | } |
---|
256 | |
---|
257 | #mocha #stats { |
---|
258 | position: absolute; |
---|
259 | } |
---|
260 | } |
---|