GreasyFork - Dark Theme

Customizable Dark theme For gf.qytechs.cn

目前為 2020-01-14 提交的版本,檢視 最新版本

  1. /* ==UserStyle==color2
  2. @name GreasyFork - Dark Theme
  3. @namespace https://gf.qytechs.cn/en/users/124677-pabli
  4. @version 1.0.0
  5. @description Customizable Dark theme For gf.qytechs.cn
  6. @author Pabli
  7. @license CC-BY-SA-4.0
  8. @preprocessor stylus
  9. @var color bg-header "Header background" #640000
  10. @var color t-header "Header text" #fafafa
  11. @var color bg "Background" #111
  12. @var color t-1 "Main text" #fafafa
  13. @var color t-2 "Second text" #aeaeae
  14. @var color t-link "Link" #ff7070
  15. @var color bg-sidebar "Sidebar" #1a1a1a
  16. @var color bg-sidebar-btn "Sidebar button" #510909
  17. @var color bg-sidebar-btn-h "Sidebar button hover" #323232
  18. @var color bg-btn "Button" #1d0b0b
  19. @var color bg-btn-h "Button hover" #1d0b0b
  20. @var color t-btn "Button text" #fafafa
  21. @var color border-btn "Button border" #7f1d1d
  22. @var color border-btn-h "Button border hover" #ff7070
  23. @var color bg-textarea "Text area background" #151515
  24. @var color bg-select "Select, input backround" #232323
  25. @var number maxwidth "Width Site (px)" 960
  26. @var number maxwidthf "Width Forum (px)" 720
  27. @var select theme "Theme syntax" ["Desert", "Sunburst", "Sons-Of-Obsidian", "Doxy"]
  28. @var checkbox wrap "Code wrap" 1
  29. @var checkbox scrollbar "Dark Scroll Bar" 1
  30. @var checkbox sidebar "Forum sidebar to the right" 0
  31. ==/UserStyle== */
  32.  
  33. @-moz-document domain("gf.qytechs.cn") {
  34.  
  35. #user-profile {
  36. border: 1px solid #45413d;
  37. background-color: #2d2828;
  38. }
  39.  
  40. .width-constraint {
  41. max-width: maxwidth px;
  42. }
  43.  
  44. body, .script-list, .user-list, .text-content,
  45. #script-info,
  46. body:not(.Settings), #Content {
  47. background-color: bg;
  48. color: t-1;
  49. }
  50. .announcement input {
  51. color: t-1;
  52. }
  53. #main-header,
  54. body:not(.Settings) #Head {
  55. background-color: bg-header;
  56. background-image: linear-gradient(rgba(0, 0, 0, 0.3), bg-header);
  57. }
  58. .script-list, .user-list, .text-content,
  59. .list-option-group ul,
  60. #script-info,
  61. #Content, #Panel .FilterMenu, #Panel .PanelCategories, #Panel .MeBox {
  62. box-shadow: none;
  63. border: none;
  64. }
  65. a, a:visited, body:not(.Settings) a:not(.Button):not(.ChangePicture) {
  66. color: t-link;
  67. text-decoration: none;
  68. &:hover {
  69. color: t-link;
  70. text-decoration: underline;
  71. }
  72. }
  73. #Head a {
  74. text-decoration: none;
  75. &:hover {
  76. text-decoration: underline;
  77. }
  78. }
  79. #site-name-text h1 a:hover{
  80. text-decoration: none!important;
  81. }
  82. #home-script-nav {
  83. border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  84. }
  85. #language-selector-locale {
  86. background: bg-header;
  87. color: t-header;
  88. border: 1px solid rgba(255, 255, 255, .5);
  89. }
  90. nav nav,
  91. .SiteMenu nav {
  92. background-color: bg-header;
  93. }
  94.  
  95. select, input {
  96. background: bg-select;
  97. color: t-1;
  98. border: 1px solid rgba(255, 255, 255, .1);
  99. }
  100. textarea, textarea:focus, input.DateBox, input.InputBox, input.SmallInput, .InputBox, .Preview, input.SmallInput:focus, input.InputBox:focus,
  101. form.new_user input[type="text"], form.new_user input[type="email"], form.new_user input[type="password"] {
  102. color: t-1;
  103. background: bg-textarea;
  104. border: 1px solid rgba(255, 255, 255, .1);
  105. outline: none;
  106. }
  107.  
  108. //search
  109. .sidebar-search input[type=submit], .home-search input[type=submit], .SiteSearch .Button {
  110. color: transparent;
  111. opacity: 1;
  112. background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABYklEQVQ4T5XTu2qVQRTF8d8CMdp7AW9V7MwLaNKo7+ANe1ERK7Hy2oidmOALiMlDKIIS8QEsRLFRYqG9lyBsmThHviMnB7ObGT5m/t9ae6+JQVXVAi6hrbvwFS+xmGR1eHa0T9tU1TY8xIVJh/q3JVxN8mt4ZgR41C9/wz08wSccxDlcx04sJbk8BuiyX6BdPpHk9b8qquoonnbI/NBOqmoFp3Ajyd3NLFTVLdzEcpKzf3tQVWvYh9kkH6YAZvEea0kODAE/sR0zSdanAGbwA+tJ2n6jmoX/VXAY7/A5yf4hYBmnm78kd6YouN36hJUkZ4aA+R6W7ziZ5NWEKRzrU2jSF8am0IPUQnIRDXIfj/ERh3Ae17ADXzCXpK1/ejBI4oMOmeSieqz34E3PywZkAzCqqmpSR29hb7/UQrbYR/gMR4aQMcBmDRz8YDcaZA5vcXxLgG632Rgpeb5lwADSnsCV30xRiAuwE+OqAAAAAElFTkSuQmCC') no-repeat center;
  113. }
  114. .SiteSearch .Button {
  115. top: 6px;
  116. }
  117. #Panel input.InputBox, .AddPeople textarea.MultiComplete {
  118. border-radius: 5px;
  119. }
  120. .sidebar-search input[type=search],
  121. .home-search input[type=search] {
  122. border-radius: 5px;
  123. padding: 5px;
  124. padding-inline-end: 25px;
  125. }
  126. .sidebar-search input[type=submit],
  127. .home-search input[type=submit] {
  128. padding: 5px;
  129. }
  130. .SearchForm .InputBox {
  131. border: 1px solid rgba(255, 255, 255, .1);
  132. }
  133. // right menu and forum left menu
  134. .list-option-group ul,
  135. #Panel .FilterMenu, #Panel .PanelCategories, #Panel .MeBox {
  136. background-color: bg-sidebar;
  137. border: 1px solid rgba(255, 255, 255, .1);
  138. }
  139.  
  140. .list-option-group .list-current,
  141. #Panel .FilterMenu .Active a, #Panel .PanelCategories .Active a {
  142. border-left: none;
  143. margin: unset;
  144. background: bg-sidebar-btn !important;
  145. color: t-1;
  146. }
  147.  
  148. .list-option-group a:hover, .list-option-group a:focus,
  149. #Panel .FilterMenu a:hover, #Panel .PanelCategories a:hover, #Panel .FilterMenu a:focus, #Panel .PanelCategories a:focus {
  150. background: bg-sidebar-btn-h;
  151. color: t-1 !important;
  152. text-decoration: none !important;
  153. box-shadow: none;
  154. }
  155. if sidebar {
  156. #Panel {
  157. float: right;
  158. }
  159. }
  160. .Button, .Button.Active, .ButtonGroup.Open .Button.Handle, .Button:focus, .Button:active, .BigButton, .NewDiscussion,
  161. form.new_user input[type="submit"] {
  162. background: bg-btn;
  163. color: t-btn !important;
  164. border: 1px solid border-btn;
  165. text-decoration: none;
  166. border-radius: 30px;
  167. box-shadow: none;
  168. cursor: pointer;
  169. &:hover {
  170. background: bg-btn-h;
  171. color: t-btn;
  172. border-color: border-btn-h;
  173. text-decoration: none;
  174. }
  175. }
  176.  
  177. .install-link, .install-help-link {
  178. color: #fff !important;
  179. }
  180. .script-list li:not(.ad-entry),
  181. .DataList .Item, .NarrowList .Item {
  182. border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  183. }
  184. #additional-info>div {
  185. border: 1px solid rgba(255, 255, 255, 0.1);
  186. background-color: rgba(0, 0, 0, 0.2);
  187. }
  188. .notice {
  189. background-color: #1c2123;
  190. border-left: 6px solid #204050;
  191. }
  192. .alert {
  193. background-color: #222211;
  194. border-left: 6px solid #a1931a;
  195. }
  196.  
  197. .good-rating-count {
  198. color: #80ff80;
  199. }
  200. .ok-rating-count {
  201. color: #ffff80;
  202. }
  203. .bad-rating-count {
  204. color: #ff8080;
  205. }
  206.  
  207. //pagination buttons
  208. .pagination>*, .script-list+.pagination>*, .user-list+.pagination>*,
  209. .Pager > * {
  210. background-color: transparent;
  211. }
  212. .pagination>a:hover, .pagination>a:focus {
  213. background-color: bg-sidebar-btn-h;
  214. color: t-1 !important;
  215. text-decoration: none !important;
  216. }
  217. //pagination buttons forum
  218. .Pager > a:hover, .Pager > a:focus {
  219. background-color: bg-sidebar-btn-h;
  220. color: t-1 !important;
  221. text-decoration: none !important;
  222. }
  223. body .Pager .Highlight {
  224. color: t-1 !important;
  225. }
  226. // /stats script
  227. canvas {
  228. filter: invert(1) brightness(2);
  229. }
  230. // history code
  231. .diff ul {
  232. background: #000;
  233. }
  234. .diff li:hover {
  235. background-color: rgba(255, 255, 255, .2) !important
  236. }
  237. .diff li.del, .diff del strong {
  238. background-color: rgba(255, 0, 0, .2);
  239. color: #fdd;
  240. }
  241. .diff li.ins, .diff ins strong {
  242. background-color: rgba(0, 255, 0, .2);
  243. color: #dfd;
  244. }
  245. .diff li.diff-block-info {
  246. background: none repeat scroll 0 0 #252525;
  247. }
  248.  
  249. .DiscussionForm label {
  250. color: t-2;
  251. }
  252.  
  253. .editor-fullpage #editor-fullpage-candidate,
  254. .editor-fullpage #editor-fullpage-candidate .editor {
  255. background-color: #000;
  256. }
  257.  
  258. code {
  259. background-color: #151515;
  260. }
  261. pre, code, .Message pre {
  262. border: 1px solid #363432;
  263. }
  264.  
  265. if theme == Desert {
  266.  
  267. /* desert scheme ported from vim to google prettify */
  268. pre.prettyprint, pre.prettyprinted, .Message pre ol { display: block; background-color: #333 }
  269. pre .nocode { background-color: none; color: #000 }
  270. pre .str { color: #ffa0a0 } /* string - pink */
  271. pre .kwd { color: #f0e68c; font-weight: bold }
  272. pre .com { color: #87ceeb } /* comment - skyblue */
  273. pre .typ { color: #98fb98 } /* type - lightgreen */
  274. pre .lit { color: #cd5c5c } /* literal - darkred */
  275. pre .pun { color: #fff } /* punctuation */
  276. pre .pln { color: #fff } /* plaintext */
  277. pre .tag { color: #f0e68c; font-weight: bold } /* html/xml tag - lightyellow */
  278. pre .atn { color: #bdb76b; font-weight: bold } /* attribute name - khaki */
  279. pre .atv { color: #ffa0a0 } /* attribute value - pink */
  280. pre .dec { color: #98fb98 } /* decimal - lightgreen */
  281.  
  282. /* Specify class=linenums on a pre to get line numbering */
  283. ol.linenums { margin-top: 0; margin-bottom: 0; color: #AEAEAE } /* IE indents via margin-left */
  284. li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8 { list-style-type: none }
  285. /* Alternate shading for lines */
  286. li.L1,li.L3,li.L5,li.L7,li.L9 { }
  287.  
  288. }
  289. else if theme == Sunburst {
  290.  
  291. /* Pretty printing styles. Used with prettify.js. */
  292. /* Vim sunburst theme by David Leibovic */
  293.  
  294. pre .str, code .str { color: #65B042; } /* string - green */
  295. pre .kwd, code .kwd { color: #E28964; } /* keyword - dark pink */
  296. pre .com, code .com { color: #AEAEAE; font-style: italic; } /* comment - gray */
  297. pre .typ, code .typ { color: #89bdff; } /* type - light blue */
  298. pre .lit, code .lit { color: #3387CC; } /* literal - blue */
  299. pre .pun, code .pun { color: #fff; } /* punctuation - white */
  300. pre .pln, code .pln { color: #fff; } /* plaintext - white */
  301. pre .tag, code .tag { color: #89bdff; } /* html/xml tag - light blue */
  302. pre .atn, code .atn { color: #bdb76b; } /* html/xml attribute name - khaki */
  303. pre .atv, code .atv { color: #65B042; } /* html/xml attribute value - green */
  304. pre .dec, code .dec { color: #3387CC; } /* decimal - blue */
  305.  
  306. pre.prettyprint, code.prettyprint, , pre.prettyprinted, .Message pre ol {
  307. background-color: #000;
  308. border-radius: 8px;
  309. }
  310.  
  311. /* Specify class=linenums on a pre to get line numbering */
  312. ol.linenums { margin-top: 0; margin-bottom: 0; color: #AEAEAE; } /* IE indents via margin-left */
  313. li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8 { list-style-type: none }
  314. /* Alternate shading for lines */
  315. li.L1,li.L3,li.L5,li.L7,li.L9 { }
  316.  
  317. }
  318. else if theme == Sons-Of-Obsidian {
  319. /*
  320. * Derived from einaros's Sons of Obsidian theme at
  321. * http://studiostyl.es/schemes/son-of-obsidian by
  322. * Alex Ford of CodeTunnel:
  323. * http://CodeTunnel.com/blog/post/71/google-code-prettify-obsidian-theme
  324. */
  325.  
  326. .str { color: #EC7600; }
  327. .kwd { color: #93C763; }
  328. .com { color: #66747B; }
  329. .typ { color: #678CB1; }
  330. .lit { color: #FACD22; }
  331. .pun { color: #F1F2F3; }
  332. .pln { color: #F1F2F3; }
  333. .tag { color: #8AC763; }
  334. .atn { color: #E0E2E4; }
  335. .atv { color: #EC7600; }
  336. .dec { color: purple; }
  337. pre.prettyprint { border: 0px solid #888; }
  338. ol.linenums
  339. {
  340. margin-top: 0;
  341. margin-bottom: 0;
  342. }
  343. .prettyprint, , pre.prettyprinted, .Message pre ol {
  344. background: #000;
  345. }
  346. li.L0, li.L1, li.L2, li.L3, li.L4, li.L5, li.L6, li.L7, li.L8, li.L9
  347. {
  348. color: #555;
  349. list-style-type: decimal;
  350. }
  351. li.L1, li.L3, li.L5, li.L7, li.L9 {
  352. background: #111;
  353. }
  354. }
  355. else if theme == Doxy {
  356. /* Doxy pretty-printing styles. Used with prettify.js. */
  357.  
  358. pre .str, code .str { color: #fec243; } /* string - eggyolk gold */
  359. pre .kwd, code .kwd { color: #8470FF; } /* keyword - light slate blue */
  360. pre .com, code .com { color: #32cd32; font-style: italic; } /* comment - green */
  361. pre .typ, code .typ { color: #6ecbcc; } /* type - turq green */
  362. pre .lit, code .lit { color: #d06; } /* literal - cherry red */
  363. pre .pun, code .pun { color: #8B8970; } /* punctuation - lemon chiffon4 */
  364. pre .pln, code .pln { color: #f0f0f0; } /* plaintext - white */
  365. pre .tag, code .tag { color: #9c9cff; } /* html/xml tag (bluey) */
  366. pre .htm, code .htm { color: #dda0dd; } /* html tag light purply*/
  367. pre .xsl, code .xsl { color: #d0a0d0; } /* xslt tag light purply*/
  368. pre .atn, code .atn { color: #46eeee; font-weight: normal;} /* html/xml attribute name - lt turquoise */
  369. pre .atv, code .atv { color: #EEB4B4; } /* html/xml attribute value - rosy brown2 */
  370. pre .dec, code .dec { color: #3387CC; } /* decimal - blue */
  371.  
  372. pre.prettyprint, code.prettyprint, pre.prettyprinted, .Message pre ol {
  373. font-family:'Droid Sans Mono','CPMono_v07 Bold','Droid Sans';
  374. font-weight: bold;
  375. font-size: 9pt;
  376. background-color: #0f0f0f;
  377. -moz-border-radius: 8px;
  378. -webkit-border-radius: 8px;
  379. -o-border-radius: 8px;
  380. -ms-border-radius: 8px;
  381. -khtml-border-radius: 8px;
  382. border-radius: 8px;
  383. } /* background is black (well, just a tad less dark ) */
  384.  
  385. pre.prettyprint a, code.prettyprint a {
  386. text-decoration:none;
  387. }
  388. /* Specify class=linenums on a pre to get line numbering; line numbers themselves are the same color as punctuation */
  389. ol.linenums { margin-top: 0; margin-bottom: 0; color: #8B8970; } /* IE indents via margin-left */
  390. li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8 { list-style-type: none }
  391. /* Alternate shading for lines */
  392. li.L1,li.L3,li.L5,li.L7,li.L9 { }
  393.  
  394. }
  395. if wrap {
  396. pre.prettyprint {
  397. word-break: break-word;
  398. overflow-wrap: break-word;
  399. white-space: pre-wrap;
  400. }
  401. }
  402.  
  403. form.external-login-form,
  404. form.new_user {
  405. background-color: bg;
  406. border: none;
  407. }
  408. form.new_user input[type="text"], form.new_user input[type="email"], form.new_user input[type="password"] {
  409. color: texxt-color;
  410. background-color: textarea-color;
  411. border: 1px solid rgba(255, 255, 255, .1);
  412. box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
  413. }
  414.  
  415. //forum
  416. .ItemDiscussion .Meta, .DataList .Meta,
  417. dl.About dt {
  418. color: t-2;
  419. }
  420. .Item.Read {
  421. background: rgba(255, 255, 255, 0.02);
  422. }
  423. .MenuItems, .FlyoutMenu {
  424. border: 1px solid rgba(255, 255, 255, 0.1);
  425. background: bg-sidebar;
  426. color: t-1;
  427. }
  428. .Flyout:after {
  429. border-bottom: 7px solid bg-sidebar;
  430. }
  431. .MenuItems a, .MenuItems a:link, .MenuItems a:visited, .MenuItems a:active {
  432. color: t-1 !important;
  433. }
  434. .MenuItems a:hover {
  435. color: t-1 !important;
  436. text-decoration: none !important;
  437. background-color: bg-sidebar-btn-h !important;
  438. }
  439. .MenuItems hr {
  440. border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  441. }
  442. .PopList .Meta {
  443. color: t-2;
  444. }
  445. .FlyoutMenu a {
  446. color: t-link;
  447. }
  448. blockquote.Quote, blockquote.UserQuote {
  449. background: rgba(255, 255, 255, 0.05);
  450. border-left: 4px solid rgba(255, 255, 255, 0.1);
  451. }
  452. .OptionsTitle {
  453. filter: invert(1);
  454. }
  455. .ReactSprite, .SpEditProfile {
  456. background-image: url(https://i.imgur.com/HbaKg8l.png);
  457. }
  458. .SpNotifications, .SpGlobe {
  459. background-position: -32px -212px;
  460. }
  461. .SpInbox, .SpEnvelope {
  462. background-position: 0 -228px;
  463. }
  464. .SpBookmarks, .SpStar {
  465. background-position: -80px -245px;
  466. }
  467. .SpDashboard, .SpOptions, .SpCog {
  468. background-position: 0 -211px;
  469. }
  470. table.PreferenceGroup tbody tr:hover td {
  471. background: rgba(255, 255, 255, 0.05);
  472. }
  473. .WarningMessage {
  474. background: #19100f;
  475. border: 1px solid #4c2825;
  476. }
  477. .DismissMessage {
  478. color: t-1;
  479. }
  480. .NavButton, .NavButton:hover, .ButtonGroup.Open .NavButton.Handle {
  481. border: 1px solid rgba(255, 255, 255, 0.1);
  482. background-color: bg-sidebar;
  483. color: t-1!important;
  484. text-decoration: none!important;
  485. }
  486.  
  487.  
  488. .PoweredByVanilla {
  489. display: none;
  490. }
  491.  
  492. #Body .Row {
  493. width: max-content;
  494. }
  495. #Content {
  496. width: maxwidthf px;
  497. }
  498.  
  499. //
  500. .tabs>*:not(.current) a {
  501. margin-top: unset;
  502. padding-top: unset;
  503. }
  504. .tabs .current {
  505. border-top: none;
  506. }
  507. .tabs>*>* {
  508. padding: 0.25em .5em .5em!important;
  509. }
  510. .current {
  511. font-weight: bold;
  512. }
  513.  
  514. #Content .HomepageTitle {
  515. border-top: none;
  516. margin: 0px;
  517. padding: 0px;
  518. }
  519.  
  520.  
  521.  
  522. if scrollbar {
  523. //chrome
  524. ::-webkit-scrollbar {
  525. width: 8px;
  526. background-color: rgba(0, 0, 0, 0);
  527. }
  528. ::-webkit-scrollbar-thumb {
  529. background-color: #444;
  530. }
  531. ::-webkit-scrollbar-thumb:hover {
  532. background: #777 !important;
  533. }
  534. //firefox
  535. html {
  536. scrollbar-color: #444 bg !important;
  537. scrollbar-width: thin !important;
  538. }
  539. }
  540.  
  541. }

QingJ © 2025

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