Greasy Fork is available in English.

Fandom | Modern Full Width Theme

Makes the wiki page full-width and adds a sidebar with a sticky header and fixed search bar.

  1. /* ==UserStyle==
  2. -- THEME STUFF --
  3. @name Fandom | Modern Full Width Theme
  4. @version 1.0.1
  5. @description Makes the wiki page full-width and adds a sidebar with a sticky header and fixed search bar.
  6.  
  7. -- AUTHOR STUFF --
  8. @namespace Freeplay
  9. @author Freeplay (https://pages.codeberg.org/freeplay/)
  10. @homepageURL https://codeberg.org/Freeplay/UserStyles
  11. @supportURL https://codeberg.org/Freeplay/UserStyles/issues
  12. @preprocessor stylus
  13.  
  14.  
  15. ==/UserStyle== */
  16.  
  17.  
  18. @media only screen and (min-width: 1225px) {
  19. div {
  20. scrollbar-color: darkorange #0000 !important;
  21. }
  22. .banner-notifications-placeholder {
  23. z-index: 0;
  24. }
  25. .wds-banner-notification__container {
  26. width: calc(100% - 350px);
  27. right: 0;
  28. margin: 0;
  29. margin-left: auto;
  30. }
  31. .WikiaTopAds {
  32. width: calc(100% - 350px);
  33. right: 0;
  34. margin: 0;
  35. margin-left: auto;
  36. padding: 0;
  37. }
  38.  
  39. /* Fandom Header */
  40. .wds-global-navigation {
  41. position: relative;
  42. margin-right: 0px;
  43. margin-left: auto;
  44. width: calc(100% - 350px)
  45. }
  46.  
  47.  
  48. /* Wiki Header */
  49. .wds-community-header {
  50. margin-right: 0px;
  51. position: sticky;
  52. height: 125px;
  53. top: -70px;
  54. width: calc(100% - 350px);
  55. opacity: 0.95;
  56. }
  57. .wds-community-header__wordmark {
  58. height: 55px;
  59. margin-bottom: 0px;
  60. position: sticky;
  61. top: 0;
  62. }
  63.  
  64.  
  65. .wds-community-header__local-navigation {
  66. justify-content: center;
  67. position: absolute;
  68. bottom: 5px;
  69. width: 100%;
  70. }
  71.  
  72.  
  73. /* Page */
  74. .WikiaPage {
  75. margin-right: 0px;
  76. padding: 0px;
  77. width: calc(100% - 350px);
  78. box-shadow: -150px 0px 140px rgba(255, 255, 255, .875);
  79. border: none;
  80. }
  81. .WikiaPageContentWrapper {
  82. padding: 20px;
  83. }
  84. .WikiaMainContent {
  85. width: 100%;
  86. }
  87. #WikiaPageBackground {
  88. opacity: 0.95;
  89. }
  90. .community-background {
  91. top: 0;
  92. width: 100%;
  93. object-fit: fill;
  94. }
  95. body.skin-oasis.background-not-tiled{
  96. background-size: cover;
  97. }
  98.  
  99. /* Fan Feed */
  100. #mixed-content-footer {
  101. margin: 0;
  102. }
  103. .mcf-column {
  104. width: 33.33%;
  105. }
  106. .mcf-card {
  107. width: 99%;
  108. }
  109.  
  110.  
  111.  
  112. /*** Sidebar ***/
  113. .WikiaRail {
  114. position: fixed;
  115. top: 55px;
  116. left: 0;
  117. margin: 0px;
  118. height: calc(100% - 55px);
  119. width: 350px;
  120. color: orange;
  121. background-color: #002a32;
  122. z-index: 0;
  123. }
  124. .wikia-rail-inner {
  125. overflow: auto;
  126. padding-top: 45px;
  127. }
  128. .WikiaRail .rail-module h2.has-icon svg {
  129. fill: orange;
  130. }
  131. /* Pages i'm following */
  132. .WikiaRail .module {
  133. background-color: transparent;
  134. border: none;
  135. }
  136. .FollowedPagesModule a {
  137. color: cyan;
  138. }
  139. /* Recent Wiki Activities */
  140. .WikiaRail .activity-module .page-title > a {
  141. color: cyan;
  142. font-weight: bold;
  143. }
  144. .WikiaRail .activity-module .edit-info {
  145. color: rgba(255, 255, 255, 0.75);
  146. }
  147. .WikiaRail .activity-module .edit-info .edit-info-user {
  148. color: white;
  149. }
  150. /* Help grow the wiki */
  151. .WikiaRail .rail-module .wds-button.wds-is-secondary {
  152. border-color: gray;
  153. border-radius: 10px;
  154. color: cyan;
  155. }
  156. .WikiaRail .rail-module .wds-button.wds-is-secondary:focus:not(:disabled), .WikiaRail .rail-module .wds-button.wds-is-secondary:hover:not(:disabled), .WikiaRail .rail-module .wds-button.wds-is-secondary:active, .WikiaRail .rail-module .wds-button.wds-is-secondary.wds-is-active {
  157. color: lightblue;
  158. border-radius: 5px;
  159. }
  160.  
  161. /* Popular Pages */
  162. #WikiaAdInContentPlaceHolder.rail-sticky-module {
  163. position: relative;
  164. top: 0;
  165. }
  166. .WikiaRail .premium-recirculation-rail a {
  167. color: lightgrey;
  168. }
  169.  
  170. /*Top Pages*/
  171. .Search.this-wiki .SearchAdsTopWrapper {
  172. margin-top: 0;
  173. padding: 20px;
  174. padding-top: 0;
  175. width: 310px;
  176. height: calc(100% - 70px);
  177. overflow-y: auto;
  178. }
  179. .WikiaRail .side-articles {
  180. height: auto;
  181. overflow: auto;
  182. width: 320px;
  183. min-height: 800px;
  184. padding-right: 10px;
  185. }
  186. .Search .result {
  187. border: none !important;
  188. }
  189.  
  190. /* Search Bar */
  191. .wds-global-navigation__search-container {
  192. position: fixed;
  193. left: 0;
  194. margin: 0px;
  195. width: 310px;
  196. height: 55px;
  197. background-color: #002a32;
  198. padding-left: 20px;
  199. padding-right: 20px;
  200. }
  201. .wds-dropdown.wds-has-dark-shadow .wds-dropdown__content {
  202. width: 350px;
  203. margin-left: -55px;
  204. }
  205.  
  206. /* Contents */
  207. #toc {
  208. position: fixed;
  209. left: 0;
  210. top: 55px;
  211. margin: 0px;
  212. width: 350px;
  213. padding: 0px;
  214. border: none;
  215. background-color: #002a32;
  216. color: white;
  217. box-shadow: 0px 0px 20px rgb(255, 255, 255, .35);
  218. height: 30px;
  219. overflow: auto;
  220. z-index: 10;
  221. }
  222. nav.toc.show > ol {
  223. z-index: 10;
  224. overflow: auto;
  225. position: fixed;
  226. width: 310px;
  227. padding-left: 20px;
  228. padding-right: 20px;
  229. background-color: #002a32;
  230. height: calc(100% - 90px);
  231. max-height: calc(100% - 90px);
  232. color: white;
  233. }
  234.  
  235.  
  236.  
  237.  
  238.  
  239. /* Footer */
  240. .wds-global-footer {
  241. z-index: 10;
  242. margin-left: auto;
  243. margin: 0;
  244. }
  245. }