MediaWiki:Common.css: Difference between revisions

From PavHaki Wiki
No edit summary
No edit summary
Line 25: Line 25:


div.image img {
div.image img {
  margin-right: auto;
  margin-left: auto;
   max-width: 95%;
   max-width: 95%;
   height: auto;
   height: auto;
}
}

Revision as of 17:49, 16 September 2017

/*Global variables
 *
 *NOTES:
 *- Use two spaces for indentation
 */

:root {
  --b: #A2A9B1; /*Border color used to match the default wiki skin*/
}





/*Formatting for infoboxes*/

div.infobox {
  float:right;
  width:302px;
  display:flex;
  flex-direction:column;
  align-items:center;
  border:1px solid var(--b);
}

div.image img {
  margin-right: auto;
  margin-left: auto;
  max-width: 95%;
  height: auto;
}