Difference between revisions of "MediaWiki:Mobile.css"

(Tags: mobile edit, mobile web edit)
Line 1: Line 1:
 
/* Das folgende CSS wird für alle Nutzer der mobilen Ansicht geladen. */
 
/* Das folgende CSS wird für alle Nutzer der mobilen Ansicht geladen. */
  
/* To make images responsive */
+
// Prevent inline styles on images in wikitext
img {
+
// Note we restrict to img's to avoid conflicts with VisualEditor shields
max-width:100%;
+
// See bug 62460
height:auto;
+
a > img {
}
+
// make sure that images in articles don't cause a horizontal scrollbar
 +
// on small screens
 +
max-width: 100% !important;
 +
height: auto !important;
 +
}

Revision as of 02:35, 13 February 2020

/* Das folgende CSS wird für alle Nutzer der mobilen Ansicht geladen. */

// Prevent inline styles on images in wikitext
	// Note we restrict to img's to avoid conflicts with VisualEditor shields
	// See bug 62460
	a > img {
		// make sure that images in articles don't cause a horizontal scrollbar
		// on small screens
		max-width: 100% !important;
		height: auto !important;
	}