Jump to content

MediaWiki:Common.css: Difference between revisions

From Raleighpedia
Created page with "CSS placed here will be applied to all skins: Hide mobile-only blocks on desktop skins: .mw-mobile-only { display: none; } Allow mobile skin (Minerva) to control visibility itself: .skin-minerva .mw-mobile-only { display: block; } Ensure desktop-only blocks show on desktop and hide on Minerva: .skin-minerva .nomobile { display: none; }"
 
No edit summary
Line 12: Line 12:
/* Ensure desktop-only blocks show on desktop and hide on Minerva */
/* Ensure desktop-only blocks show on desktop and hide on Minerva */
.skin-minerva .nomobile {
.skin-minerva .nomobile {
  display: none;
}
/* Make Main Page flush at top */
.page-Main_Page .mw-body,
.page-Main_Page #content,
.page-Main_Page .mw-body-content {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
.page-Main_Page .firstHeading {
   display: none;
   display: none;
}
}

Revision as of 08:04, 28 January 2026

/* CSS placed here will be applied to all skins */
/* Hide mobile-only blocks on desktop skins */
.mw-mobile-only {
  display: none;
}

/* Allow mobile skin (Minerva) to control visibility itself */
.skin-minerva .mw-mobile-only {
  display: block;
}

/* Ensure desktop-only blocks show on desktop and hide on Minerva */
.skin-minerva .nomobile {
  display: none;
}

/* Make Main Page flush at top */
.page-Main_Page .mw-body,
.page-Main_Page #content,
.page-Main_Page .mw-body-content {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.page-Main_Page .firstHeading {
  display: none;
}