跳转到内容

Template:If mobile/sandbox/styles.css

维基百科,自由的百科全书
/* Because of how TemplateStyles and MobileFrontend work, it's not possible to
directly test for whether the mobile site is being used in a TemplateStyle. As
such we'll use Minerva as a proxy. This is imperfect. */

body:not(.skin-minerva) .ifmobile-sandbox > .mobile {
    display: none;
}

/*
    Force nomobile element to display when present.
    Overrides skin-based css for hiding the nomobile class, e.g. Timeless skin with screen size less than 850px.
*/
body.skin-minerva .ifmobile-sandbox > .nomobile {
    display: inherit; /* The fallback */
    display: initial;
}

body.skin-monobook .ifmobile-sandbox > .nomobile {
    display: inherit; /* The fallback */
    display: initial;
}

body.skin-timeless .ifmobile-sandbox > .nomobile {
    display: inherit; /* The fallback */
    display: initial;
}