MediaWiki:Common.css: Difference between revisions

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


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


Line 21: Line 22:
   flex-direction:column;
   flex-direction:column;
   align-items:center;
   align-items:center;
   border:1px solid var(--b);
   border:1px solid var(--boxborder);
  background-color: var(--boxbg);
}
}



Revision as of 21:30, 16 September 2017

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

:root {
  --boxbg: #F8F9FA;
  --boxborder: #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(--boxborder);
  background-color: var(--boxbg);
}

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

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