Midnight Cyan Greasyfork 1.31

changes the color theme of the page to cool dark colors.

  1. // ==UserScript==
  2. // @name Midnight Cyan Greasyfork 1.31
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.31
  5. // @description changes the color theme of the page to cool dark colors.
  6. // @author Gullampis810
  7. // @license MIT
  8. // @match https://gf.qytechs.cn/*
  9. // @icon https://banner2.cleanpng.com/20180702/xb/kisspng-circle-royalty-free-clip-art-5b39bbb7639994.770051931530510263408.jpg
  10. // @grant GM_addStyle
  11. // ==/UserScript==
  12.  
  13.  
  14.  
  15.  
  16. (function() {
  17. 'use strict';
  18.  
  19. GM_addStyle(`
  20. body {
  21. background: linear-gradient(44deg, #0d141d 88%, #3d2a45 56%, #764a0a 100%);
  22. background-size: 100% 500%;
  23. }
  24.  
  25. #main-header {
  26. background-color: #2A3545;
  27. background-image: linear-gradient(1deg, #1e2a3c, #463048) !important;
  28. box-shadow: 0 0 15px 2px rgba(0, 0, 0, 0.6) !important;
  29. padding: .25em 0 !important;
  30. }
  31.  
  32. p#version-note {
  33. color: #639eb3 !important;
  34. background: #143b28 !important;
  35. }
  36.  
  37.  
  38. /* Общие стили для всех радио и чекбоксов */
  39. input[type="radio"],
  40. input[type="checkbox"] {
  41. appearance: none;
  42. -webkit-appearance: none;
  43. width: 20px;
  44. height: 20px;
  45. border: 2px solid #1C2526; /* Темно-синий бордер */
  46. border-radius: 50%; /* Круглая форма для радио */
  47. background-color: #2E3839; /* Темно-синий фон */
  48. margin: 5px;
  49. cursor: pointer;
  50. position: relative;
  51. }
  52.  
  53. /* Специфично для чекбоксов */
  54. input[type="checkbox"] {
  55. border-radius: 4px; /* Прямоугольная форма для чекбоксов */
  56. }
  57.  
  58. /* Hover эффект */
  59. input[type="radio"]:hover,
  60. input[type="checkbox"]:hover {
  61. border-color: #4A90E2; /* Голубо-синий при наведении */
  62. }
  63.  
  64. /* Checked состояние */
  65. input[type="radio"]:checked,
  66. input[type="checkbox"]:checked {
  67. border-color: #4A90E2; /* Голубо-синий бордер */
  68. }
  69.  
  70. /* Радио-кнопка: внутренний круг при выборе */
  71. input[type="radio"]:checked:after {
  72. content: '';
  73. position: absolute;
  74. width: 10px;
  75. height: 10px;
  76. background-color: #28a745;
  77. border-radius: 50%;
  78. top: 50%;
  79. left: 50%;
  80. transform: translate(-50%, -50%);
  81. }
  82.  
  83. /* Чекбокс: галочка при выборе */
  84. input[type="checkbox"]:checked:after {
  85. content: '✔';
  86. position: absolute;
  87. color: #FFFFFF; /* Белая галочка */
  88. font-size: 14px;
  89. top: 50%;
  90. left: 50%;
  91. transform: translate(-50%, -50%);
  92. }
  93.  
  94. /* Active состояние при нажатии */
  95. input[type="radio"]:active,
  96. input[type="checkbox"]:active {
  97. border-color: #357ABD; /* Более темный голубо-синий */
  98. background-color: #357ABD;
  99. }
  100.  
  101. /* Для required элементов */
  102. input:required {
  103. box-shadow: 0 0 2px #4A90E2;
  104. background: #0f151f;
  105. }
  106.  
  107. /* Специфические стили для каждого ID при необходимости */
  108. #script_script_type_3,
  109. #script_adult_content_self_report,
  110. #script_version_additional_info_0_value_markup_markdown,
  111. #script_version_additional_info_0_value_markup_html {
  112. vertical-align: middle;
  113. }
  114.  
  115.  
  116. input[type="radio"][name="comment[text_markup]"] {
  117. appearance: none !important; /* Убираем стандартный вид радиокнопки */
  118. width: 20px !important; /* Размер кастомной радиокнопки */
  119. height: 20px !important;
  120. background-color: #0f151f !important; /* Темный фон */
  121. border: 2px solid #344b71 !important; /* Граница */
  122. border-radius: 50% !important; /* Круглая форма */
  123. cursor: pointer !important; /* Курсор-указатель */
  124. position: relative !important; /* Для позиционирования псевдоэлемента */
  125. transition: all 0.3s ease !important; /* Плавные переходы */
  126. margin: 0 5px 0 0 !important; /* Отступы для выравнивания с label */
  127. vertical-align: middle !important; /* Выравнивание с текстом */
  128. }
  129.  
  130. /* Псевдоэлемент для отметки выбора */
  131. input[type="radio"][name="comment[text_markup]"]:checked::after {
  132. content: '' !important;
  133. position: absolute !important;
  134. top: 50% !important;
  135. left: 50% !important;
  136. width: 10px !important; /* Размер внутренней точки */
  137. height: 10px !important;
  138. background-color: #344b71 !important; /* Цвет при выборе */
  139. border-radius: 50% !important;
  140. transform: translate(-50%, -50%) !important; /* Центрирование */
  141. }
  142.  
  143. /* Эффект наведения */
  144. input[type="radio"][name="comment[text_markup]"]:hover:not(:checked) {
  145. background-color: #141c2a !important; /* Легкое осветление при наведении */
  146. }
  147.  
  148. /* Состояние фокуса */
  149. input[type="radio"][name="comment[text_markup]"]:focus {
  150. outline: none !important; /* Убираем стандартный outline */
  151. box-shadow: 0 0 5px rgba(52, 75, 113, 0.5) !important; /* Тень при фокусе */
  152. }
  153.  
  154. /* Стили для меток (label) */
  155. input[type="radio"][name="comment[text_markup]"] + label {
  156. color: #344b71 !important; /* Цвет текста */
  157. font-size: 16px !important; /* Размер шрифта */
  158. cursor: pointer !important; /* Курсор-указатель */
  159. vertical-align: middle !important; /* Выравнивание с радиокнопкой */
  160. transition: color 0.3s ease !important; /* Плавный переход цвета */
  161. }
  162.  
  163. /* Метка при выбранной радиокнопке */
  164. input[type="radio"][name="comment[text_markup]"]:checked + label {
  165. color: #ffffff !important; /* Белый цвет при выборе */
  166. }
  167.  
  168. /* Эффект наведения на метку */
  169. input[type="radio"][name="comment[text_markup]"] + label:hover {
  170. color: #ffffff !important; /* Белый цвет при наведении */
  171. }
  172.  
  173. input[type="radio"][name="comment[discussion][rating]"] {
  174. appearance: none !important; /* Убираем стандартный вид радиокнопки */
  175. width: 20px !important; /* Размер кастомной радиокнопки */
  176. height: 20px !important;
  177. background-color: #0f151f !important; /* Темный фон */
  178. border: 2px solid #344b71 !important; /* Граница */
  179. border-radius: 50% !important; /* Круглая форма */
  180. cursor: pointer !important; /* Курсор-указатель */
  181. position: relative !important; /* Для позиционирования псевдоэлемента */
  182. transition: all 0.3s ease !important; /* Плавные переходы */
  183. margin: 0 5px 0 0 !important; /* Отступы для выравнивания с label */
  184. vertical-align: middle !important; /* Выравнивание с текстом */
  185. }
  186.  
  187. /* Псевдоэлемент для отметки выбора */
  188. input[type="radio"][name="comment[discussion][rating]"]:checked::after {
  189. content: '' !important;
  190. position: absolute !important;
  191. top: 50% !important;
  192. left: 50% !important;
  193. width: 10px !important; /* Размер внутренней точки */
  194. height: 10px !important;
  195. background-color: #344b71 !important; /* Цвет при выборе */
  196. border-radius: 50% !important;
  197. transform: translate(-50%, -50%) !important; /* Центрирование */
  198. }
  199.  
  200. /* Эффект наведения */
  201. input[type="radio"][name="comment[discussion][rating]"]:hover:not(:checked) {
  202. background-color: #141c2a !important; /* Легкое осветление при наведении */
  203. }
  204.  
  205. /* Состояние фокуса */
  206. input[type="radio"][name="comment[discussion][rating]"]:focus {
  207. outline: none !important; /* Убираем стандартный outline */
  208. box-shadow: 0 0 5px rgba(52, 75, 113, 0.5) !important; /* Тень при фокусе */
  209. }
  210.  
  211. /* Стили для меток (label) */
  212. input[type="radio"][name="comment[discussion][rating]"] + label {
  213. color: #344b71 !important; /* Цвет текста */
  214. font-size: 16px !important; /* Размер шрифта */
  215. cursor: pointer !important; /* Курсор-указатель */
  216. vertical-align: middle !important; /* Выравнивание с радиокнопкой */
  217. transition: color 0.3s ease !important; /* Плавный переход цвета */
  218. }
  219.  
  220. /* Метка при выбранной радиокнопке */
  221. input[type="radio"][name="comment[discussion][rating]"]:checked + label {
  222. color: #ffffff !important; /* Белый цвет при выборе */
  223. }
  224.  
  225. /* Эффект наведения на метку */
  226. input[type="radio"][name="comment[discussion][rating]"] + label:hover {
  227. color: #ffffff !important; /* Белый цвет при наведении */
  228. }
  229.  
  230.  
  231.  
  232. #comment_attachments {
  233. background-color: #0f151f !important; /* Темный фон */
  234. color: #344b71 !important; /* Цвет текста */
  235. border: 2px solid #344b71 !important; /* Граница */
  236. padding: 8px 15px !important; /* Отступы */
  237. border-radius: 4px !important; /* Скругленные углы */
  238. font-size: 16px !important; /* Размер шрифта */
  239. width: 100% !important; /* Ширина */
  240. max-width: 300px !important; /* Максимальная ширина */
  241. cursor: pointer !important; /* Курсор-указатель */
  242. transition: all 0.3s ease !important; /* Плавные переходы */
  243. }
  244.  
  245. /* Стили для кнопки "Choose files" внутри input */
  246. #comment_attachments::-webkit-file-upload-button {
  247. background-color: #344b71 !important; /* Цвет кнопки */
  248. color: #ffffff !important; /* Белый текст */
  249. border: none !important; /* Без границы */
  250. padding: 6px 12px !important; /* Отступы кнопки */
  251. border-radius: 4px !important; /* Скругленные углы */
  252. font-size: 14px !important; /* Размер шрифта кнопки */
  253. cursor: pointer !important; /* Курсор-указатель */
  254. transition: background-color 0.3s ease !important; /* Плавный переход */
  255. }
  256.  
  257. /* Эффект наведения на кнопку "Choose files" */
  258. #comment_attachments:hover::-webkit-file-upload-button {
  259. background-color: #1a2230 !important; /* Чуть светлее при наведении */
  260. }
  261.  
  262. /* Стили для фокуса */
  263. #comment_attachments:focus {
  264. outline: none !important; /* Убираем стандартный outline */
  265. border-color: #344b71 !important; /* Усиливаем цвет границы */
  266. box-shadow: 0 0 5px rgba(52, 75, 113, 0.5) !important; /* Тень при фокусе */
  267. }
  268.  
  269. /* Ховер для всего элемента */
  270. #comment_attachments:hover {
  271. background-color: #141c2a !important; /* Легкое осветление фона */
  272. }
  273.  
  274.  
  275.  
  276. input[type="submit"] {
  277. background-color: #0f151f;
  278. color: #3f93b3 !important;
  279. padding: 12px 24px !important;
  280. border: none !important;
  281. border-radius: 4px !important;
  282. cursor: pointer !important;
  283. font-size: 16px !important;
  284. font-weight: bold !important;
  285. transition: background-color 0.3s ease !important;
  286. }
  287.  
  288. input[type="submit"]:hover {
  289. background-color: #344b71 !important; /* Более темный зеленый при наведении */
  290. }
  291.  
  292. input[type="submit"]:disabled {
  293. background-color: #cccccc !important; /* Серый цвет для отключенной кнопки */
  294. cursor: not-allowed !important; /* Курсор "запрещено" */
  295. opacity: 0.7 !important; /* Полупрозрачность */
  296. }
  297.  
  298.  
  299.  
  300.  
  301. #promoted_script_id {
  302. background-color: #0f151f !important; /* Темный фон */
  303. color: #344b71 !important; /* Цвет текста */
  304. border: 2px solid #344b71 !important; /* Граница среднего тона */
  305. padding: 10px 15px !important; /* Внутренние отступы */
  306. border-radius: 4px !important; /* Скругленные углы */
  307. font-size: 16px !important; /* Размер шрифта */
  308. width: 100% !important; /* Ширина на весь контейнер */
  309. max-width: 300px !important; /* Максимальная ширина */
  310. outline: none !important; /* Убираем стандартный outline */
  311. transition: all 0.3s ease !important; /* Плавные переходы */
  312. }
  313.  
  314. #promoted_script_id:focus {
  315. border-color: #344b71 !important; /* Цвет границы при фокусе */
  316. box-shadow: 0 0 5px rgba(52, 75, 113, 0.5) !important; /* Тень при фокусе */
  317. background-color: #1a2230 !important; /* Чуть светлее фон при фокусе */
  318. }
  319.  
  320. #promoted_script_id::placeholder {
  321. color: #344b71 !important; /* Цвет плейсхолдера */
  322. opacity: 0.7 !important; /* Прозрачность плейсхолдера */
  323. }
  324.  
  325. #promoted_script_id:hover:not(:focus) {
  326. background-color: #141c2a !important; /* Легкое осветление при наведении */
  327. }
  328.  
  329.  
  330.  
  331.  
  332. #add-synced-additional-info {
  333. background-color: #344b71 !important; /* Основной цвет фона */
  334. color: #ffffff !important; /* Белый текст */
  335. padding: 12px 20px !important; /* Внутренние отступы */
  336. border: 2px solid #0f151f !important; /* Темная граница */
  337. border-radius: 6px !important; /* Скругленные углы */
  338. font-size: 16px !important; /* Размер шрифта */
  339. font-weight: 500 !important; /* Средняя жирность текста */
  340. cursor: pointer !important; /* Курсор-указатель */
  341. transition: all 0.3s ease !important; /* Плавные переходы */
  342. text-align: center !important; /* Центрирование текста */
  343. }
  344.  
  345. #add-synced-additional-info:hover {
  346. background-color: #0f151f !important; /* Темный фон при наведении */
  347. color: #344b71 !important; /* Цвет текста при наведении */
  348. border-color: #344b71 !important; /* Цвет границы при наведении */
  349. }
  350.  
  351. #add-synced-additional-info:focus {
  352. outline: none !important; /* Убираем стандартный outline */
  353. box-shadow: 0 0 5px rgba(52, 75, 113, 0.7) !important; /* Тень при фокусе */
  354. }
  355.  
  356. #add-synced-additional-info:disabled {
  357. background-color: #344b71 !important; /* Цвет фона при отключении */
  358. opacity: 0.6 !important; /* Полупрозрачность */
  359. cursor: not-allowed !important; /* Курсор "запрещено" */
  360. }
  361.  
  362.  
  363.  
  364.  
  365. /* Общие стили для всех input и select */
  366. input[type="url"],
  367. input[type="number"],
  368. select[name="script[locale_id]"] {
  369. background-color: #0f151f !important; /* Темный фон */
  370. color: #344b71 !important; /* Цвет текста */
  371. border: 2px solid #344b71 !important; /* Граница */
  372. padding: 10px 15px !important; /* Отступы */
  373. border-radius: 4px !important; /* Скругленные углы */
  374. font-size: 16px !important; /* Размер шрифта */
  375. width: 100% !important; /* Ширина */
  376. max-width: 300px !important; /* Максимальная ширина */
  377. outline: none !important; /* Убираем outline */
  378. transition: all 0.3s ease !important; /* Плавные переходы */
  379. }
  380.  
  381. /* Стили для фокуса */
  382. input[type="url"]:focus,
  383. input[type="number"]:focus,
  384. select[name="script[locale_id]"]:focus {
  385. border-color: #344b71 !important;
  386. box-shadow: 0 0 5px rgba(52, 75, 113, 0.5) !important;
  387. background-color: #1a2230 !important; /* Чуть светлее при фокусе12 */
  388. }
  389.  
  390. /* Плейсхолдер */
  391. input[type="url"]::placeholder,
  392. input[type="number"]::placeholder {
  393. color: #344b71 !important;
  394. opacity: 0.7 !important;
  395. }
  396.  
  397. /* Ховер */
  398. input[type="url"]:hover:not(:focus),
  399. input[type="number"]:hover:not(:focus),
  400. select[name="script[locale_id]"]:hover:not(:focus) {
  401. background-color: #141c2a !important; /* Легкое осветление */
  402. }
  403.  
  404. /* Специфичные стили для input[type="number"] */
  405. input[type="number"] {
  406. max-width: 100px !important; /* Меньшая ширина для чисел */
  407. -moz-appearance: textfield !important; /* Убираем стрелки в Firefox */
  408. }
  409.  
  410. input[type="number"]::-webkit-inner-spin-button,
  411. input[type="number"]::-webkit-outer-spin-button {
  412. -webkit-appearance: none !important; /* Убираем стрелки в Chrome */
  413. }
  414.  
  415. /* Стили для select и option */
  416. select[name="script[locale_id]"] {
  417. appearance: none !important; /* Убираем стандартный вид */
  418. background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23344b71' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") !important;
  419. background-repeat: no-repeat !important;
  420. background-position: right 10px center !important;
  421. padding-right: 30px !important; /* Отступ для стрелки */
  422. }
  423.  
  424. select[name="script[locale_id]"] option {
  425. background-color: #0f151f !important;
  426. color: #344b71 !important;
  427. }
  428.  
  429. select[name="script[locale_id]"] option:disabled {
  430. color: #344b71 !important;
  431. opacity: 0.5 !important;
  432. }
  433.  
  434. /* Стили для required полей при ошибке */
  435. input:required:invalid {
  436. border-color: #712f34 !important; /* Красноватый оттенок для ошибки */
  437. }
  438.  
  439.  
  440.  
  441.  
  442. .preview-button {
  443. background-color: #344b71 !important; /* Основной цвет фона */
  444. color: #ffffff !important; /* Белый текст */
  445. padding: 10px 20px !important; /* Внутренние отступы */
  446. border: 2px solid #0f151f !important; /* Темная граница */
  447. border-radius: 4px !important; /* Скругленные углы */
  448. font-size: 16px !important; /* Размер шрифта */
  449. font-weight: 500 !important; /* Средняя жирность текста */
  450. cursor: pointer !important; /* Курсор-указатель */
  451. transition: all 0.3s ease !important; /* Плавные переходы */
  452. text-align: center !important; /* Центрирование текста */
  453. }
  454.  
  455. .preview-button:hover {
  456. background-color: #0f151f !important; /* Темный фон при наведении */
  457. color: #344b71 !important; /* Цвет текста при наведении */
  458. border-color: #344b71 !important; /* Цвет границы при наведении */
  459. }
  460.  
  461. .preview-button:focus {
  462. outline: none !important; /* Убираем стандартный outline */
  463. box-shadow: 0 0 5px rgba(52, 75, 113, 0.7) !important; /* Тень при фокусе */
  464. }
  465.  
  466. .preview-button:disabled {
  467. background-color: #344b71 !important; /* Цвет фона при отключении */
  468. opacity: 0.6 !important; /* Полупрозрачность */
  469. cursor: not-allowed !important; /* Курсор "запрещено" */
  470. }
  471.  
  472.  
  473.  
  474.  
  475.  
  476. #code-upload {
  477. background-color: #0f151f !important; /* Темный фон */
  478. color: #344b71 !important; /* Цвет текста */
  479. border: 2px solid #344b71 !important; /* Граница */
  480. padding: 8px 15px !important; /* Отступы (меньше, чем у других input) */
  481. border-radius: 4px !important; /* Скругленные углы */
  482. font-size: 16px !important; /* Размер шрифта */
  483. width: 100% !important; /* Ширина */
  484. max-width: 300px !important; /* Максимальная ширина */
  485. cursor: pointer !important; /* Курсор-указатель */
  486. transition: all 0.3s ease !important; /* Плавные переходы */
  487. }
  488.  
  489. /* Стили для кнопки "Choose file" внутри input */
  490. #code-upload::-webkit-file-upload-button {
  491. background-color: #344b71 !important; /* Цвет кнопки */
  492. color: #ffffff !important; /* Белый текст */
  493. border: none !important; /* Без границы */
  494. padding: 6px 12px !important; /* Отступы кнопки */
  495. border-radius: 4px !important; /* Скругленные углы */
  496. font-size: 14px !important; /* Размер шрифта кнопки */
  497. cursor: pointer !important; /* Курсор-указатель */
  498. transition: background-color 0.3s ease !important; /* Плавный переход */
  499. }
  500.  
  501. #code-upload:hover::-webkit-file-upload-button {
  502. background-color: #1a2230 !important; /* Чуть светлее при наведении */
  503. }
  504.  
  505. /* Стили для фокуса */
  506. #code-upload:focus {
  507. outline: none !important; /* Убираем стандартный outline */
  508. border-color: #344b71 !important;
  509. box-shadow: 0 0 5px rgba(52, 75, 113, 0.5) !important; /* Тень при фокусе */
  510. }
  511.  
  512. /* Ховер для всего элемента */
  513. #code-upload:hover {
  514. background-color: #141c2a !important; /* Легкое осветление */
  515. }
  516.  
  517.  
  518.  
  519.  
  520.  
  521. #script_version_attachments {
  522. background-color: #0f151f !important; /* Темный фон */
  523. color: #344b71 !important; /* Цвет текста */
  524. border: 2px solid #344b71 !important; /* Граница */
  525. padding: 8px 15px !important; /* Отступы (меньше, чем у других input) */
  526. border-radius: 4px !important; /* Скругленные углы */
  527. font-size: 16px !important; /* Размер шрифта */
  528. width: 100% !important; /* Ширина */
  529. max-width: 300px !important; /* Максимальная ширина */
  530. cursor: pointer !important; /* Курсор-указатель */
  531. transition: all 0.3s ease !important; /* Плавные переходы */
  532. }
  533.  
  534. /* Стили для кнопки "Choose files" внутри input */
  535. #script_version_attachments::-webkit-file-upload-button {
  536. background-color: #344b71 !important; /* Цвет кнопки */
  537. color: #ffffff !important; /* Белый текст */
  538. border: none !important; /* Без границы */
  539. padding: 6px 12px !important; /* Отступы кнопки */
  540. border-radius: 4px !important; /* Скругленные углы */
  541. font-size: 14px !important; /* Размер шрифта кнопки */
  542. cursor: pointer !important; /* Курсор-указатель */
  543. transition: background-color 0.3s ease !important; /* Плавный переход */
  544. }
  545.  
  546. #script_version_attachments:hover::-webkit-file-upload-button {
  547. background-color: #1a2230 !important; /* Чуть светлее при наведении */
  548. }
  549.  
  550. /* Стили для фокуса */
  551. #script_version_attachments:focus {
  552. outline: none !important; /* Убираем стандартный outline */
  553. border-color: #344b71 !important;
  554. box-shadow: 0 0 5px rgba(52, 75, 113, 0.5) !important; /* Тень при фокусе */
  555. }
  556.  
  557. /* Ховер для всего элемента */
  558. #script_version_attachments:hover {
  559. background-color: #141c2a !important; /* Легкое осветление */
  560. }
  561.  
  562.  
  563.  
  564. /* Контейнер для всех вложений */
  565. .remove-attachments {
  566. display: flex !important; /* Гибкое расположение элементов */
  567. flex-wrap: wrap !important; /* Перенос элементов при необходимости */
  568. gap: 20px !important; /* Отступы между вложениями */
  569. padding: 10px !important; /* Внутренние отступы контейнера */
  570. }
  571.  
  572. /* Отдельное вложение */
  573. .remove-attachment {
  574. background-color: #0f151f !important; /* Темный фон */
  575. border: 2px solid #344b71 !important; /* Граница */
  576. border-radius: 4px !important; /* Скругленные углы */
  577. padding: 10px !important; /* Внутренние отступы */
  578. display: flex !important; /* Гибкое расположение внутри */
  579. flex-direction: column !important; /* Вертикальная ориентация */
  580. align-items: center !important; /* Центрирование по горизонтали */
  581. width: 200px !important; /* Фиксированная ширина */
  582. }
  583.  
  584. /* Стили для изображения внутри ссылки */
  585. .remove-attachment a img {
  586. max-width: 100% !important; /* Ограничение ширины изображения */
  587. height: auto !important; /* Автоматическая высота */
  588. border-radius: 4px !important; /* Скругленные углы изображения */
  589. margin-bottom: 10px !important; /* Отступ снизу */
  590. }
  591.  
  592. /* Контейнер для чекбокса и метки */
  593. .remove-attachment-selecter {
  594. display: flex !important; /* Гибкое расположение */
  595. align-items: center !important; /* Центрирование по вертикали */
  596. gap: 8px !important; /* Отступ между чекбоксом и меткой */
  597. }
  598.  
  599. /* Скрытый input (оставляем без стилей, он не виден) */
  600. .remove-attachment-selecter input[type="hidden"] {
  601. display: none !important;
  602. }
  603.  
  604. /* Стили для чекбокса */
  605. .remove-attachment-selecter input[type="checkbox"] {
  606. appearance: none !important; /* Убираем стандартный вид */
  607. width: 18px !important; /* Размер чекбокса */
  608. height: 18px !important;
  609. background-color: #0f151f !important; /* Фон чекбокса */
  610. border: 2px solid #344b71 !important; /* Граница */
  611. border-radius: 4px !important; /* Скругленные углы */
  612. cursor: pointer !important; /* Курсор-указатель */
  613. transition: all 0.3s ease !important; /* Плавные переходы */
  614. }
  615.  
  616. .remove-attachment-selecter input[type="checkbox"]:checked {
  617. background-color: #344b71 !important; /* Цвет при активации */
  618. border-color: #344b71 !important;
  619. background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E") !important; /* Галочка */
  620. background-size: 14px !important; /* Размер галочки */
  621. background-position: center !important;
  622. background-repeat: no-repeat !important;
  623. }
  624.  
  625. .remove-attachment-selecter input[type="checkbox"]:hover:not(:checked) {
  626. background-color: #141c2a !important; /* Легкое осветление при наведении */
  627. }
  628.  
  629. /* Стили для метки */
  630. .remove-attachment-selecter .checkbox-label {
  631. color: #344b71 !important; /* Цвет текста */
  632. font-size: 14px !important; /* Размер шрифта */
  633. cursor: pointer !important; /* Курсор-указатель */
  634. transition: color 0.3s ease !important; /* Плавный переход цвета */
  635. }
  636.  
  637. .remove-attachment-selecter input[type="checkbox"]:checked + .checkbox-label {
  638. color: #ffffff !important; /* Белый цвет при активации чекбокса */
  639. }
  640.  
  641. .remove-attachment-selecter .checkbox-label:hover {
  642. color: #ffffff !important; /* Белый цвет при наведении */
  643. }
  644. /*accent цвет фона при выделении в редакторе */
  645.  
  646. .ace-tm .ace_marker-layer .ace_selection {
  647. background: #29937c5c !important;
  648. }
  649.  
  650. /* Li 123456789 */
  651.  
  652. li.L1, li.L3, li.L5, li.L7, li.L9 {
  653. background: #1a2535 !important;
  654. }
  655. /* значок js */
  656. .badge-js {
  657. background-color: #FFC107; /* Жёлтый цвет (можно также использовать #FFFF00 для более яркого жёлтого) */
  658. color: #000000 !important; /* Чёрный текст */
  659. mix-blend-mode: inherit;
  660. }
  661. .rating-icon.rating-icon-good {
  662. background-color: #2F4F4F !important; /* Тёмно-зелёный цвет */
  663. color: #FFFFFF !important; /* Белый текст для контраста, можно изменить при необходимости */
  664. }
  665.  
  666. /* Обёртка для input */
  667. .custom-file-upload {
  668. position: relative !important;
  669. display: inline-block !important;
  670. width: 100% !important;
  671. max-width: 300px !important; /* Можно настроить */
  672. }
  673.  
  674. /* Скрываем стандартный input */
  675. .custom-file-upload input[type="file"] {
  676. position: absolute !important;
  677. width: 100% !important;
  678. height: 100% !important;
  679. opacity: 0 !important;
  680. cursor: pointer !important;
  681. z-index: 2 !important;
  682. }
  683.  
  684. /* Стили для кастомной кнопки */
  685. .custom-file-upload label {
  686. /* Основные размеры и расположение */
  687. display: block !important;
  688. width: 100% !important;
  689. padding: 12px 16px !important;
  690. box-sizing: border-box !important;
  691.  
  692. /* Цвета и фон */
  693. background-color: #ffffff !important;
  694. border: 2px solid #e0e0e0 !important;
  695. border-radius: 8px !important;
  696. color: #333333 !important;
  697.  
  698. /* Типографика */
  699. font-family: 'Arial', sans-serif !important;
  700. font-size: 16px !important;
  701. text-align: center !important;
  702.  
  703. /* Эффекты */
  704. box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
  705. transition: all 0.3s ease !important;
  706. cursor: pointer !important;
  707. }
  708.  
  709. /* При наведении */
  710. .custom-file-upload label:hover {
  711. border-color: #007bff !important;
  712. box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2) !important;
  713. }
  714.  
  715. /* При фокусе на input */
  716. .custom-file-upload input[type="file"]:focus + label {
  717. border-color: #007bff !important;
  718. background-color: #1e2723 !important;
  719. color: #ffffff !important;
  720. box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2) !important;
  721. }
  722.  
  723. /* Когда файл выбран (опционально) */
  724. .custom-file-upload input[type="file"]:valid + label {
  725. border-color: #28a745 !important;
  726. }
  727.  
  728.  
  729. /* Общий стиль для всех textarea */
  730. textarea[name="script_version[changelog]"],
  731. textarea[name="script_version[additional_info][0][attribute_value]"],
  732. #script_version_changelog,
  733. #script-version-additional-info-0 {
  734. /* Основные размеры и расположение */
  735. width: 100%;
  736. min-height: 120px;
  737. padding: 12px 16px;
  738. box-sizing: border-box;
  739.  
  740. /* Цвета и фон */
  741. background-color: #1e2723;
  742. border: 2px solid #e0e0e0;
  743. border-radius: 8px;
  744. color: #333333;
  745.  
  746. /* Типографика */
  747. font-family: 'Arial', sans-serif;
  748. font-size: 16px;
  749. line-height: 1.5;
  750.  
  751. /* Эффекты */
  752. box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  753. transition: all 0.3s ease;
  754.  
  755. /* Убираем стандартный стиль браузера */
  756. resize: vertical;
  757. outline: none;
  758. }
  759.  
  760. /* При фокусе */
  761. textarea[name="script_version[changelog]"]:focus,
  762. textarea[name="script_version[additional_info][0][attribute_value]"]:focus,
  763. #script_version_changelog:focus,
  764. #script-version-additional-info-0:focus {
  765. border-color: #007bff;
  766. box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2);
  767. background-color: #0a0f17; /* темно синий */
  768. color: #ffffff;
  769. }
  770.  
  771. /* При заполнении (валидное поле) */
  772. textarea[name="script_version[changelog]"]:valid,
  773. textarea[name="script_version[additional_info][0][attribute_value]"]:valid,
  774. #script_version_changelog:valid,
  775. #script-version-additional-info-0:valid {
  776. border-color: #28a745;
  777. }
  778.  
  779. /* При ошибке */
  780. textarea[name="script_version[changelog]"]:invalid:focus,
  781. textarea[name="script_version[additional_info][0][attribute_value]"]:invalid:focus,
  782. #script_version_changelog:invalid:focus,
  783. #script-version-additional-info-0:invalid:focus {
  784. border-color: #dc3545;
  785. box-shadow: 0 4px 10px rgba(220, 53, 69, 0.2);
  786. }
  787.  
  788. /* Плейсхолдер */
  789. textarea[name="script_version[changelog]"]::placeholder,
  790. textarea[name="script_version[additional_info][0][attribute_value]"]::placeholder,
  791. #script_version_changelog::placeholder,
  792. #script-version-additional-info-0::placeholder {
  793. color: #888888;
  794. opacity: 0.8;
  795. font-style: italic;
  796. }
  797.  
  798. /* Стили для формы */
  799. .button_to {
  800. display: inline-block !important; /* Форма занимает только нужное место */
  801. margin: 0 !important; /* Убираем внешние отступы */
  802. padding: 0 !important; /* Убираем внутренние отступы */
  803. }
  804.  
  805. /* Стили для кнопки внутри формы */
  806. .button_to button[type="submit"] {
  807. /* Основные размеры и расположение */
  808. padding: 10px 20px !important;
  809. border-radius: 6px !important;
  810. border: 2px solid #e0e0e0 !important;
  811.  
  812. /* Цвета и фон */
  813. background-color: #1e2723 !important; /* Тёмно-зелёно-серый фон, как в прошлых примерах */
  814. color: #ffffff !important; /* Белый текст для контраста */
  815.  
  816. /* Типографика */
  817. font-family: 'Arial', sans-serif !important;
  818. font-size: 16px !important;
  819. font-weight: 500 !important;
  820. text-align: center !important;
  821.  
  822. /* Эффекты */
  823. box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;
  824. transition: all 0.3s ease !important;
  825. cursor: pointer !important;
  826. }
  827.  
  828. /* При наведении */
  829. .button_to button[type="submit"]:hover {
  830. background-color: #2f4f4f !important; /* Чуть светлее тёмно-зелёный для ховер-эффекта */
  831. border-color: #007bff !important; /* Синий акцент */
  832. box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3) !important;
  833. }
  834.  
  835. /* При фокусе */
  836. .button_to button[type="submit"]:focus {
  837. outline: none !important;
  838. border-color: #007bff !important;
  839. box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.3) !important; /* Фокусное кольцо */
  840. }
  841.  
  842. /* При нажатии */
  843. .button_to button[type="submit"]:active {
  844. transform: scale(0.98) !important; /* Лёгкое уменьшение */
  845. box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;
  846. }
  847.  
  848. /* Скрытый input */
  849. .button_to input[type="hidden"] {
  850. display: none !important; /* Убеждаемся, что он не виден */
  851. }
  852.  
  853. .notice {
  854. /* Основные размеры и расположение */
  855. padding: 12px 16px !important;
  856. margin: 10px 0 !important;
  857. border-radius: 6px !important;
  858.  
  859. /* Цвета и фон */
  860. background-color: #1e2723 !important; /* Тёмно-зелёно-серый фон, как в других элементах */
  861. color: #ffffff !important; /* Белый текст для контраста */
  862. border: 1px solid #2f4f4f !important; /* Чуть светлее тёмно-зелёный для границы */
  863.  
  864. /* Типографика */
  865. font-family: 'Arial', sans-serif !important;
  866. font-size: 16px !important;
  867. line-height: 1.4 !important;
  868.  
  869. /* Эффекты */
  870. box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;
  871. transition: all 0.3s ease !important;
  872. }
  873.  
  874. /* При наведении (опционально) */
  875. .notice:hover {
  876. background-color: #2f4f4f !important; /* Лёгкое осветление фона */
  877. box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3) !important;
  878. }
  879.  
  880. /*step 2*
  881. /* уведомление об ошибках */
  882. .validation-errors {
  883. background-color: #6d651e !important;
  884. border-left: 6px solid #FFEB3B !important;
  885. }
  886.  
  887. td {
  888. background: #1A2535 !important;
  889. border-radius: 20px !important;
  890. padding: 10px !important;
  891. }
  892.  
  893. td.ban-text {
  894. color: #FF5555 !important;
  895. background-color: rgba(255, 85, 85, 0.2) !important;
  896. }
  897.  
  898. button.lum-next-button.lum-gallery-button,
  899. button.lum-previous-button.lum-gallery-button {
  900. background: #2A3545 !important;
  901. }
  902.  
  903. .language-selector-locale {
  904. padding: 6px;
  905. border-radius: 25px !important;
  906. border: solid 2px #4AC2E5 !important;
  907. }
  908.  
  909. .text-content.log-table {
  910. background: #141D2B !important;
  911. }
  912.  
  913. .discussion-list.discussion-list-logged-in {
  914. background: #1E2A3C !important;
  915. box-shadow: 4px 4px 7px 0px #0A0F1A !important;
  916. }
  917.  
  918. .discussion-list-container.discussion-read {
  919. background: #253040;
  920. }
  921.  
  922. .list-option-button {
  923. background: #2A3545 !important;
  924. color: #4AC2E5 !important;
  925. border-radius: 30px !important;
  926. }
  927.  
  928. a.script-link {
  929. color: #4AC2E5 !important;
  930. box-shadow: 0px 0px 14px 1px #4AC2E5 !important;
  931. background: #2A3545 !important;
  932. padding: 1px !important;
  933. border-radius: 7px !important;
  934. display: flex !important;
  935. width: 375px !important;
  936. position: relative !important;
  937. }
  938.  
  939. .comment-entry {
  940. /* Основные размеры и расположение */
  941. width: 100%;
  942. min-height: 120px;
  943. padding: 12px 16px;
  944. box-sizing: border-box;
  945.  
  946. /* Цвета и фон */
  947. background-color: #1e2723; /* темнозеленый фон */
  948. border: 2px solid #e0e0e0;
  949. border-radius: 8px;
  950. color: #333333;
  951.  
  952. /* Типографика */
  953. font-family: 'Arial', sans-serif;
  954. font-size: 16px;
  955. line-height: 1.5;
  956.  
  957. /* Эффекты */
  958. box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  959. transition: all 0.3s ease;
  960.  
  961. /* Убираем стандартный стиль браузера */
  962. resize: vertical;
  963. outline: none;
  964. }
  965.  
  966. /* При фокусе */
  967. .comment-entry:focus {
  968. border-color: #007bff; /* Синий акцент при фокусе */
  969. box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2);
  970. background-color: #1e2723; /* Твой тёмно-зелёно-серый цвет */
  971. color: #ffffff; /* Белый текст для читаемости на тёмном фоне */
  972. }
  973.  
  974. /* При заполнении (валидное поле) */
  975. .comment-entry:valid {
  976. border-color: #28a745; /* Зелёный для валидного ввода */
  977. }
  978.  
  979. /* При ошибке (если required не выполнен) */
  980. .comment-entry:invalid:focus {
  981. border-color: #dc3545; /* Красный при ошибке */
  982. box-shadow: 0 4px 10px rgba(220, 53, 69, 0.2);
  983. }
  984.  
  985. /* Плейсхолдер */
  986. .comment-entry::placeholder {
  987. color: #888888;
  988. opacity: 0.8;
  989. font-style: italic;
  990. }
  991.  
  992. input[type="search"] {
  993. box-shadow: inset 0px 0px 14px 1px #0A0F1A;
  994. background: #2A3545;
  995. padding: 8px;
  996. border-radius: 30px;
  997. border: 2px solid #4AC2E5;
  998. }
  999.  
  1000. p#deleted-note {
  1001. color: #FF5555 !important;
  1002. }
  1003.  
  1004. .pagination>*,
  1005. .script-list+.pagination>*,
  1006. .user-list+.pagination>* {
  1007. background-color: #2A3545;
  1008. border-radius: 5px;
  1009. }
  1010.  
  1011. .pagination>a:hover,
  1012. .pagination>a:focus {
  1013. background-color: #4AC2E5;
  1014. }
  1015.  
  1016. a.self-link,
  1017. a.self-link:visited {
  1018. opacity: 1.2;
  1019. background-color: #2A3545;
  1020. border: 2px solid #4AC2E5;
  1021. border-radius: 5px;
  1022. }
  1023.  
  1024. a {
  1025. color: #4AC2E5;
  1026. text-decoration: none;
  1027. transition: all 0.3s ease;
  1028. }
  1029.  
  1030. a:hover {
  1031. color: #FFFFFF;
  1032. background-color: #141D2B;
  1033. padding: 7px 10px;
  1034. border-radius: 5px;
  1035. box-shadow: -1px 9px 9px 0px rgba(0, 0, 0, 0.6);
  1036. }
  1037.  
  1038. .sidebar a {
  1039. display: block;
  1040. padding: 10px;
  1041. color: #4AC2E5;
  1042. border-radius: 4px;
  1043. transition: background-color 0.3s ease, color 0.3s ease;
  1044. }
  1045.  
  1046. .sidebar a:hover {
  1047. background-color: #4AC2E5;
  1048. color: #1A2535;
  1049. }
  1050.  
  1051. * {
  1052. color: #E0E5EC !important;
  1053. }
  1054.  
  1055. body, select, input {
  1056. background-color: #141D2B;
  1057. border-radius: 7px;
  1058. }
  1059.  
  1060. code {
  1061. background-color: #2A3545;
  1062. }
  1063.  
  1064. .code-container {
  1065. background: #0F1825;
  1066. }
  1067.  
  1068.  
  1069. nav {
  1070. background-color: #374337 !important;
  1071. }
  1072.  
  1073. .user-content {
  1074. background: linear-gradient(to right, #2A3545, #1A2535 1em);
  1075. border-left: 2px solid #4AC2E5;
  1076. }
  1077.  
  1078. .user-content > p:first-child {
  1079. background: linear-gradient(268deg, #2A3545 0%, #1A2535 100%);
  1080. }
  1081.  
  1082. #additional-info .user-screenshots {
  1083. background: linear-gradient(259deg, #2A3545 0%, #1A2535 100%);
  1084. }
  1085.  
  1086. .list-option.list-current {
  1087. border-left: 7px solid #4AC2E5;
  1088. box-shadow: 0 1px 0px 6px rgba(0, 0, 0, 0.1);
  1089. background: linear-gradient(#1A2535, #2A3545);
  1090. }
  1091.  
  1092. form.new_user input[type="submit"] {
  1093. color: #FFFFFF;
  1094. background-color: #2A3545;
  1095. background-image: linear-gradient(#4AC2E5, #1A2535);
  1096. }
  1097.  
  1098. .list-option-group a:hover,
  1099. .list-option-group a:focus {
  1100. background: linear-gradient(#2A3545, #4AC2E5);
  1101. text-decoration: none;
  1102. box-shadow: inset 0 -1px #ddd, inset 0 1px #eee;
  1103. }
  1104.  
  1105. #script-info {
  1106. border: 1px solid #4AC2E5;
  1107. border-radius: 5px;
  1108. background-color: #1A2535;
  1109. margin: 1em 0 0;
  1110. box-shadow: 0px 14px 14px 1px rgba(0, 0, 0, 0.6);
  1111. }
  1112.  
  1113. .form-control textarea:not([rows]),#ace-editor {
  1114. height: 20em;
  1115. background-color: #13161a;
  1116. color: #4AC2E5;
  1117. }
  1118.  
  1119. .previewable textarea {
  1120. margin: 0;
  1121. background-color: #1E2A3C;
  1122. }
  1123.  
  1124. .ace_gutter-cell {
  1125. color: #4AC2E5;
  1126. }
  1127.  
  1128. .ace_folding-enabled {
  1129. background-color: #2A3545;
  1130. }
  1131.  
  1132. a:visited {
  1133. color: #87D8F0;
  1134. }
  1135.  
  1136. .reportable,
  1137. .text-content:last-child,
  1138. .script-list {
  1139. background-color: #1E2A3C;
  1140. }
  1141.  
  1142. .list-option-group ul {
  1143. background-color: #2A3545;
  1144. }
  1145.  
  1146. #add-additional-info,
  1147. input[type="submit"][name="commit"] {
  1148. background-color: #4AC2E5;
  1149. color: #1e2a3c !important;
  1150. padding: 10px 20px;
  1151. border: none;
  1152. border-radius: 5px;
  1153. cursor: pointer;
  1154. font-size: 16px;
  1155. transition: background-color 0.3s;
  1156. }
  1157.  
  1158. input[type="submit"][name="commit"]:hover {
  1159. background-color: #38A1C2;
  1160. }
  1161. `);
  1162.  
  1163. // Scrollbar
  1164. GM_addStyle(`
  1165. ::-webkit-scrollbar {
  1166. width: 25px;
  1167. background: linear-gradient(54deg, #1C2526 0%, #2E3839 56%, #0F1415 100%) !important; /* Темно-синий градиент */
  1168. }
  1169.  
  1170. ::-webkit-scrollbar-thumb {
  1171. background-color: #1C2526; /* Темно-синий бордер */
  1172. border-radius: 22px;
  1173. border: 3px solid #4A90E2; /* Голубо-синий акцент */
  1174. height: 80px;
  1175. }
  1176.  
  1177. ::-webkit-scrollbar-thumb:hover {
  1178. background-color: #1C2526; /* Более светлый голубо-синий при наведении */
  1179. }
  1180.  
  1181. ::-webkit-scrollbar-thumb:active {
  1182. background-color: #357ABD; /* Более темный голубо-синий при нажатии */
  1183. }
  1184.  
  1185. ::-webkit-scrollbar-track {
  1186. background: #2E3839 !important; /* Темно-синяя дорожка */
  1187. border-radius: 0px 0px 8px 0px;
  1188. }
  1189. `);
  1190.  
  1191. })();
  1192.  

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址