CSS for coronabuddy

@require library

Versione datata 23/05/2020. Vedi la nuova versione l'ultima versione.

Questo script non dovrebbe essere installato direttamente. È una libreria per altri script da includere con la chiave // @require https://update.sleazyfork.org/scripts/403974/808203/CSS%20for%20coronabuddy.js

  1. // CSS rules for coronabuddy
  2.  
  3. var darkCSS = /*css*/ `
  4. @import url('https://fonts.googleapis.com/css?family=Press+Start+2P&display=swap');
  5.  
  6. ::selection {
  7. background: #B4D5FE;
  8. }
  9.  
  10. ::-moz-selection {
  11. background: #B4D5FE;
  12. }
  13.  
  14. blockquote {
  15. border: 1px solid linen !important;
  16. }
  17.  
  18. html:not(root) body {
  19. background-color: #121212 !important;
  20. }
  21.  
  22. html:not(root) div {
  23. border: 0px !important;
  24. }
  25.  
  26. html:not(root) p {
  27. color: white !important;
  28. }
  29.  
  30. #af-wrapper a {
  31. color: lime !important;
  32. outline: 0;
  33. }
  34.  
  35. #af-wrapper small .profile-link {
  36. /* This fixes a critical bug with the forum addon that seems to allow arbitrarily long user names without truncation, breaking UX */
  37. display: inline-block !important;
  38. vertical-align: bottom !important;
  39. max-width: 5vw !important;
  40. max-height: 2em;
  41. overflow: hidden;
  42. white-space: nowrap;
  43. text-overflow: ellipsis;
  44. }
  45.  
  46. #af-wrapper .forum-description {
  47. color: linen;
  48. }
  49.  
  50. #af-wrapper #forum-header {
  51. background-color: #006600 !important;
  52. }
  53.  
  54. #af-wrapper #forum-navigation a {
  55. border-color: green !important;
  56. }
  57.  
  58. #af-wrapper .pages > strong {
  59. background-color: rgba(50, 255, 50, 0.6) !important;
  60. color: linen !important;
  61. }
  62.  
  63. #af-wrapper #profile-content {
  64. background-color: #232323 !important;
  65. color: linen !important;
  66. }
  67.  
  68. #af-wrapper #profile-layer {
  69. background-color: #232323 !important;
  70. }
  71.  
  72. #af-wrapper #profile-navigation {
  73. /* Override random !important in the WP CSS */
  74. background-color: green !important;
  75. }
  76.  
  77. #af-wrapper #profile-navigation a.active {
  78. /* Override random !important in the WP CSS */
  79. background-color: #006600 !important;
  80. }
  81.  
  82. #af-wrapper .button-normal {
  83. /* Override random !important in the WP CSS */
  84. background-color: #006600 !important;
  85. border: 0px;
  86. }
  87.  
  88. #af-wrapper .content-element:nth-child(2n):not(.topic-sticky) {
  89. background-color: #121212 !important;
  90. }
  91.  
  92. #af-wrapper .topic-sticky {
  93. background-color: #121212 !important;
  94. border-left: none !important;
  95. border-right: none !important;
  96. border-top: none !important;
  97. }
  98.  
  99. #af-wrapper .topic-sticky .fa-comments {
  100. color: tomato !important;
  101. }
  102.  
  103. #af-wrapper .topic-sticky .topic-name > a {
  104. color: #d6203b !important;
  105. font-weight: 700 !important;
  106. }
  107.  
  108. #af-wrapper .editor-row-subject {
  109. background-color: black !important;
  110. color: gray !important;
  111. }
  112.  
  113. #af-wrapper .editor-row-subject > span > input {
  114. background-color: #232323 !important;
  115. color: linen !important;
  116. }
  117.  
  118.  
  119. #af-wrapper .forum-post-menu a {
  120. color: green !important;
  121. }
  122.  
  123. #af-wrapper .pages {
  124. background-color: #232323 !important;
  125. border-color: gray !important;
  126. border: 1px solid gray !important;
  127. }
  128.  
  129. #af-wrapper .pages > a {
  130. border-right: 1px solid gray !important;
  131. border-left: 1px solid gray !important;
  132. color: lime !important;
  133. }
  134.  
  135. #af-wrapper .pages a:hover {
  136. background-color: lime !important;
  137. color: black !important;
  138. }
  139.  
  140. #af-wrapper .pages strong {
  141. border-right: none;
  142. color: black !important;
  143. }
  144.  
  145. #af-wrapper .post-author .topic-author {
  146. color: red !important;
  147. font-weight: 900;
  148. font-size: 1.1em;
  149. -webkit-text-stroke: 1px black !important;
  150. }
  151.  
  152. #af-wrapper .post-message > blockquote::after {
  153. background: linear-gradient(rgba(0, 0, 0, 0), rgba(249, 249, 249, .4)) !important;
  154. }
  155.  
  156. #af-wrapper .post-element {
  157. border: 2px gray solid !important;
  158. }
  159.  
  160. #af-wrapper .title-element {
  161. background-color: #006600 !important;
  162. }
  163.  
  164. #af-wrapper .topic-sticky .topic-poster {
  165. border-left: 0px;
  166. background: none !important;
  167. }
  168.  
  169. #af-wrapper .unread {
  170. color: lime !important;
  171. }
  172.  
  173. #forum-breadcrumbs > span > a > span {
  174. color: linen;
  175. }
  176.  
  177. #forum-search {
  178. background-color: #232323 !important;
  179. }
  180.  
  181. #poll-panel {
  182. background-color: #000000 !important;
  183. color: linen !important;
  184. }
  185.  
  186. #read-unread {
  187. display: none !important;
  188. }
  189.  
  190. .avatar {
  191. border: none !important;
  192. }
  193.  
  194. .background-contrast {
  195. background-color: #232323 !important;
  196. }
  197.  
  198. .content-container {
  199. background-color: #232323 !important;
  200. border-color: black !important;
  201. }
  202.  
  203. .dark .site-container {
  204. background-color: #121212 !important;
  205. }
  206.  
  207. .editor-row {
  208. background-color: #121212 !important;
  209. }
  210.  
  211. .forum {
  212. border-bottom: 0px !important;
  213. }
  214.  
  215. .forum-editor-button {
  216. border: none !important;
  217. }
  218.  
  219. .forum-poster {
  220. border-left: 0px !important;
  221. }
  222.  
  223. .forum-post-date:after {
  224. content: '';
  225. width: 40vw !important;
  226. height: 1px !important;
  227. display: block;
  228. position: absolute;
  229. border-bottom: 1px solid gray !important;
  230. }
  231.  
  232. .forum-post-header {
  233. border-color: gray !important;
  234. }
  235.  
  236. .footer-widgets {
  237. background-color: #232323;
  238. }
  239.  
  240. .mce-container-body {
  241. background-color: #121212 !important;
  242. }
  243.  
  244. .poll-result-numbers {
  245. color: linen !important;
  246. }
  247.  
  248. .poll-result-total {
  249. color: linen !important;
  250. }
  251.  
  252. .post-counter {
  253. color: linen;
  254. }
  255.  
  256. .post-element {
  257. background-color: #232323 !important;
  258. }
  259.  
  260. .post-wrapper {
  261. background-color: #121212 !important;
  262. color: linen !important;
  263. border: 0px !important;
  264. border-right: 1px gray solid !important;
  265. }
  266.  
  267. .quotetitle {
  268. color: linen;
  269. }
  270.  
  271. .reaction.up:hover {
  272. color: lime !important;
  273. }
  274.  
  275. .reaction.up > .reaction-icon {
  276. color: lime !important;
  277. }
  278.  
  279. .reaction.up > .reaction-icon.reaction-inactive {
  280. color: gray !important;
  281. }
  282.  
  283. .reaction.up > .reaction-number {
  284. color: lime !important;
  285. }
  286.  
  287. .reaction.down:hover {
  288. color: red !important;
  289. }
  290.  
  291. .reaction.down > .reaction-icon {
  292. color: red !important;
  293. }
  294.  
  295. .reaction.down > .reaction-icon.reaction-inactive {
  296. color: gray !important;
  297. }
  298. .reaction.down > .reaction-number {
  299. color: red !important;
  300. }
  301.  
  302. .spoiler-head {
  303. background-color: black !important;
  304. border: 1px solid linen !important;
  305. }
  306.  
  307. .topic {
  308. border-bottom: 0px !important;
  309. }
  310.  
  311. .topic-poster {
  312. border-left: 0px !important;
  313. }
  314.  
  315. .popup {
  316. position: relative;
  317. }
  318.  
  319. .popup__banner {
  320. background-color: $black;
  321. height: 2.5em;
  322. margin-top: 2em;
  323. box-shadow: 0px 2px 4px -1px rgba(0,0,0,0.2), 0px 4px 5px 0px rgba(0,0,0,0.14), 0px 1px 10px 0px rgba(0,0,0,0.12);
  324. }
  325.  
  326. .popup__banner--text {
  327. color: lime !important;
  328. font-size: 0.8em;
  329. font-family: 'Press Start 2P', cursive;
  330. text-align: center;
  331. }
  332.  
  333. .popup__textarea {
  334. color: lime !important;
  335. background-color: black !important;
  336. font-size: 1.1em;
  337. padding: 0.5em 0.5em 0.5em 0.5em;
  338. width: 60%;
  339. height: 20em;
  340. resize: none;
  341. margin-bottom: 0.3em;
  342. margin-top: 1em;
  343. }
  344.  
  345. .popup__textarea:focus {
  346. outline: none;
  347. }
  348.  
  349. .popup__button {
  350. background-color: rgb(45, 45, 45);
  351. width: 50%;
  352. height: 3em;
  353. border: 0px solid lime !important;
  354. font-size: 1em;
  355. display: block;
  356. margin: 0 auto;
  357. border: none;
  358. box-shadow: 0px 1px 5px 0px rgba(0,0,0,0.2), 0px 2px 2px 0px rgba(0,0,0,0.14), 0px 3px 1px -2px rgba(0,0,0,0.12);
  359. transition: border 0.3s;
  360.  
  361. }
  362.  
  363. .popup__button:focus {
  364. outline: none;
  365. }
  366.  
  367. .popup__button:hover {
  368. border: 4px solid lime !important;
  369. transition: border 0.3s;
  370. }
  371.  
  372. .popup__button:active {
  373. background-color: lime !important;
  374.  
  375. }
  376.  
  377. .popup__button--invert {
  378. background-color: lime !important;
  379. color: $black !important;
  380. }
  381.  
  382. .popup__button--black {
  383. background-color: rgb(45, 45, 45);
  384. }
  385.  
  386. .popup__button--center {
  387. display: block;
  388. text-align: center;
  389. }
  390.  
  391. .popup__button--text {
  392. color: lime !important;
  393. font-weight: 500;
  394. font-family: 'Press Start 2P', cursive;
  395. margin: 0;
  396. font-size: 0.5em;
  397. &:active {
  398. color: $black !important;
  399. }
  400. }
  401.  
  402. .popup__button--save {
  403. margin-bottom: 0.5em;
  404. }
  405.  
  406. .popup__button--clear {
  407. }
  408.  
  409. .popup__notification {
  410. color: $red;
  411. font-weight: 700;
  412. margin-top: 0.5em;
  413. }
  414.  
  415. .popup__darkmode {
  416. margin-top: 1em;
  417. text-align: center;
  418. }
  419.  
  420. .popup__darkmode--text {
  421. display: inline-block;
  422. color: lime !important;
  423. font-size: 0.6em;
  424. font-family: 'Press Start 2P', cursive;
  425. margin-right: 0.5em;
  426. }
  427.  
  428. .popup__darkmode--checkbox {
  429. display: inline-block;
  430. height: 0.8em;
  431. width: 0.8em;
  432. background-color: #555;
  433. border-radius: 0.1em;
  434. margin-bottom: -0.08em;
  435. user-select: none;
  436. }
  437.  
  438. .popup__darkmode--checkbox--check:after {
  439. content: '✓';
  440. position: absolute;
  441. color: lime !important;
  442. font-size: 0.6em;
  443. font-weight: 900;
  444. margin-left: -0.42em;
  445. margin-top: 0.1em;
  446. }
  447. `;