Template:If mobile/styles.css

来自删除百科
< Template:If mobile
w>A25698752022年10月13日 (四) 08:10的版本 撤销A2569875讨论)的版本74069131)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
/* 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 > .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 > .nomobile {
    display: inherit; /* The fallback */
    display: initial;
}