|
1 .site-health #wpcontent, |
|
2 .site-health.auto-fold #wpcontent { |
|
3 padding-right: 0; |
|
4 } |
|
5 |
|
6 /* Emulates .wrap h1 styling */ |
|
7 .health-check-header h1 { |
|
8 display: inline-block; |
|
9 font-weight: 600; |
|
10 margin: 1rem 0.8rem; |
|
11 font-size: 23px; |
|
12 padding: 9px 0 4px 0; |
|
13 line-height: 1.3; |
|
14 } |
|
15 |
|
16 .health-check-body h2 { |
|
17 padding: 1rem 0; |
|
18 line-height: 1.4; |
|
19 } |
|
20 |
|
21 .health-check-body h3 { |
|
22 padding: 0; |
|
23 font-weight: 400; |
|
24 } |
|
25 |
|
26 .health-check-header { |
|
27 text-align: center; |
|
28 margin: 0 0 1rem; |
|
29 background: #fff; |
|
30 border-bottom: 1px solid #e2e4e7; |
|
31 } |
|
32 |
|
33 .health-check-title-section { |
|
34 display: flex; |
|
35 align-items: center; |
|
36 justify-content: center; |
|
37 clear: both; |
|
38 } |
|
39 |
|
40 .site-health-progress { |
|
41 display: inline-block; |
|
42 height: 40px; |
|
43 width: 40px; |
|
44 margin: 0; |
|
45 border-radius: 100%; |
|
46 position: relative; |
|
47 font-weight: 600; |
|
48 font-size: 0.4rem; |
|
49 } |
|
50 |
|
51 .site-health-progress-count { |
|
52 position: absolute; |
|
53 display: block; |
|
54 height: 80px; |
|
55 width: 80px; |
|
56 right: 50%; |
|
57 top: 50%; |
|
58 margin-top: -40px; |
|
59 margin-right: -40px; |
|
60 border-radius: 100%; |
|
61 line-height: 6.3; |
|
62 font-size: 2em; |
|
63 } |
|
64 |
|
65 .site-health-progress-count::after { |
|
66 content: ""; |
|
67 } |
|
68 |
|
69 .site-health-progress.loading .site-health-progress-count::after { |
|
70 content: "ยทยทยท"; |
|
71 } |
|
72 |
|
73 .site-health-progress.loading svg #bar { |
|
74 stroke-dashoffset: 0; |
|
75 stroke: #adc5d2; |
|
76 animation: loadingPulse 3s infinite ease-in-out; |
|
77 } |
|
78 |
|
79 .site-health-progress svg circle { |
|
80 stroke-dashoffset: 0; |
|
81 transition: stroke-dashoffset 1s linear; |
|
82 stroke: #ccc; |
|
83 stroke-width: 2em; |
|
84 } |
|
85 |
|
86 .site-health-progress svg #bar { |
|
87 stroke-dashoffset: 565; |
|
88 stroke: #dc3232; |
|
89 } |
|
90 |
|
91 .site-health-progress svg #bar.green { |
|
92 stroke: #46b450; |
|
93 } |
|
94 |
|
95 .site-health-progress svg #bar.orange { |
|
96 stroke: #ffb900; |
|
97 } |
|
98 |
|
99 @keyframes loadingPulse { |
|
100 0% { |
|
101 stroke: #adc5d2; |
|
102 } |
|
103 50% { |
|
104 stroke: #00a0d2; |
|
105 } |
|
106 100% { |
|
107 stroke: #adc5d2; |
|
108 } |
|
109 } |
|
110 |
|
111 .health-check-tabs-wrapper { |
|
112 /* IE 11 */ |
|
113 display: -ms-inline-grid; |
|
114 -ms-grid-columns: 1fr 1fr; |
|
115 vertical-align: top; |
|
116 /* modern browsers */ |
|
117 display: inline-grid; |
|
118 grid-template-columns: 1fr 1fr; |
|
119 } |
|
120 |
|
121 .health-check-tab { |
|
122 display: block; /* IE 11 */ |
|
123 text-decoration: none; |
|
124 color: inherit; |
|
125 padding: 0.5rem 1rem 1rem; |
|
126 margin: 0 1rem; |
|
127 transition: box-shadow 0.5s ease-in-out; |
|
128 } |
|
129 |
|
130 .health-check-tab:nth-child(1) { |
|
131 -ms-grid-column: 1; /* IE 11 */ |
|
132 } |
|
133 |
|
134 .health-check-tab:nth-child(2) { |
|
135 -ms-grid-column: 2; /* IE 11 */ |
|
136 } |
|
137 |
|
138 .health-check-tab:focus { |
|
139 color: #191e23; |
|
140 outline: 1px solid #6c7781; |
|
141 box-shadow: none; |
|
142 } |
|
143 |
|
144 .health-check-tab.active { |
|
145 box-shadow: inset 0 -3px #007cba; |
|
146 font-weight: 600; |
|
147 } |
|
148 |
|
149 .health-check-body { |
|
150 max-width: 800px; |
|
151 margin: 0 auto; |
|
152 } |
|
153 |
|
154 .health-check-table td:first-child { |
|
155 width: 30%; |
|
156 } |
|
157 |
|
158 .health-check-table td { |
|
159 width: 70%; |
|
160 } |
|
161 |
|
162 .health-check-table ul, |
|
163 .health-check-table ol { |
|
164 margin: 0; |
|
165 } |
|
166 |
|
167 .health-check-body li { |
|
168 line-height: 1.5; |
|
169 } |
|
170 |
|
171 .health-check-body .pass::before, |
|
172 .health-check-body .good::before { |
|
173 content: "\f147"; |
|
174 color: #46b450; |
|
175 } |
|
176 |
|
177 .health-check-body .warning::before { |
|
178 content: "\f460"; |
|
179 color: #ffb900; |
|
180 } |
|
181 |
|
182 .health-check-body .info::before { |
|
183 content: "\f348"; |
|
184 color: #00a0d2; |
|
185 } |
|
186 |
|
187 .health-check-body .fail::before, |
|
188 .health-check-body .error::before { |
|
189 content: "\f335"; |
|
190 color: #dc3232; |
|
191 } |
|
192 |
|
193 .site-health-copy-buttons { |
|
194 margin: 1rem 0; |
|
195 } |
|
196 |
|
197 .site-health-copy-buttons .copy-button-wrapper { |
|
198 margin: 0.5rem 0 1rem; |
|
199 } |
|
200 |
|
201 .site-health-copy-buttons .success { |
|
202 display: none; |
|
203 color: #40860a; |
|
204 line-height: 1.8; |
|
205 margin-right: 0.5rem; |
|
206 } |
|
207 |
|
208 .site-health-copy-buttons .success.visible { |
|
209 display: inline-block; |
|
210 height: 28px; |
|
211 line-height: 2.2; |
|
212 } |
|
213 |
|
214 .site-status-has-issues.hide { |
|
215 display: none; |
|
216 } |
|
217 |
|
218 .site-health-view-more { |
|
219 text-align: center; |
|
220 } |
|
221 |
|
222 .site-health-issues-wrapper:first-of-type { |
|
223 margin-top: 3rem; |
|
224 } |
|
225 |
|
226 .site-health-issues-wrapper { |
|
227 margin-bottom: 3rem; |
|
228 margin-top: 2rem; |
|
229 } |
|
230 |
|
231 .site-status-all-clear { |
|
232 display: flex; |
|
233 flex-direction: column; |
|
234 align-items: center; |
|
235 justify-content: center; |
|
236 text-align: center; |
|
237 height: 100%; |
|
238 width: 100%; |
|
239 margin-top: 0; |
|
240 } |
|
241 |
|
242 @media all and (min-width: 784px) { |
|
243 .site-status-all-clear { |
|
244 margin: 5rem 0; |
|
245 } |
|
246 } |
|
247 |
|
248 .site-status-all-clear.hide { |
|
249 display: none; |
|
250 } |
|
251 |
|
252 .site-status-all-clear .dashicons { |
|
253 font-size: 150px; |
|
254 height: 130px; |
|
255 width: 150px; |
|
256 } |
|
257 |
|
258 .site-status-all-clear .encouragement { |
|
259 font-size: 1.5rem; |
|
260 font-weight: 600; |
|
261 } |
|
262 |
|
263 .site-status-all-clear p { |
|
264 margin: 0; |
|
265 } |
|
266 |
|
267 .health-check-accordion { |
|
268 border: 1px solid #e2e4e7; |
|
269 } |
|
270 |
|
271 .health-check-accordion-heading { |
|
272 margin: 0; |
|
273 border-top: 1px solid #e2e4e7; |
|
274 font-size: inherit; |
|
275 line-height: inherit; |
|
276 font-weight: 600; |
|
277 color: inherit; |
|
278 } |
|
279 |
|
280 .health-check-accordion-heading:first-child { |
|
281 border-top: none; |
|
282 } |
|
283 |
|
284 .health-check-accordion-trigger { |
|
285 background: #fff; |
|
286 border: 0; |
|
287 color: #32373c; |
|
288 cursor: pointer; |
|
289 display: flex; |
|
290 font-weight: 400; |
|
291 margin: 0; |
|
292 padding: 1em 1.5em 1em 3.5em; |
|
293 min-height: 46px; |
|
294 position: relative; |
|
295 text-align: right; |
|
296 width: 100%; |
|
297 align-items: center; |
|
298 justify-content: space-between; |
|
299 } |
|
300 |
|
301 .wp-core-ui .button.site-health-view-passed { |
|
302 position: relative; |
|
303 padding-left: 40px; |
|
304 padding-right: 20px; |
|
305 } |
|
306 |
|
307 .health-check-accordion-trigger:hover, |
|
308 .health-check-accordion-trigger:active { |
|
309 background: #f8f9f9; |
|
310 } |
|
311 |
|
312 .health-check-accordion-trigger:focus { |
|
313 color: #191e23; |
|
314 border: none; |
|
315 box-shadow: none; |
|
316 outline-offset: -2px; |
|
317 outline: 1px dotted #555d66; |
|
318 } |
|
319 |
|
320 .health-check-accordion-trigger .title { |
|
321 pointer-events: none; |
|
322 font-weight: 600; |
|
323 flex-grow: 1; |
|
324 } |
|
325 |
|
326 .health-check-accordion-trigger .icon, |
|
327 .site-health-view-passed .icon { |
|
328 border: solid #555d66; |
|
329 border-width: 0 0 2px 2px; |
|
330 height: 0.5rem; |
|
331 pointer-events: none; |
|
332 position: absolute; |
|
333 left: 1.5em; |
|
334 top: 50%; |
|
335 transform: translateY(-70%) rotate(-45deg); |
|
336 width: 0.5rem; |
|
337 } |
|
338 |
|
339 .health-check-accordion-trigger .badge { |
|
340 padding: 0.1rem 0.5rem 0.15rem; |
|
341 color: #32373c; |
|
342 font-weight: 600; |
|
343 margin-right: 0.5rem; |
|
344 } |
|
345 |
|
346 .health-check-accordion-trigger .badge.blue { |
|
347 border: 1px solid #bfe7f3; |
|
348 } |
|
349 |
|
350 .health-check-accordion-trigger .badge.orange { |
|
351 border: 1px solid #ffb900; |
|
352 } |
|
353 |
|
354 .health-check-accordion-trigger .badge.red { |
|
355 border: 1px solid #dc3232; |
|
356 } |
|
357 |
|
358 .health-check-accordion-trigger .badge.green { |
|
359 border: 1px solid #46b450; |
|
360 } |
|
361 |
|
362 .health-check-accordion-trigger .badge.purple { |
|
363 border: 1px solid #826eb4; |
|
364 } |
|
365 |
|
366 .health-check-accordion-trigger .badge.gray { |
|
367 border: 1px solid #ccd0d4; |
|
368 } |
|
369 |
|
370 .health-check-accordion-trigger[aria-expanded="true"] .icon, |
|
371 .site-health-view-passed[aria-expanded="true"] .icon { |
|
372 transform: translateY(-30%) rotate(135deg) |
|
373 } |
|
374 |
|
375 .health-check-accordion-panel { |
|
376 margin: 0; |
|
377 padding: 1em 1.5em; |
|
378 background: #fff; |
|
379 } |
|
380 |
|
381 .health-check-accordion-panel[hidden] { |
|
382 display: none; |
|
383 } |
|
384 |
|
385 .health-check-accordion-panel a .dashicons { |
|
386 text-decoration: none; |
|
387 } |
|
388 |
|
389 /* Better position for the WordPress admin notices and update nag. */ |
|
390 .site-health .notice { |
|
391 margin: 5px 22px 15px 20px; |
|
392 } |
|
393 |
|
394 .site-health .update-nag { |
|
395 margin-bottom: 20px; |
|
396 margin-right: 22px; |
|
397 } |
|
398 |
|
399 .health-check-wp-paths-sizes.spinner { |
|
400 visibility: visible; |
|
401 float: none; |
|
402 margin: 0 4px; |
|
403 flex-shrink: 0; |
|
404 } |
|
405 |
|
406 @media screen and (max-width: 782px) { |
|
407 .health-check-body { |
|
408 margin: 0 12px; |
|
409 width: auto; |
|
410 } |
|
411 |
|
412 .site-health .notice { |
|
413 margin: 5px 10px 15px; |
|
414 } |
|
415 |
|
416 .site-health .update-nag { |
|
417 margin-left: 10px; |
|
418 margin-right: 10px; |
|
419 } |
|
420 |
|
421 .site-health-issues-wrapper .health-check-accordion-trigger { |
|
422 flex-direction: column; |
|
423 align-items: flex-start; |
|
424 } |
|
425 |
|
426 .health-check-accordion-trigger .badge { |
|
427 margin: 1em 0 0; |
|
428 } |
|
429 |
|
430 .health-check-table { |
|
431 table-layout: fixed; |
|
432 } |
|
433 |
|
434 .health-check-table td { |
|
435 box-sizing: border-box; |
|
436 display: block; |
|
437 width: 100%; |
|
438 word-wrap: break-word; |
|
439 } |
|
440 |
|
441 .health-check-table td:first-child { |
|
442 width: 100%; |
|
443 padding-bottom: 0; |
|
444 font-weight: 600; |
|
445 } |
|
446 } |
|
447 |
|
448 /* The breakpoint is usually at 960px, the additional space is to allow for the margin. */ |
|
449 @media only screen and (max-width: 1004px) { |
|
450 .health-check-body { |
|
451 margin: 0 22px; |
|
452 width: auto; |
|
453 } |
|
454 } |