MediaWiki:Mobile.css: Difference between revisions

From The Reed and Rite
Created page with "→All CSS here will be loaded for users of the mobile site: .infobox { margin: 0 auto !important; →Center the infobox: float: none !important; →Prevent floating to the right: clear: both !important; →Ensure it sits above the rest of the content: width: auto !important; →Allow it to size naturally: max-width: 90% !important; →Prevent it from taking full width: }"
 
mNo edit summary
Line 1: Line 1:
/* All CSS here will be loaded for users of the mobile site */
/* All CSS here will be loaded for users of the mobile site */


/* Mobile override for infobox */
.infobox {
.infobox {
    margin: 0 auto !important;     /* Center the infobox */
  float: none !important;
    float: none !important;       /* Prevent floating to the right */
  clear: both !important;
    clear: both !important;       /* Ensure it sits above the rest of the content */
  margin: 1em auto !important;
    width: auto !important;       /* Allow it to size naturally */
  display: block !important;
    max-width: 90% !important;     /* Prevent it from taking full width */
  width: auto !important;
  max-width: 90% !important;
  top: 0 !important;
  position: relative;
}
}

Revision as of 23:53, 21 May 2025

/* All CSS here will be loaded for users of the mobile site */

/* Mobile override for infobox */
.infobox {
  float: none !important;
  clear: both !important;
  margin: 1em auto !important;
  display: block !important;
  width: auto !important;
  max-width: 90% !important;
  top: 0 !important;
  position: relative;
}