MediaWiki:Common.css: Difference between revisions

From PavHaki Wiki
No edit summary
No edit summary
Line 26: Line 26:
   border:1px solid var(--boxborder);
   border:1px solid var(--boxborder);
   background-color: var(--boxbg);
   background-color: var(--boxbg);
   padding: 4px;
   padding: 3px;
}
}



Revision as of 21:31, 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*/
  --boxheader: #EFEFEF;
}





/*Formatting for infoboxes*/

div.infobox {
  float:right;
  max-width: 256px;
  min-width: 256px;
  display:flex;
  flex-direction:column;
  align-items:center;
  border:1px solid var(--boxborder);
  background-color: var(--boxbg);
  padding: 3px;
}

div.infoboxSectionHeader {
  text-align: center;
  background-color: var(--boxheader);
  width: 100%;
}

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

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

div.table {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  padding: 4px 0px 4px 0px;
}

div.rowname {
  width: 40%;
}

div.rowitem {
  width: 60%;
}