Mults.info – Dark [Ath]

Dark theme for Mults.info (Мультики). Configurable page width and thumbnail size.

  1. /* ==UserStyle==
  2. @name Mults.info – Dark [Ath]
  3. @namespace athari
  4. @version 1.0.0
  5. @description Dark theme for Mults.info (Мультики). Configurable page width and thumbnail size.
  6. @author Athari (https://github.com/Athari)
  7. @homepageURL https://github.com/Athari/AthariUserCSS
  8. @supportURL https://github.com/Athari/AthariUserCSS/issues
  9. @license MIT
  10. @preprocessor default
  11.  
  12. @var range ath-page-width "Page width" [1200, 800, 2000, 50, 'px']
  13. @var range ath-thumb-height "Thumbnail height" [200, 100, 340, 10, 'px']
  14. @var select ath-thumb-width "Thumbnail width" ["fixed:Fixed*", "auto:Auto"]
  15. @var range ath-dim-head "Header brightness" [0.85, 0.5, 1.0, 0.05]
  16. ==/UserStyle== */
  17.  
  18. @-moz-document domain("mults.info") {
  19. :root {
  20. color-scheme: dark;
  21.  
  22. --ath-invert: invert(1) hue-rotate(180deg);
  23. }
  24.  
  25. body {
  26. display: flow-root;
  27. overflow: hidden;
  28. backdrop-filter: var(--ath-invert);
  29. min-height: 100vh;
  30.  
  31. &, table, td {
  32. color: #eee;
  33. }
  34. .top,
  35. h1, fieldset, td {
  36. border-color: #333 !important;
  37. }
  38. fieldset {
  39. text-align: left;
  40. }
  41.  
  42. input:is([type=checkbox], [type=radio]) {
  43. vertical-align: middle;
  44. }
  45.  
  46. [style*="background-color: Yellow"] {
  47. color: #111;
  48. padding: 0 1px;
  49. }
  50. [style*="background-color: #fff"] {
  51. background-color: #222 !important;
  52. }
  53. [style*="border-bottom: 1px #FFE8E2"] {
  54. border-color: #444 !important;
  55. }
  56. [style*="font-family: Courier New"] {
  57. font-family: Consolas, monospace !important;
  58. }
  59. [style*="font-size: 8pt"] {
  60. font-size: 13px !important;
  61. }
  62.  
  63. .main {
  64. width: auto;
  65. max-width: var(--ath-page-width);
  66. background: #111;
  67. border-color: #222;
  68. }
  69. .top {
  70. filter: brightness(var(--ath-dim-head));
  71. position: relative;
  72. &::before {
  73. content: "";
  74. position: absolute;
  75. inset: 0;
  76. background: #0000;
  77. backdrop-filter: brightness(var(--ath-dim-head));
  78. }
  79. img {
  80. filter: brightness(calc(1 / var(--ath-dim-head)));
  81. }
  82. }
  83. .foot {
  84. display: flex;
  85. flex-flow: row wrap;
  86. gap: 4px;
  87. justify-content: center;
  88. background: #111 !important;
  89. border-color: #333 !important;
  90. font-size: 13px;
  91. }
  92.  
  93. .top {
  94. /*background-position: center 0;*/
  95. margin: 0 calc(var(--ath-page-width) / 2 - 50vw);
  96. }
  97.  
  98. [itemtype="http://schema.org/Movie"] > h2 + br + table,
  99. form[action="/mults/"] > table {
  100. &, tbody, tr {
  101. display: contents;
  102. }
  103. /*mult w/ img*/
  104. td[align=center]:not(:has(+ td[align=left]:is([colspan="2"], :not([colspan])))) {
  105. display: inline-block;
  106. margin: 10px;
  107. position: relative;
  108. img {
  109. display: flow-root;
  110. height: var(--ath-thumb-height) !important;
  111. width: auto !important;
  112. @container style(--ath-thumb-width: fixed) {
  113. width: calc(var(--ath-thumb-height) * 4 / 3) !important;
  114. object-fit: cover;
  115. }
  116. }
  117. span /*duration*/ {
  118. position: absolute;
  119. inset: 0 0 auto auto;
  120. margin: 2px;
  121. padding: 1px 2px;
  122. background: #0006;
  123. color: #eee !important;
  124. border-radius: 4px;
  125. }
  126. .imgblock .imgtext {
  127. inset: auto 0 0 0;
  128. width: auto;
  129. padding: 4px 0 6px;
  130. }
  131. }
  132. /* mult w/o img - title */
  133. td[align=left]:is([colspan="2"], :not([colspan])) {
  134. position: relative;
  135. left: 30px;
  136. display: block;
  137. }
  138. /* mult w/o img - icon */
  139. td[align=center]:has(+ td[align=left]:is([colspan="2"], :not([colspan]))) {
  140. position: absolute;
  141. left: 0;
  142. display: inline-block;
  143. }
  144. /* series header */
  145. td[align=left][colspan="5"] {
  146. display: block;
  147. margin: 10px 10px 5px;
  148. text-align: center;
  149. }
  150. }
  151. form[action="/mults/"] {
  152. position: relative;
  153. text-align: center;
  154. img[src^="/img/"][src$=".gif"] {
  155. filter: var(--ath-invert);
  156. width: auto !important;
  157. height: auto !important;
  158. }
  159. fieldset {
  160. > div /*pagination*/ {
  161. b, a {
  162. padding: 3px 13px !important;
  163. background: #fff1;
  164. }
  165. }
  166. }
  167. }
  168. }
  169. }

QingJ © 2025

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