Patreon responsive + customizations

Patreon website is more suitable for wide screens.

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

  1. /* ==UserStyle==
  2. @name Patreon responsive + customizations
  3. @version 1.0.1
  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-responsive-customizations
  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. /* Loved */
  29. [data-tag="like-button"][aria-checked="true"] > div > svg path {
  30. fill: #c6374d;
  31. }
  32. .dzWUmz {
  33. max-width: max-content;
  34. }
  35. if bigimages {
  36. .kZrqiR,
  37. .gFIRbI,
  38. .ekfOSd,
  39. .dlPwPr,
  40. .kBqPDk {
  41. height: 100%;
  42. max-height: 100%;
  43. }
  44. .gFIRbI,
  45. .ekfOSd,
  46. .kZrqiR {
  47. display: block;
  48. }
  49. .kZrqiR img {
  50. margin-bottom: 2px;
  51. object-fit: cover;
  52. }
  53. .image-carousel {
  54. height: 112px;
  55. object-fit: cover;
  56. width: auto;
  57. }
  58. }
  59. if fontsize {
  60. :root,
  61. button,
  62. div,
  63. li,
  64. p {
  65. font-size: fontsize !important;
  66. }
  67. }
  68. if nocomments {
  69. [data-tag="content-card-comment-thread-container"],
  70. .bmnjsr {
  71. display: none !important;
  72. }
  73. }
  74. if nojump {
  75. .sc-jrQzAO.bAzCwM,
  76. .sc-o4u8m1-2 > div > div:nth-child(2),
  77. [data-tag="upgrade-free-membership-button"],
  78. [data-tag="free-membership-upgrade-cta"] {
  79. display: none !important;
  80. height: 0 !important;
  81. max-height: 0 !important;
  82. }
  83. }
  84. if widemode {
  85. .PSylB,
  86. .bNdQpa,
  87. .kYRjdn,
  88. .idaEYe,
  89. .lghRlU {
  90. max-width: 100%;
  91. }
  92. .gwGwhu {
  93. padding: 0;
  94. }
  95.  
  96. .bcGqVn {
  97. grid-template-columns: 80% 20%;
  98. }
  99.  
  100. .jwWBqC {
  101. grid-column-end: span 1;
  102. }
  103. }
  104. }