MediaWiki:Common.css: Difference between revisions
Unuvun Rain (talk | contribs) No edit summary |
Unuvun Rain (talk | contribs) No edit summary |
||
Line 8: | Line 8: | ||
--boxbg: #F8F9FA; | --boxbg: #F8F9FA; | ||
--boxborder: #A2A9B1; /*Border color used to match the default wiki skin*/ | --boxborder: #A2A9B1; /*Border color used to match the default wiki skin*/ | ||
--boxheader: #EFEFEF; | |||
} | } | ||
Line 28: | Line 29: | ||
div.infoboxSectionHeader { | div.infoboxSectionHeader { | ||
text-align: center; | text-align: center; | ||
background-color: var(-- | background-color: var(--boxheader); | ||
} | } | ||
Revision as of 20:35, 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;
width:256px;
display:flex;
flex-direction:column;
align-items:center;
border:1px solid var(--boxborder);
background-color: var(--boxbg);
}
div.infoboxSectionHeader {
text-align: center;
background-color: var(--boxheader);
}
div.image {
display:flex;
flex-direction:column;
align-items:center;
width: 95%;
}
div.image img {
max-width: 100%;
height: auto;
}