सामग्री पर जाएँ

साँचा:If mobile/styles.css

From वर्ल्डपीडिया, the free encyclopedia
Arsait (वार्ता | योगदान) द्वारा परिवर्तित २३:२०, २ मार्च २०२५ का अवतरण (1 revision imported from enwiki:Template:If_mobile/styles.css)
(अंतर) ← पुराना अवतरण | वर्तमान अवतरण (अंतर) | नया अवतरण → (अंतर)
/* <noinclude>{{pp-template|small=yes}}</noinclude> *//* 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;
}