Template:If mobile/sandbox/styles.css

From Wikipedia, the free encyclopedia
/* MobileFrontend (en.m.wikipedia.org) needs to hide .nomobile when used with a
   skin other than minerva, e.g. ?useskin=monobook */
body.mw-mf .ifmobile > .nomobile {
    display: none;
}

/* Desktop (en.wikipedia.org) needs to hide .mobile  */
body:not(.mw-mf) .ifmobile > .mobile {
    display: none;
}

/* Desktop needs to show .nomobile when used with minerva skin, or to override
   skin-based css for hiding the nomobile class, e.g. Timeless skin with screen
   size less than 850px (otherwise nothing will be displayed). The !important
   is needed because minerva uses it in its rule for .nomobile
}`  */
body:not(.mw-mf) .ifmobile > .nomobile {
    display: inherit !important; /* The fallback */
    display: initial !important;
}

/* Only to be shown as a fallback when CSS is disabled */
.ifmobile > .css-disabled-separator {
	display: none;
}