Skip to content

Instantly share code, notes, and snippets.

@jdlrobson
Last active June 26, 2023 16:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jdlrobson/dbb124296ed2a1fc7242018c7b589059 to your computer and use it in GitHub Desktop.
Save jdlrobson/dbb124296ed2a1fc7242018c7b589059 to your computer and use it in GitHub Desktop.
A MediaWiki compatibility stylesheet for responsive Minerva support
/* This template is loaded on the main page to address T32405
Please feel free to adapt the code, translate this message.
Updates can be found in https://gist.github.com/jdlrobson/dbb124296ed2a1fc7242018c7b589059 */
@media screen and ( max-width: 720px ) {
body.skin-minerva td,
body.skin-minerva tr,
body.skin-minerva .mp-column,
body.skin-minerva .floatleft,
body.skin-minerva .floatright,
body.skin-minerva tbody,
body.skin-minerva table {
display: block !important;
float: none !important;
width: 100% !important;
height: auto !important;
box-sizing: border-box;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment