site-health.css 6.1 KB

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