Patreon responsive + customizations

Patreon website is more suitable for wide screens.

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

  1. /* ==UserStyle==
  2. @name Patreon responsive + customizations
  3. @version 1.0.6
  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. .dzWUmz {
  36. max-width: max-content;
  37. }
  38. if bigimages {
  39. .kZrqiR,
  40. .gFIRbI,
  41. .ekfOSd,
  42. .dlPwPr,
  43. .kBqPDk {
  44. height: 100%;
  45. max-height: 100%;
  46. }
  47. .gFIRbI,
  48. .ekfOSd,
  49. .kZrqiR {
  50. display: block;
  51. }
  52. .kZrqiR img {
  53. margin-bottom: 2px;
  54. object-fit: cover;
  55. }
  56. .image-carousel {
  57. height: 112px;
  58. object-fit: cover;
  59. width: auto;
  60. }
  61. }
  62. /* Custom font size */
  63. :root,
  64. button,
  65. div,
  66. li,
  67. p,
  68. .cuiKYE,
  69. .cQjDCC,
  70. .fxePXf,
  71. .jYEggK {
  72. font-size: fontsize !important;
  73. }
  74. .vWGl {
  75. font-size: calc(var(--fontsize) - .2rem)!important;
  76. }
  77. span > .vWGl {
  78. font-size: inherit !important;
  79. }
  80. .gxOVkK {
  81. font-size: calc(var(--fontsize) - .4rem)!important;
  82. }
  83. if nocomments {
  84. [data-tag="content-card-comment-thread-container"],
  85. .bmnjsr {
  86. display: none !important;
  87. }
  88. }
  89. if nojump {
  90. .sc-jrQzAO.bAzCwM,
  91. .sc-o4u8m1-2 > div > div:nth-child(2),
  92. [data-tag="upgrade-free-membership-button"],
  93. [data-tag="free-membership-upgrade-cta"] {
  94. display: none !important;
  95. height: 0 !important;
  96. max-height: 0 !important;
  97. }
  98. }
  99. if widemode {
  100. .PSylB,
  101. .bNdQpa,
  102. .kYRjdn,
  103. .hGVSIy,
  104. .idaEYe,
  105. .cuHeCZ,
  106. .McnWk,
  107. .lghRlU {
  108. max-width: 100% !important;
  109. }
  110. .gwGwhu {
  111. padding: 0;
  112. }
  113.  
  114. .bcGqVn {
  115. grid-template-columns: 80% 20%;
  116. }
  117.  
  118. .jwWBqC {
  119. grid-column-end: span 1;
  120. }
  121. .leSNuf:nth-child(odd)> .dGdDmr {
  122. flex-direction: row-reverse !important;
  123. }
  124. .sc-o4u8m1-4.hBubtn > div > div > h2 {
  125. margin-top: 1rem;
  126. }
  127. }
  128. }