PageSpeed_Widget_View.css 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. #w3tc_pagespeed .inside {
  2. min-height: 30px;
  3. }
  4. .w3tcps_loading .spinner {
  5. margin-top: 5px;
  6. float: unset;
  7. }
  8. .w3tcps_timestamp_container {
  9. text-align: center;
  10. }
  11. .w3tcps_timestamp_label {
  12. margin: 0;
  13. }
  14. .w3tcps_barline {
  15. display: inline-flex;
  16. min-width: 90px;
  17. }
  18. .w3tcps_barline div {
  19. padding-left: 10px;
  20. }
  21. .w3tcps_buttons {
  22. display: flex;
  23. justify-content: center;
  24. }
  25. .w3tcps_buttons .button {
  26. margin: 5px !important;
  27. }
  28. .w3tcps_widget_metrics {
  29. display: flex;
  30. flex-wrap: wrap;
  31. }
  32. .w3tcps_metric {
  33. flex-grow: 1;
  34. width: 33%;
  35. }
  36. .w3tcps_metric_title {
  37. font-size: 14px;
  38. }
  39. .w3tcps_metric_title,
  40. .w3tcps_metric_stats {
  41. padding: 8px 5px;
  42. margin: 0;
  43. text-align: left;
  44. }
  45. .w3tcps_loading {
  46. text-align: center;
  47. }
  48. .w3tcps_content {
  49. padding: 15px;
  50. }
  51. .w3tcps_range {
  52. font-family: unset;
  53. font-size: 14px;
  54. display: inline-flex;
  55. vertical-align: middle;
  56. align-items: center;
  57. font-family: 'Roboto Mono', 'Menlo', 'dejavu sans mono', 'Consolas', 'Lucida Console', monospace;
  58. }
  59. .w3tcps_range::before {
  60. content: '';
  61. width: 14px;
  62. height: 14px;
  63. display: inline-block;
  64. margin: 0 14px 0 6px;
  65. }
  66. .w3tcps_fail::before {
  67. width: 0px;
  68. margin: -14px 14px 0 6px;
  69. border-left: calc(14px / 2) solid transparent;
  70. border-right: calc(14px / 2) solid transparent;
  71. border-bottom: 14px solid #f33;
  72. }
  73. .w3tcps_average::before {
  74. background: #fa3;
  75. width: calc(14px * 0.88);
  76. height: calc(14px * 0.88);
  77. }
  78. .w3tcps_pass::before {
  79. border-radius: 100%;
  80. background: #0c6;
  81. }
  82. #w3tcps_legend {
  83. text-align: center;
  84. }
  85. .w3tcps_gauge_desktop,
  86. .w3tcps_gauge_mobile {
  87. display: inline-block;
  88. }
  89. .gauge {
  90. position: relative;
  91. border-radius: 50%/100% 100% 0 0;
  92. background-color: var(--color, #a22);
  93. overflow: hidden;
  94. display: inline-flex;
  95. margin: 0 10px;
  96. }
  97. .gauge:before{
  98. content: "";
  99. display: block;
  100. padding-top: 50%;
  101. }
  102. .gauge .mask {
  103. position: absolute;
  104. left: 20%;
  105. right: 20%;
  106. bottom: 0;
  107. top: 40%;
  108. background-color: #ffffff;
  109. border-radius: 50%/100% 100% 0 0;
  110. }
  111. .gauge .percentage {
  112. position: absolute;
  113. top: -1px;
  114. left: -1px;
  115. bottom: 0;
  116. right: -1px;
  117. background-color: var(--background, #aaa);
  118. transform:rotate(var(--rotation));
  119. transform-origin: bottom center;
  120. transition-duration: 600;
  121. }
  122. .gauge .value {
  123. position:absolute;
  124. bottom:0%;
  125. left:0;
  126. width:100%;
  127. text-align: center;
  128. }
  129. @media only screen and (max-width: 1200px) {
  130. .w3tcps_metric {
  131. width: 50%;
  132. }
  133. }
  134. @media only screen and (max-width: 782px) {
  135. .w3tcps_metric {
  136. width: 50%;
  137. }
  138. .w3tcps_metric > * {
  139. text-align: center;
  140. }
  141. }