MediaWiki:Common.css: Difference between revisions

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


div.image {
div.image {
   background-color: red;
   display:flex;
  flex-direction:column;
  align-items:center;
   width: 95%;
   width: 95%;
}
}

Revision as of 18:10, 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:256px;
  display:flex;
  flex-direction:column;
  align-items:center;
  border:1px solid var(--b);
}

div.image {
  display:flex;
  flex-direction:column;
  align-items:center;
  width: 95%;
}

div.image img {
  max-width: 100%;
  height: auto;
}