Guest User

Untitled

a guest
Jun 13th, 2024
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.59 KB | None | 0 0
  1. // ** Valentines Day Berry Buttons Code ** //
  2.  
  3. // ** This code changes all the berry buttons to be the event berry button icons from Pokefarm's 2024 Valentines Day event ** //
  4.  
  5. // ** Variables ** //
  6. :root {
  7. --AsperBerry = url("https://pokefarm.wiki/images/f/f1/Sour_Valentine_Dessert_Berry.png")!important;
  8. --CheriBerry = url("https://pokefarm.wiki/images/9/9a/Spicy_Valentine_Dessert_Berry.png")!important;
  9. --ChestoBerry = url("https://pokefarm.wiki/images/8/84/Dry_Valentine_Dessert_Berry.png")!important;
  10. --PechaBerry = url("https://pokefarm.wiki/images/e/e9/Sweet_Valentine_Dessert_Berry.png")!important;
  11. --RawstBerry = url("https://pokefarm.wiki/images/a/a1/Bitter_Valentine_Dessert_Berry.png")!important;
  12. }
  13.  
  14.  
  15. // ** Asper Berry **//
  16. .showcase .berries[style*="aspearberry.png"],
  17. .showcase .berries[style*="aspear"],
  18. #partybox .berries[style*="aspearberry.png"],
  19. #partybox .berries[style*="aspear"],
  20. #field_berries .berries[style*="aspearberry.png"],
  21. #field_berries .berries[style*="aspear"],
  22. #multiuser .berries[style*="aspearberry.png"],
  23. #multiuser .berries[style*="aspear"],
  24. #summarypage .berries[style*="aspearberry.png"],
  25. #summarypage .berries[style*="aspear"]
  26. { background-image: var(--AsperBerry); margin-top: -1px;}
  27.  
  28. .showcase img[src*="aspearberry.png"],
  29. .showcase img[src*="aspear"],
  30. #partybox img[src*="aspearberry.png"],
  31. #partybox img[src*="aspear"],
  32. #field_berries img[src*="aspearberry.png"],
  33. #field_berries img[src*="aspear"],
  34. #multiuser img[src*="aspearberry.png"],
  35. #multiuser img[src*="aspear"],
  36. #summarypage img[src*="aspearberry.png"],
  37. #summarypage img[src*="aspear"]
  38. { content: var(--AsperBerry); margin-top: -1px;}
  39.  
  40. // ** Cheri Berry ** //
  41. #partybox .berries[style*="cheriberry.png"],
  42. #partybox .berries[style*="cheri"],
  43. #field_berries .berries[style*="cheriberry.png"],
  44. #field_berries .berries[style*="cheri"],
  45. #multiuser .berries[style*="cheriberry.png"],
  46. #multiuser .berries[style*="cheri"],
  47. #summarypage .berries[style*="cheriberry.png"],
  48. #summarypage .berries[style*="cheri"]
  49. { background-image: var(--CheriBerry); }
  50.  
  51. #partybox img[src*="cheriberry.png"],
  52. #partybox img[src*="cheri"],
  53. #field_berries img[src*="cheriberry.png"],
  54. #field_berries img[src*="cheri"],
  55. #multiuser img[src*="cheriberry.png"],
  56. #multiuser img[src*="cheri"],
  57. #summarypage img[src*="cheriberry.png"],
  58. #summarypage img[src*="cheri"]
  59. { content: var(--CheriBerry); }
  60.  
  61. // ** Chesto Berry ** //
  62. #partybox .berries[style*="chestoberry.png"],
  63. #partybox .berries[style*="chesto"],
  64. #field_berries .berries[style*="chestoberry.png"],
  65. #field_berries .berries[style*="chesto"],
  66. #multiuser .berries[style*="chestoberry.png"],
  67. #multiuser .berries[style*="chesto"],
  68. #summarypage .berries[style*="chestoberry.png"],
  69. #summarypage .berries[style*="chesto"]
  70. { background-image: var(--ChestoBerry); max-width: 75%; }
  71.  
  72. #partybox img[src*="chestoberry.png"],
  73. #partybox img[src*="chesto"],
  74. #field_berries img[src*="chestoberry.png"],
  75. #field_berries img[src*="chesto"],
  76. #multiuser img[src*="chestoberry.png"],
  77. #multiuser img[src*="chesto"],
  78. #summarypage img[src*="chestoberry.png"],
  79. #summarypage img[src*="chesto"]
  80. { content: var(--ChestoBerry); max-width: 75%;}
  81.  
  82. // ** Pecha Berry ** //
  83. #partybox .berries[style*="pechaberry.png"],
  84. #partybox .berries[style*="pecha"],
  85. #field_berries .berries[style*="pechaberry.png"],
  86. #field_berries .berries[style*="pecha"],
  87. #multiuser .berries[style*="pechaberry.png"],
  88. #multiuser .berries[style*="pecha"],
  89. #summarypage .berries[style*="pechaberry.png"],
  90. #summarypage .berries[style*="pecha"]
  91. { background-image: var(--PechaBerry); margin-top: -1px;}
  92.  
  93. #partybox img[src*="pechaberry.png"],
  94. #partybox img[src*="pecha"],
  95. #field_berries img[src*="pechaberry.png"],
  96. #field_berries img[src*="pecha"],
  97. #multiuser img[src*="pechaberry.png"],
  98. #multiuser img[src*="pecha"],
  99. #summarypage img[src*="pechaberry.png"],
  100. #summarypage img[src*="pecha"]
  101. { content: var(--PechaBerry); margin-top: -1px;}
  102.  
  103. // ** Rawst Berry ** //
  104. #partybox .berries[style*="rawstberry.png"],
  105. #partybox .berries[style*="rawst"],
  106. #field_berries .berries[style*="rawstberry.png"],
  107. #field_berries .berries[style*="rawst"],
  108. #multiuser .berries[style*="rawstberry.png"],
  109. #multiuser .berries[style*="rawst"],
  110. #summarypage .berries[style*="rawstberry.png"],
  111. #summarypage .berries[style*="rawst"]
  112. { background-image: var(--RawstBerry); margin-top: -2px; }
  113.  
  114. #partybox img[src*="rawstberry.png"],
  115. #partybox img[src*="rawst"],
  116. #field_berries img[src*="rawstberry.png"],
  117. #field_berries img[src*="rawst"],
  118. #multiuser img[src*="rawstberry.png"],
  119. #multiuser img[src*="rawst"],
  120. #summarypage img[src*="rawstberry.png"],
  121. #summarypage img[src*="rawst"]
  122. { content: var(--RawstBerry); margin-top: -2px; }
  123.  
  124.  
  125. // ** Oran Berry ** //
  126. #partybox .berries[style*="oranberry.png"],
  127. #partybox .berries[style*="oran"],
  128. #field_berries .berries[style*="oranberry.png"],
  129. #field_berries .berries[style*="oran"],
  130. #multiuser .berries[style*="oranberry.png"],
  131. #multiuser .berries[style*="oran"],
  132. #summarypage .berries[style*="oranberry.png"],
  133. #summarypage .berries[style*="oran"]
  134. { background-image: var(--AsperBerry); }
  135.  
  136. #partybox img[src*="oranberry.png"],
  137. #partybox img[src*="oran"],
  138. #field_berries img[src*="oranberry.png"],
  139. #field_berries img[src*="oran"],
  140. #multiuser img[src*="oranberry.png"],
  141. #multiuser img[src*="oran"],
  142. #summarypage img[src*="oranberry.png"],
  143. #summarypage img[src*="oran"]
  144. { content: var(--AsperBerry); }
  145.  
  146. // ** Remove Border On-Hover ** //
  147. .party > div:hover > .action a[data-berry]::after {
  148. border-color: transparent;
  149. }
  150.  
  151. // ** Fit New Images to Button ** //
  152. // Profile Page Fix
  153. #profilepage #partybox .party > div > .action > .berrybuttons > a {
  154. line-height: 25px;
  155. }
  156.  
  157. // Party Page Fix
  158. #partypage #partybox .party > div > .action > .berrybuttons > a {
  159. line-height: 50px;
  160. }
  161.  
  162. // Pokemon Summary Page Fix
  163. .party > div > .action > .berrybuttons > a {
  164. line-height: 47px;
  165. }
  166.  
  167. // Showcase Page Fix
  168. .showcase .action > .berrybuttons > a.tooltip_trigger img, .showcase .action > .berrybuttons > a img {
  169. max-width: 100%;
  170. }
  171.  
  172. // Multiuser Page Fix
  173. #multiuser .party > div[data-pid] > .action .berrybuttons {
  174. max-height: 100%;
  175. }
  176.  
  177. // All Pages Fix
  178. .action > .berrybuttons > a.tooltip_trigger, .action > .berrybuttons > a {
  179. overflow: hidden;
  180. max-width: 100%;
  181.  
  182. img {
  183. max-width: 60%;
  184. height: auto;
  185. }
  186.  
  187. }
  188.  
  189. // Chesto Berry on Field Page Fix
  190. #field_berries img[src*="chesto"] {
  191. max-width: 105%;
  192. min-width: 105%;
  193. }
  194.  
  195. #partybox .showcase img[src*="chestoberry.png"] {
  196. max-width: 100%;
  197. }
  198.  
Advertisement
Add Comment
Please, Sign In to add comment