Template:If mobile/styles.css: Difference between revisions

From A Best PCs Wiki
Jump to navigation Jump to search
import>HoodMoney54
Created page with "→‎<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 wit..."
 
m 1 revision imported: templates; importing from DLR wiki
 
(No difference)

Latest revision as of 01:42, 9 November 2024

/* <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;
}