Jump to content

🚨 Get your Google Knowledge Panel
â—‰ Displays your name, photo, and profession in Google Search
Click here to get started now

MediaWiki:Common.css: Difference between revisions

From Knowlepedia
Created page with "→CSS placed here will be applied to all skins: .mw-parser-output > :first-child { margin-top: 0 !important; }"
 
No edit summary
Line 3: Line 3:
.mw-parser-output > :first-child {
.mw-parser-output > :first-child {
   margin-top: 0 !important;
   margin-top: 0 !important;
}
/* Custom wrapper for infobox that floats right on desktop and centers on mobile */
.custom-infobox-wrapper {
  float: right;
  margin: 0 0 1em 1em;
}
@media screen and (max-width: 600px) {
  .custom-infobox-wrapper {
    float: none !important;
    margin: 0 auto 1em auto !important;
    display: flex;
    justify-content: center;
  }
}
}

Revision as of 09:18, 21 June 2025

/* CSS placed here will be applied to all skins */

.mw-parser-output > :first-child {
  margin-top: 0 !important;
}


/* Custom wrapper for infobox that floats right on desktop and centers on mobile */
.custom-infobox-wrapper {
  float: right;
  margin: 0 0 1em 1em;
}

@media screen and (max-width: 600px) {
  .custom-infobox-wrapper {
    float: none !important;
    margin: 0 auto 1em auto !important;
    display: flex;
    justify-content: center;
  }
}