Difference between revisions of "Template:If mobile/styles.css"
Jump to navigation
Jump to search
imported>Evad37 m (Evad37 moved page Template:TemplateStyles sandbox/Evad37/ifmobile.css to Template:If mobile/styles.css without leaving a redirect: ready for use in live template) |
imported>Pseudo Classes (Fix) |
||
| (3 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
| − | .ifmobile . | + | .ifmobile > .mobile:nth-child(2n) { |
| − | + | display: none; | |
| − | .ifmobile . | + | } |
| − | + | ||
| + | /* | ||
| + | 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. | ||
| + | */ | ||
| + | .ifmobile > .nomobile { | ||
| + | display: inherit; /* The fallback */ | ||
| + | display: initial; | ||
} | } | ||
Latest revision as of 05:03, 26 December 2020
.ifmobile > .mobile:nth-child(2n) {
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.
*/
.ifmobile > .nomobile {
display: inherit; /* The fallback */
display: initial;
}