Patreon responsive + customizations

Patreon website is more suitable for wide screens.

当前为 2024-06-28 提交的版本,查看 最新版本

  1. /* ==UserStyle==
  2. @name Patreon responsive + customizations
  3. @version 1.0.10
  4. @description Patreon website is more suitable for wide screens.
  5. @author BreatFR (https://breat.fr)
  6. @namespace https://gitlab.com/breatfr
  7. @homepageURL https://gitlab.com/breatfr/patreon
  8. @supportURL https://discord.gg/Q8KSHzdBxs
  9. @license AGPL-3.0-or-later; https://www.gnu.org/licenses/agpl-3.0.txt
  10. @preprocessor stylus
  11.  
  12. @var checkbox bigimages "Big images" 1
  13. @var text fontsize "Custom font size" 1.2rem
  14. @var checkbox nojump "No Jump to level up" 1
  15. @var checkbox nocomments "No comments" 0
  16. @var checkbox widemode "Wide mode" 1
  17. ==/UserStyle== */
  18.  
  19. /* === Credits ===
  20. Website https://breat.fr
  21. facebook https://www.facebook.com/breatfroff
  22. mastodon https://mastodon.social/@breat_fr
  23. telegram https://t.me/breatfr
  24. vk https://vk.com/breatfroff
  25. X (twitter) https://x.com/breatfroff
  26. === Credits === */
  27. @-moz-document domain("patreon.com") {
  28. :root {
  29. --fontsize: fontsize;
  30. }
  31. /* Loved */
  32. [data-tag="like-button"][aria-checked="true"] > div > svg path {
  33. fill: #c6374d;
  34. }
  35. /* No double scrollbar */
  36. #__next > .sc-uiqay7-0.cnwZin {
  37. overflow: hidden;
  38. }
  39. if bigimages {
  40. .dKhesY,
  41. .iYigLd {
  42. aspect-ratio: auto;
  43. }
  44. .dlPwPr,
  45. .ekfOSd,
  46. .eBNJwE,
  47. .fJakeo,
  48. .gFIRbI,
  49. .gFlvxH,
  50. .grHANt,
  51. .kBqPDk,
  52. .kZrqiR {
  53. display: block;
  54. height: auto;
  55. max-height: 100%;
  56. min-width: 100%;
  57. object-fit: contain !important;
  58. }
  59. .kZrqiR img {
  60. margin-bottom: 2px;
  61. object-fit: contain;
  62. }
  63. .image-carousel {
  64. height: 112px;
  65. object-fit: contain;
  66. width: auto !important;
  67. }
  68. /* Little unblur */
  69. .dgyaSI {
  70. background: transparent !important;
  71. opacity: 0 !important;
  72. }
  73. .image-grid > img {
  74. background: transparent !important;
  75. }
  76. .jQZWvF > div > div,
  77. .image-grid div {
  78. display: none !important;
  79. height: 0 !important;
  80. width: 0 !important;
  81. }
  82. }
  83. /* Custom font size */
  84. :root,
  85. button,
  86. div,
  87. li,
  88. p,
  89. .cLOyGt,
  90. .cuiKYE,
  91. .cQjDCC,
  92. .fxePXf,
  93. .jYEggK {
  94. font-size: fontsize !important;
  95. }
  96. .vWGl {
  97. font-size: calc(var(--fontsize) - .2rem)!important;
  98. }
  99. span > .vWGl {
  100. font-size: inherit !important;
  101. }
  102. .gxOVkK {
  103. font-size: calc(var(--fontsize) - .4rem)!important;
  104. }
  105. if nocomments {
  106. [data-tag="content-card-comment-thread-container"],
  107. .bmnjsr {
  108. display: none !important;
  109. }
  110. }
  111. if nojump {
  112. .sc-jrQzAO.bAzCwM,
  113. .sc-o4u8m1-2 > div > div:nth-child(2),
  114. [data-tag="upgrade-free-membership-button"],
  115. [data-tag="free-membership-upgrade-cta"] {
  116. display: none !important;
  117. height: 0 !important;
  118. max-height: 0 !important;
  119. }
  120. }
  121. if widemode {
  122. section.fZbiny>div,
  123. .bNdQpa,
  124. .bnFcNI,
  125. .cuHeCZ,
  126. .gSEDWh,
  127. .hGVSIy,
  128. .idaEYe,
  129. .kYRjdn,
  130. .lghRlU,
  131. .McnWk,
  132. .PSylB {
  133. max-width: 100% !important;
  134. }
  135. .gwGwhu {
  136. padding: 0;
  137. }
  138.  
  139. .bcGqVn {
  140. grid-template-columns: 80% 20%;
  141. }
  142.  
  143. .jwWBqC {
  144. grid-column-end: span 1;
  145. }
  146. .leSNuf:nth-child(odd)> .dGdDmr {
  147. flex-direction: row-reverse !important;
  148. }
  149. .sc-o4u8m1-4.hBubtn > div > div > h2 {
  150. margin-top: 1rem;
  151. }
  152. .dzWUmz,
  153. .cgDWfu {
  154. max-width: max-content !important;
  155. }
  156. }
  157. }