Difference between revisions of "MediaWiki:Mobile.css"

(Tags: mobile edit, mobile web edit)
m (Änderung 218323 von WikiSysop (Diskussion) rückgängig gemacht.)
(Tag: Undo)
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. */
  
// Prevent inline styles on images in wikitext
+
/* To make images responsive */
// Note we restrict to img's to avoid conflicts with VisualEditor shields
+
img {
// See bug 62460
+
max-width:100%;
a > img {
+
height:auto;
// 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:56, 13 February 2020

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

/* To make images responsive */
img {
	max-width:100%;
	height:auto;
}