site-health.css 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360
  1. /* Note: Any Site Health selectors that use
  2. duplicate styling from the Privacy settings screen
  3. are styled in the Privacy section of edit.css */
  4. .health-check-body h2 {
  5. line-height: 1.4;
  6. }
  7. .health-check-body h3 {
  8. padding: 0;
  9. font-weight: 400;
  10. }
  11. .health-check-widget-title-section {
  12. text-align: center;
  13. }
  14. .site-health-progress-wrapper {
  15. margin-bottom: 1rem;
  16. }
  17. .site-health-progress {
  18. display: inline-block;
  19. height: 20px;
  20. width: 20px;
  21. margin: 0;
  22. border-radius: 100%;
  23. position: relative;
  24. font-weight: 600;
  25. font-size: 0.4rem;
  26. }
  27. .site-health-progress-count {
  28. position: absolute;
  29. display: block;
  30. height: 80px;
  31. width: 80px;
  32. left: 50%;
  33. top: 50%;
  34. margin-top: -40px;
  35. margin-left: -40px;
  36. border-radius: 100%;
  37. line-height: 6.3;
  38. font-size: 2em;
  39. }
  40. .loading .site-health-progress svg #bar {
  41. stroke-dashoffset: 0;
  42. stroke: #c3c4c7;
  43. animation: loadingPulse 3s infinite ease-in-out;
  44. }
  45. .site-health-progress svg circle {
  46. stroke-dashoffset: 0;
  47. transition: stroke-dashoffset 1s linear;
  48. stroke: #c3c4c7;
  49. stroke-width: 2em;
  50. }
  51. .site-health-progress svg #bar {
  52. stroke-dashoffset: 565;
  53. stroke: #d63638;
  54. }
  55. .green .site-health-progress #bar {
  56. stroke: #00a32a;
  57. }
  58. .green .site-health-progress .site-health-progress-label {
  59. color: #00a32a;
  60. }
  61. .orange .site-health-progress #bar {
  62. stroke: #dba617;
  63. }
  64. .orange .site-health-progress .site-health-progress-label {
  65. color: #dba617;
  66. }
  67. .site-health-progress-label {
  68. font-weight: 600;
  69. line-height: 20px;
  70. margin-left: 0.3rem;
  71. }
  72. @keyframes loadingPulse {
  73. 0% {
  74. stroke: #c3c4c7;
  75. }
  76. 50% {
  77. stroke: #72aee6;
  78. }
  79. 100% {
  80. stroke: #c3c4c7;
  81. }
  82. }
  83. .health-check-tabs-wrapper {
  84. /* IE 11 */
  85. display: -ms-inline-grid;
  86. -ms-grid-columns: 1fr 1fr 1fr 1fr;
  87. vertical-align: top;
  88. /* modern browsers */
  89. display: inline-grid;
  90. grid-template-columns: 1fr 1fr 1fr 1fr;
  91. }
  92. .health-check-tabs-wrapper.tab-count-1 {
  93. grid-template-columns: 1fr;
  94. }
  95. .health-check-tabs-wrapper.tab-count-2 {
  96. grid-template-columns: 1fr 1fr;
  97. }
  98. .health-check-tabs-wrapper.tab-count-3 {
  99. grid-template-columns: 1fr 1fr 1fr;
  100. }
  101. .health-check-tab {
  102. display: block; /* IE 11 */
  103. text-decoration: none;
  104. color: inherit;
  105. padding: 0.5rem 1rem 1rem;
  106. margin: 0 1rem;
  107. transition: box-shadow 0.5s ease-in-out;
  108. }
  109. .health-check-offscreen-nav-wrapper {
  110. position: relative;
  111. background: transparent;
  112. border: none;
  113. }
  114. .health-check-offscreen-nav-wrapper:focus .health-check-offscreen-nav {
  115. left: initial;
  116. }
  117. .health-check-offscreen-nav {
  118. display: none;
  119. position: absolute;
  120. padding-top: 10px;
  121. right: 0;
  122. top: 100%;
  123. width: 13rem;
  124. }
  125. .health-check-offscreen-nav-wrapper.visible .health-check-offscreen-nav {
  126. display: inline-block;
  127. }
  128. .health-check-offscreen-nav:before {
  129. position: absolute;
  130. content: "";
  131. width: 0;
  132. height: 0;
  133. border-style: solid;
  134. border-width: 0 10px 5px;
  135. border-color: transparent transparent #ffffff;
  136. right: 20px;
  137. top: 5px;
  138. }
  139. .health-check-offscreen-nav .health-check-tab {
  140. background: #fff;
  141. box-shadow: 0 2px 5px 0 rgba( 0, 0, 0, 0.75 );
  142. }
  143. .health-check-offscreen-nav .health-check-tab.active {
  144. box-shadow: inset 3px 0 #3582c4;
  145. font-weight: 600;
  146. }
  147. .health-check-body {
  148. max-width: 800px;
  149. margin: 0 auto;
  150. }
  151. .health-check-table td:first-child {
  152. width: 30%;
  153. }
  154. .health-check-table td {
  155. width: 70%;
  156. }
  157. .health-check-table ul,
  158. .health-check-table ol {
  159. margin: 0;
  160. }
  161. .health-check-body li {
  162. line-height: 1.5;
  163. }
  164. .health-check-body .pass::before,
  165. .health-check-body .good::before {
  166. content: "\f147";
  167. color: #00a32a;
  168. }
  169. .health-check-body .warning::before {
  170. content: "\f460";
  171. color: #dba617;
  172. }
  173. .health-check-body .info::before {
  174. content: "\f348";
  175. color: #72aee6;
  176. }
  177. .health-check-body .fail::before,
  178. .health-check-body .error::before {
  179. content: "\f335";
  180. color: #d63638;
  181. }
  182. .site-health-copy-buttons {
  183. margin: 1rem 0;
  184. }
  185. .site-health-copy-buttons .copy-button-wrapper {
  186. display: inline-flex;
  187. align-items: center;
  188. margin: 0.5rem 0 1rem;
  189. }
  190. .site-health-copy-buttons .success {
  191. color: #008a20;
  192. margin-left: 0.5rem;
  193. }
  194. .site-status-has-issues.hide {
  195. display: none;
  196. }
  197. .site-health-view-more {
  198. text-align: center;
  199. }
  200. .site-health-issues-wrapper:first-of-type {
  201. margin-top: 3rem;
  202. }
  203. .site-health-issues-wrapper {
  204. margin-bottom: 3rem;
  205. margin-top: 2rem;
  206. }
  207. .site-status-all-clear {
  208. display: flex;
  209. flex-direction: column;
  210. align-items: center;
  211. justify-content: center;
  212. text-align: center;
  213. height: 100%;
  214. width: 100%;
  215. margin: 0 0 3rem;
  216. }
  217. @media all and (min-width: 784px) {
  218. .site-status-all-clear {
  219. margin: 2rem 0 5rem;
  220. }
  221. }
  222. .site-status-all-clear.hide {
  223. display: none;
  224. }
  225. .site-status-all-clear .dashicons {
  226. font-size: 150px;
  227. height: 150px;
  228. margin-bottom: 2rem;
  229. width: 150px;
  230. }
  231. .site-status-all-clear .encouragement {
  232. font-size: 1.5rem;
  233. font-weight: 600;
  234. }
  235. .site-status-all-clear p {
  236. margin: 0;
  237. }
  238. .wp-core-ui .button.site-health-view-passed {
  239. position: relative;
  240. padding-right: 40px;
  241. padding-left: 20px;
  242. }
  243. /* Better position for the WordPress admin notices and update nag. */
  244. .site-health .notice {
  245. margin: 5px 20px 15px 22px;
  246. }
  247. .site-health .update-nag {
  248. margin-bottom: 20px;
  249. margin-left: 22px;
  250. }
  251. .health-check-wp-paths-sizes.spinner {
  252. visibility: visible;
  253. float: none;
  254. margin: 0 4px;
  255. flex-shrink: 0;
  256. }
  257. /* Styling unique to the dashboard widget. */
  258. #dashboard_site_health .site-health-details {
  259. padding-left: 16px;
  260. }
  261. #dashboard_site_health .health-check-widget {
  262. display: grid;
  263. grid-template-columns: 1fr 2fr;
  264. grid-auto-rows: minmax(64px, auto);
  265. column-gap: 16px;
  266. align-items: center;
  267. }
  268. #dashboard_site_health .site-health-progress-label {
  269. margin-left: 0;
  270. }
  271. @media screen and (max-width: 480px) {
  272. #dashboard_site_health .health-check-widget {
  273. grid-template-columns: 100%;
  274. }
  275. }
  276. @media screen and (max-width: 782px) {
  277. .site-health-issues-wrapper .health-check-accordion-trigger {
  278. flex-direction: column;
  279. align-items: flex-start;
  280. }
  281. .health-check-accordion-trigger .badge {
  282. margin: 1em 0 0;
  283. }
  284. .health-check-table {
  285. table-layout: fixed;
  286. }
  287. .health-check-table td {
  288. box-sizing: border-box;
  289. display: block;
  290. width: 100%;
  291. word-wrap: break-word;
  292. }
  293. .health-check-table td:first-child {
  294. width: 100%;
  295. padding-bottom: 0;
  296. font-weight: 600;
  297. }
  298. .wp-core-ui .site-health-copy-buttons .copy-button {
  299. margin-bottom: 0;
  300. }
  301. }