akismet-admin.css 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378
  1. #akismet-plugin-container {
  2. background-color: var(--akismet-color-light-grey);
  3. font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen-Sans', 'Ubuntu', 'Cantarell', 'Helvetica Neue', sans-serif;
  4. --akismet-color-charcoal: #272635;
  5. --akismet-color-light-grey: #f6f7f7;
  6. --akismet-color-mid-grey: #a7aaad;
  7. --akismet-color-dark-grey: #646970;
  8. --akismet-color-grey-80: #2c3338;
  9. --akismet-color-grey-100: #101517;
  10. --akismet-color-white: #fff;
  11. --akismet-color-mid-green: #357b49;
  12. --akismet-color-mid-red: #e82c3f;
  13. --akismet-color-light-blue: #256eff;
  14. --akismet-color-notice-light-green: #dbf0e1;
  15. --akismet-color-notice-dark-green: #69bf82;
  16. --akismet-color-notice-light-red: #ffdbde;
  17. --akismet-color-notice-dark-red: #ff6676;
  18. }
  19. #akismet-plugin-container a {
  20. color: var(--akismet-color-mid-green);
  21. }
  22. #akismet-plugin-container button:focus-visible,
  23. #akismet-plugin-container input:focus-visible {
  24. border: 0;
  25. box-shadow: none;
  26. outline: 2px solid var(--akismet-color-light-blue);
  27. }
  28. .akismet-masthead {
  29. box-shadow: none;
  30. }
  31. .akismet-masthead__logo {
  32. margin: 20px 0;
  33. }
  34. .akismet-section-header {
  35. box-shadow: none;
  36. margin-bottom: 0;
  37. }
  38. .akismet-section-header__label {
  39. color: var(--akismet-color-charcoal);
  40. font-weight: 600;
  41. }
  42. .akismet-button, .akismet-button:hover {
  43. background-color: var(--akismet-color-mid-green);
  44. border: 0;
  45. color: #fff;
  46. }
  47. /* Need this specificity to override the existing header rule */
  48. .akismet-new-snapshot h3.akismet-new-snapshot__header {
  49. background: none;
  50. font-size: 13px;
  51. color: var(--akismet-color-charcoal);
  52. text-align: left;
  53. text-transform: none;
  54. }
  55. .akismet-new-snapshot .akismet-new-snapshot__number {
  56. color: var(--akismet-color-charcoal);
  57. letter-spacing: -1px;
  58. text-align: left;
  59. }
  60. .akismet-new-snapshot li.akismet-new-snapshot__item {
  61. color: var(--akismet-color-dark-grey);
  62. font-size: 13px;
  63. text-align: left;
  64. text-transform: none;
  65. }
  66. .akismet-masthead__logo-link {
  67. min-height: 50px;
  68. }
  69. .akismet-masthead__back-link-container {
  70. margin-top: 16px;
  71. margin-bottom: 2px;
  72. }
  73. /* Need this specificity to override the existing link rule */
  74. #akismet-plugin-container a.akismet-masthead__back-link {
  75. background-image: url(img/arrow-left.svg);
  76. background-position: left;
  77. background-repeat: no-repeat;
  78. background-size: 16px;
  79. color: var(--akismet-color-charcoal);
  80. font-weight: 400;
  81. padding-left: 20px;
  82. text-decoration: none;
  83. }
  84. #akismet-plugin-container a.akismet-masthead__back-link:hover {
  85. text-decoration: underline;
  86. }
  87. .akismet-new-snapshot__item {
  88. border-top: 1px solid var(--akismet-color-light-grey);
  89. border-left: 1px solid var(--akismet-color-light-grey);
  90. padding: 1em;
  91. }
  92. .akismet-new-snapshot li:first-child {
  93. border-left: none;
  94. }
  95. .akismet-new-snapshot__list {
  96. display: flex;
  97. margin-bottom: 0;
  98. }
  99. .akismet-new-snapshot__item {
  100. flex: 1 0 33.33%;
  101. margin-bottom: 0;
  102. padding-left: 1.5em;
  103. padding-right: 1.5em;
  104. }
  105. .akismet-new-snapshot__chart {
  106. padding: 1em;
  107. }
  108. .akismet-box {
  109. border: 0;
  110. }
  111. .akismet-box,
  112. .akismet-card {
  113. box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06), 0 0 2px rgba(0, 0, 0, 0.16);
  114. border-radius: 8px;
  115. overflow: hidden;
  116. }
  117. .akismet-card {
  118. margin: 32px auto 0 auto;
  119. }
  120. .akismet-lower {
  121. padding-top: 0;
  122. }
  123. .akismet-lower .inside {
  124. padding: 0;
  125. }
  126. .akismet-section-header__label {
  127. margin: 0;
  128. }
  129. .akismet-settings__row {
  130. border-bottom: 1px solid var(--akismet-color-light-grey);
  131. display: block;
  132. padding: 1em 1.5em;
  133. }
  134. .akismet-settings__row-input {
  135. margin-left: auto;
  136. }
  137. .akismet-settings__row-title {
  138. font-weight: 500;
  139. font-size: 1em;
  140. margin: 0;
  141. margin-bottom: 1em;
  142. }
  143. .akismet-settings__row-description {
  144. margin-top: 0.5em;
  145. }
  146. .akismet-card-actions {
  147. display: flex;
  148. justify-content: flex-end;
  149. padding: 1em;
  150. }
  151. .akismet-card-actions__secondary-action {
  152. align-self: center;
  153. margin-right: auto;
  154. }
  155. .akismet-card-actions__secondary-action a[target="_blank"]::after {
  156. background: url('img/icon-external.svg') no-repeat;
  157. background-size: contain;
  158. content: "";
  159. display: inline-block;
  160. height: 16px;
  161. margin-left: 5px;
  162. vertical-align: middle;
  163. width: 16px;
  164. }
  165. .akismet-settings__row label {
  166. padding-bottom: 1em;
  167. }
  168. .akismet-settings__row-note {
  169. font-size: 0.9em;
  170. margin-top: 0.4em;
  171. }
  172. .akismet-settings__row input[type="checkbox"],
  173. .akismet-settings__row input[type="radio"] {
  174. accent-color: var(--akismet-color-mid-green);
  175. box-shadow: none;
  176. flex-shrink: 0;
  177. margin: 2px 0 0 0;
  178. }
  179. .akismet-settings__row input[type="checkbox"] {
  180. margin-top: 1px;
  181. vertical-align: top;
  182. -webkit-appearance: checkbox;
  183. }
  184. .akismet-settings__row input[type="radio"] {
  185. -webkit-appearance: radio;
  186. }
  187. /* Fix up misbehaving wp-admin styles in Chrome (from forms and colors stylesheets) */
  188. .akismet-settings__row input[type="checkbox"]:checked:before {
  189. content: '';
  190. }
  191. .akismet-settings__row input[type="radio"]:checked:before {
  192. background: none;
  193. }
  194. .akismet-settings__row input[type="checkbox"]:checked:hover,
  195. .akismet-settings__row input[type="radio"]:checked:hover {
  196. accent-color: var(--akismet-color-mid-green);
  197. }
  198. .akismet-button:disabled {
  199. background-color: var(--akismet-color-mid-grey);
  200. color: var(--akismet-color-white);
  201. cursor: arrow;
  202. }
  203. .akismet-awaiting-stats,
  204. .akismet-account {
  205. padding: 0 1rem 1rem 1rem;
  206. margin: 0;
  207. }
  208. .akismet-account {
  209. padding-bottom: 0;
  210. }
  211. .akismet-account th {
  212. font-weight: 500;
  213. padding-right: 1em;
  214. }
  215. .akismet-account th, .akismet-account td {
  216. padding-bottom: 1em;
  217. }
  218. .akismet-settings__row-input-label {
  219. align-items: center;
  220. display: flex;
  221. }
  222. .akismet-settings__row-label-text {
  223. padding-left: 0.5em;
  224. margin-top: 2px;
  225. }
  226. .akismet-alert {
  227. border-left: 8px solid;
  228. border-radius: 8px;
  229. margin: 20px 0;
  230. padding: 0.2em 1em;
  231. }
  232. .akismet-alert__heading {
  233. font-size: 1em;
  234. }
  235. .akismet-alert.is-good {
  236. background-color: var(--akismet-color-notice-light-green);
  237. border-left-color: var(--akismet-color-notice-dark-green);
  238. }
  239. .akismet-alert.is-neutral {
  240. background-color: var(--akismet-color-white);
  241. border-left-color: var(--akismet-color-dark-grey);
  242. }
  243. .akismet-alert.is-bad {
  244. background-color: var(--akismet-color-notice-light-red);
  245. border-left-color: var(--akismet-color-notice-dark-red);
  246. }
  247. #akismet-plugin-container .akismet-alert.is-good a,
  248. #akismet-plugin-container .akismet-alert.is-bad a {
  249. /* For better contrast - green isn't great */
  250. color: var(--akismet-color-grey-80);
  251. }
  252. /* Setup - API key input */
  253. .akismet-enter-api-key-box {
  254. margin: 1.5rem 0;
  255. }
  256. .akismet-enter-api-key-box__reveal {
  257. background: none;
  258. border: 0;
  259. color: var(--akismet-color-mid-green);
  260. cursor: pointer;
  261. text-decoration: underline;
  262. }
  263. .akismet-enter-api-key-box__form-wrapper {
  264. display: none;
  265. margin-top: 1.5rem;
  266. }
  267. .akismet-enter-api-key-box__input-wrapper {
  268. box-sizing: border-box;
  269. display: flex;
  270. flex-wrap: nowrap;
  271. padding: 0 1.5rem;
  272. width: 100%;
  273. }
  274. .akismet-enter-api-key-box__key-input {
  275. flex-grow: 1;
  276. margin-right: 1rem;
  277. }
  278. h3.akismet-enter-api-key-box__header {
  279. padding-top: 0;
  280. padding-bottom: 1em;
  281. text-align: left;
  282. }
  283. @media screen and (max-width: 782px) {
  284. .akismet-new-snapshot__list {
  285. display: block;
  286. }
  287. .akismet-new-snapshot__number {
  288. float: right;
  289. font-size: 20px;
  290. font-weight: 500;
  291. margin-top: -16px;
  292. }
  293. .akismet-new-snapshot__header {
  294. font-size: 14px;
  295. font-weight: 500;
  296. }
  297. .akismet-new-snapshot__text {
  298. font-size: 12px;
  299. }
  300. .akismet-settings__row input[type="checkbox"],
  301. .akismet-settings__row input[type="radio"] {
  302. height: 24px;
  303. width: 24px;
  304. }
  305. .akismet-settings__row-label-text {
  306. padding-left: 0.8em;
  307. }
  308. .akismet-settings__row input[type="checkbox"],
  309. .akismet-settings__row input[type="radio"] {
  310. margin-top: 0;
  311. }
  312. }