site-health-rtl.css 7.7 KB

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