Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* <pre>
*
* A responsive mobile interface for FandomDesktop.
*
* Authors:
* * Noreplyz (Oasis)
* * Sophiedp (UCP)
* * dr03ramos (UCX)
*
* Maintainers:
* * SuperDragonXD1
*
* Notes
* * If you have issues with the global navigation (excluding the simplified FandomMobile-like style), please edit/post your issues in [[TopGlobalNav]]
*/
/* CSS Imports */
@import url("/load.php?articles=u:dev:MediaWiki:ResponsiveMobile/editor.css&only=styles&mode=articles");
/* So I don't have to recreate the global nav anymore */
@import url("/load.php?mode=articles&articles=u:dev:MediaWiki:TopGlobalNav.css&only=styles")
(max-width: 785px);
@media only screen and (max-width: 1023px) {
.sticky-modules-wrapper {
display: flex;
justify-content: space-between;
}
.rail-module__list {
grid-template-columns: unset;
}
.rail-module,
.rail-sticky-module {
flex-basis: 48%;
width: 48%;
}
.right-rail-wrapper {
padding: 0;
}
.page__main,
.page__right-rail {
padding-left: 26px;
padding-right: 26px;
}
.page-header__action-button.has-label .wds-icon {
margin-right: 6px !important;
}
.page-side-tools__wrapper {
left: -5px;
}
.bottom-ads-container .ad-slot-placeholder,
.top-ads-container .ad-slot-placeholder {
width: unset !important;
max-width: none;
min-width: unset !important;
overflow: hidden !important;
}
/* Just why Fandom... why do you have to have this tiny inconcistentcy */
.fandom-sticky-header
.wiki-tools
a.wds-button.wds-is-secondary:not(.is-hidden-on-smaller-breakpoints) {
border-top-left-radius: 3px;
border-bottom-left-radius: 3px;
}
.fandom-sticky-header
.wiki-tools
a.wds-button.wds-is-secondary:not(.is-hidden-on-smaller-breakpoints)
~ a.wds-button {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}
.fandom-community-header
.wiki-tools
a.wds-button.wds-is-secondary:not(.is-hidden-on-smaller-breakpoints) {
border-top-left-radius: 3px;
border-bottom-left-radius: 3px;
}
.fandom-community-header
.wiki-tools
a.wds-button.wds-is-secondary:not(.is-hidden-on-smaller-breakpoints)
~ a.wds-button {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}
}
@media only screen and (max-width: 740px) {
.global-explore-navigation {
transform: translateX(-110px)!important;
}
}
@media only screen and (max-width: 785px) {
/*
* ====||||====
* Global Navigation
*
* Replaced partially with [[TopGlobalNav]].
*/
.global-explore-navigation {
left: unset;
right: 0;
transform: translateX(-125px);
}
.global-explore-navigation__label {
display: none;
}
.global-top-navigation__fandom-logo {
display: none;
}
.global-top-navigation__action-wrapper {
gap: 0;
}
.search-container {
min-width: 100px;
}
/*
* ====||||====
* Sticky header
*/
.fandom-sticky-header {
min-width: unset;
}
.fandom-sticky-header .fandom-community-header__local-navigation {
display: none;
}
.fandom-sticky-header .search-app__wrapper {
overflow: visible!important
}
.fandom-sticky-header .search-app__button {
display: none;
}
.community-navigation .fandom-sticky-header__logo img {
margin-left: 15px
}
.community-navigation__fandom-heart {
display: none;
}
/*
* ====||||====
* The community header thingy, after the local nav
*/
.community-header-wrapper {
width: 95%;
margin-left: auto;
margin-right: auto;
margin-top: 12px;
height: auto;
}
.fandom-community-header {
grid-template-areas: unset;
grid-template-columns: min-content 1fr;
grid-template-rows: auto auto;
}
.fandom-community-header__image, .has-no-logo .fandom-community-header__top-container {
grid-column: 1;
}
.fandom-community-header__top-container {
grid-column: 2;
}
.fandom-community-header__local-navigation {
grid-column: 1/3;
grid-row: 2;
}
.fandom-community-header__image img {
max-height: 45px;
max-width: 100px;
}
.fandom-community-header__background.fullScreen {
width: 100%;
}
.fandom-community-header__local-navigation .wds-tabs {
display: flex;
flex-wrap: wrap;
}
.fandom-community-header__local-navigation .wds-tabs__tab-label {
font-size: 11px;
/* The font is too big, so this.... */
}
.fandom-community-header__local-navigation
.wds-dropdown.wds-is-active.is-clicked
.wds-dropdown__toggle
a:not([href="#"]) {
text-decoration: underline;
color: var(--theme-link-color);
}
/*
* ====||||====
* Page content usability
*/
.mw-parser-output,
.page-content p,
.page-content section {
font-weight: 300;
}
#content {
font-size: 16px;
}
.page-content #mw-content-text .mw-parser-output > h2 {
border-bottom-width: 0.3px;
display: flex;
justify-content: space-between;
font-weight: 430;
}
.page-content #mw-content-text .mw-parser-output > h2 .mw-headline {
width: 100%;
}
.page-content #mw-content-text .mw-parser-output > h2 svg {
width: 24px;
height: 24px;
fill: currentColor;
}
.page-content ul,
.page-content ol {
font-weight: 300;
margin-left: 30px;
}
/*
* ====||||====
* Other snippets
*/
/* Sitenotice/Notifs */
.notifications-placeholder {
width: fit-content;
bottom: 1px;
left: unset;
width: -moz-available;
/* WebKit-based browsers will ignore this. */
width: -webkit-fill-available;
/* Mozilla-based browsers will ignore this. */
width: fill-available;
}
.notifications-placeholder .wds-banner-notification__container {
width: 100%;
}
.sitenotice-wrapper {
width: 100%;
}
.sitenotice {
width: fit-content;
}
/* Search UI */
.unified-search__layout {
display: initial !important;
}
.unified-search__input__wrapper__inner {
flex-wrap: wrap;
}
/* Images */
.skin-fandomdesktop .LightboxModal {
margin: 0 !important;
width: 90% !important;
height: 90% !important;
}
/* Force thumb left/thumb right images to be displayed at center */
.page-content .tleft,
.page-content .tright {
clear: both;
float: none;
text-align: center;
width: 100% !important;
margin: 0 0 12px;
}
/* Wikia Gallery */
.wikia-gallery {
column-count: 2;
column-gap: 13px;
}
.wikia-gallery > .wikia-gallery-caption:empty {
display: none;
}
.wikia-gallery-item {
padding: 0 !important;
margin: 0 0 18px !important;
width: 100% !important;
}
.wikia-gallery-item .thumb {
height: fit-content!important;
max-height: 30vh;
}
/* Reset inline sizing */
.wikia-gallery .gallery-image-wrapper {
position: static !important;
width: auto !important;
height: 100% !important;
max-width: 100% !important;
}
.wikia-gallery .thumb a.image,
.wikia-gallery .thumb a.image-no-lightbox {
width: auto !important;
height: 100% !important;
max-width: 100% !important;
}
.wikia-gallery .thumb a.image img,
.wikia-gallery .thumb a.image-no-lightbox img {
display: block;
object-fit: contain !important;
max-height: 30vh;
min-height: 15vh;
margin: 0 auto;
}
.wikia-gallery .lightbox-caption {
width: 100% !important;
margin-bottom: 0;
}
/* Simplified lightbox */
.LightboxModal .LightboxHeader .share-button,
.LightboxModal .LightboxHeader .more-info-button,
.LightboxModal .LightboxHeader .user-details {
display: none;
}
/* Make media in lightbox scrollable */
.LightboxModal .media {
overflow: auto;
}
.LightboxModal .media img {
max-height: 100%;
object-fit: contain;
width: 100%;
}
/* Give more room to the lightbox */
.lightboxContainer {
align-items: end;
padding: 73px 9px 18px;
}
.skin-fandomdesktop .LightboxModal {
margin: 0 !important;
width: 100% !important;
height: 100% !important;
}
.LightboxModal .LightboxHeader h1 {
max-width: 100%;
float: none;
}
/* Reintroduce the see full size link, because you can't zoom the image in the lightbox */
.LightboxModal .LightboxHeader .see-full-size-link {
display: inline-block;
margin: 0;
border: 0;
padding: 0;
}
/* Fandom categories */
#content .category-page__trending-pages {
grid-template-columns: repeat(2, 1fr);
}
.page-content ul.category-page__members-for-char {
margin: 0;
}
#content .category-page__members {
column-count: 1;
}
/*
* ====||||====
* Uncategorized
*/
html:not(.ve-active) .page.has-right-rail {
display: block; /* maybe the grid layout causes the right rail to clip? */
}
.resizable-container {
width: 95%;
}
#userProfileApp .user-identity-header__attributes {
min-width: unset;
}
.fandom-community-header__local-navigation
.explore-menu
.wds-dropdown__toggle
> a
> span {
display: block;
}
#WikiaBar,
a[data-tracking-label="start-a-wiki"] {
display: none;
}
#WikiaRail.is-ready {
flex-flow: column nowrap!important;
max-height: none!important;
}
.main-container {
min-width: unset;
margin-left: 0;
width: 100%;
}
.rail-module,
.rail-sticky-module,
.sticky-modules-wrapper {
display: block;
width: 100%;
max-width: unset;
}
.toc {
width: 100%;
clear: both;
}
/* Sometimes comment author's usernames can be quite long, even going off the page */
.EntityHeader_header-details__-lQuR {
flex-wrap: wrap;
}
}
@media only screen and (max-width: 570px) {
#global-top-navigation {
justify-content: start;
}
.community-navigation__fandom-heart {
min-width: 44px;
}
.global-top-navigation__action-wrapper {
margin-left: 0
}
.global-top-navigation__item.global-top-navigation__start-new-wiki,
.global-explore-navigation {
display: none
}
.resizable-container {
width: 98% !important;
}
.search-app__actions-wrapper {
display: none;
}
:has(.search-app__input.search-app__input--focused) .search-app__actions-wrapper {
display: block;
}
:has(.search-app__input.search-app__input--focused) .wiki-tools {
display: none;
}
.page-counter {
display: none;
}
/*
.page-side-tools {
top: 80%;
}
*/
.fandom-sticky-header__sitename {
font-size: 14px;
}
.fandom-community-header__top-container {
justify-content: space-between;
}
.fandom-community-header
.fandom-community-header__local-navigation
.medium-navigation
.wds-dropdown:first-child
.wds-tabs__tab-label
span {
display: none;
}
.fandom-community-header
.fandom-community-header__local-navigation
.medium-navigation
.wds-dropdown:first-child
.wds-dropdown__content {
left: 6em;
}
/* Page title */
.page-header__bottom {
display: grid;
grid-template-rows: auto auto;
grid-template-columns: auto;
grid-template-areas: "a" "b";
}
.page-header__title-wrapper {
grid-area: a;
text-align: center;
}
.page-header .page-header__title {
font-size: 32px;
font-weight: 500;
text-align: center;
}
.page-header__title-actions {
grid-area: b;
}
.page-header__actions {
justify-content: center;
}
/* Page content */
.page__main,
.page__right-rail,
.mcf-wrapper {
padding-left: 20px;
padding-right: 20px;
}
.page__main {
padding: 24px 13px;
}
.page-side-tools__wrapper {
left: 93%;
}
.sticky-toc.toc {
right: 48px;
left: unset;
}
.fandom-community-header
.wiki-tools
.wds-dropdown
.wiki-tools-dropdown-separator {
display: block;
}
.wiki-tools > .wds-dropdown .wiki-tool-in-dropdown {
display: block;
}
.wiki-tools > .wds-button.is-hidden-on-smaller-breakpoints {
display: none;
}
/* Notif full width */
div.global-navigation
> div.global-navigation__bottom
> div.notifications
> div.wds-dropdown
> div.wds-dropdown__content {
width: 100%;
left: 0 !important;
right: 0 !important;
}
/*
* ====||||====
* User pages
*/
#userProfileApp .user-identity-avatar {
margin: auto;
}
#userProfileApp .user-identity-box {
flex-direction: column;
}
#userProfileApp .user-identity-header__attributes {
clear: both;
margin: auto;
}
#userProfileApp .user-identity-header {
flex-direction: column;
}
#userProfileApp .user-identity-header__actions {
text-align: center;
margin: auto;
padding: 10px;
}
#userProfileApp .user-profile-navigation {
overflow: auto;
}
#userProfileApp ul.user-identity-stats,
#userProfileApp .user-identity-bio {
text-align: center;
margin: auto;
}
#userProfileApp .user-identity-social {
justify-content: center;
}
#userProfileApp .user-identity-social > li:last-child {
margin: 0;
}
#userProfileApp .user-identity-header__attributes {
display: flex;
flex-direction: column;
text-align: center;
min-width: unset;
}
body.skin-fandomdesktop #userProfileApp .user-identity-header__tag {
width: fit-content;
margin: 0.4em auto;
}
body.skin-fandomdesktop #userProfileApp .modal-wrapper__main {
flex-direction: column;
}
body.skin-fandomdesktop #userProfileApp .user-profile-navigation__link {
white-space: nowrap;
}
body.skin-fandomdesktop
#userProfileApp
.user-profile-editor__bio-field
.wds-input__field {
height: 7em !important;
}
body.fandom-sticky-header-visible
.global-navigation
.notifications
.wds-dropdown
.wds-dropdown__content {
top: 46px !important;
z-index: 99999;
}
/* CurseProfile */
.curseprofile .leftcolumn,
.curseprofile .rightcolumn {
width: 100%;
}
body.skin-fandomdesktop .curseprofile .userinfo {
display: flex;
flex-direction: column;
align-items: center;
}
body.skin-fandomdesktop .curseprofile .mainavatar {
margin-right: 0;
}
body.skin-fandomdesktop .curseprofile .headline,
body.skin-fandomdesktop .curseprofile #profile-user-fields {
text-align: center;
}
.is-gamepedia .comments .avatar {
margin-right: 40px;
}
.curseprofile .rightfloat {
float: none;
text-align: center;
}
.is-gamepedia .friends li:not(:last-of-type) {
margin-bottom: 10px;
}
.is-gamepedia .friends li img {
height: 42px;
width: 42px;
margin-right: 5px;
}
/* No gallery margin */
.page-content ul.gallery {
margin-left: 0;
}
/* Wiki search */
.WikiaPageContentWrapper .unified-search__result__community,
.mw-body-content .unified-search__result__community,
.page-content .unified-search__result__community {
grid-template-areas: "thumbnail thumbnail" "content content";
grid-template-columns: auto auto;
}
.search-modal, .search-modal::before {
top: 55px;
}
/* Portable Infoboxes */
.portable-infobox {
float: none;
margin: auto;
clear: both;
width: 93% !important;
}
.portable-infobox .pi-font,
.portable-infobox .pi-data-label {
font-size: 14px;
}
/* Preferences (this style can be loaded with Stylus/Stylish via Kiwi browser) */
#mw-htmlform-info
> .oo-ui-fieldLayout-align-top
> .oo-ui-fieldLayout-body
> .oo-ui-fieldLayout-header {
display: block;
width: 100%;
font-weight: 450;
}
#mw-htmlform-info
> .oo-ui-fieldLayout.oo-ui-fieldLayout-align-top
> .oo-ui-fieldLayout-body
> .oo-ui-fieldLayout-field {
display: block;
width: 100%;
}
.skin-fandomdesktop #preferences {
padding: 0;
}
.skin-fandomdesktop .oo-ui-tabSelectWidget-framed {
display: flex;
}
.skin-fandomdesktop #preferences .mw-prefs-buttons {
margin-left: 0;
margin-right: 0;
}
/* Main page tags (I'm surprised this hasn't been tackled before) */
.page-side-tools__wrapper {
left: 93%;
}
.main-page-tag-lcs-exploded {
width: 100%!important;
}
.main-page-tag-rcs {
column-count: 1;
}
}