MediaWiki:Common.css: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| (11 intermediate revisions by the same user not shown) | |||
| Line 2: | Line 2: | ||
/* Common Infobox Styles */ | /* Common Infobox Styles */ | ||
. | .sideinfo, .centreinfo { | ||
margin: 0 0 1em 1em; | margin: 0 0 1em 1em; | ||
border: 1px solid #a2a9b1; | border: 1px solid #a2a9b1; | ||
| Line 10: | Line 10: | ||
line-height: 1.5em; | line-height: 1.5em; | ||
} | } | ||
. | .sideinfo { | ||
float: right; | float: right; | ||
clear: right; | clear: right; | ||
width: 300px; | width: 300px; | ||
} | } | ||
. | .centreinfo { | ||
margin-left: auto; | margin-left: auto; | ||
margin-right: auto; | margin-right: auto; | ||
| Line 22: | Line 22: | ||
clear: both; /* Prevents sidebars from pushing it to one side */ | clear: both; /* Prevents sidebars from pushing it to one side */ | ||
} | } | ||
. | .sideinfo th { | ||
background-color: #DFE9F6; | background-color: #DFE9F6; | ||
text-align: left; | text-align: left; | ||
} | } | ||
. | .centreinfo th { | ||
background-color: #DFE9F6;; | |||
} | |||
.sideinfo th, .sideinfo td, .centreinfo th, .centreinfo td { | |||
border: 1px solid #a2a9b1; | border: 1px solid #a2a9b1; | ||
padding: 0.2em 0.4em; | padding: 0.2em 0.4em; | ||
vertical-align: top; | vertical-align: top; | ||
} | |||
.centreinfo th, .centreinfo td { | |||
text-align: center; | |||
} | |||
// Text centring | |||
.centred { | |||
text-align: center; | |||
} | |||
// Block centring | |||
.bcentred { | |||
margin-left: auto; | |||
margin-right: auto; | |||
} | |||
/* Default: 3 columns for desktop/large screens */ | |||
.columnbox { | |||
column-count: 3; | |||
column-gap: 2em; | |||
column-rule: 1px solid darkgrey; | |||
} | |||
/* Tablet: 2 columns when screen is 768px or less */ | |||
@media (max-width: 768px) { | |||
.columnbox { | |||
column-count: 2; | |||
} | |||
} | |||
/* Mobile: 1 column when screen is 480px or less */ | |||
@media (max-width: 480px) { | |||
.columnbox { | |||
column-count: 1; | |||
} | |||
} | |||
/* Change font for the standard wikitext editor area */ | |||
#wpTextbox1 { | |||
font-size: 14px; | |||
line-height: 1.5; | |||
} | } | ||
Latest revision as of 12:25, 7 March 2026
/* CSS placed here will be applied to all skins */
/* Common Infobox Styles */
.sideinfo, .centreinfo {
margin: 0 0 1em 1em;
border: 1px solid #a2a9b1;
background-color: #f8f9fa;
border-collapse: collapse;
font-size: 88%;
line-height: 1.5em;
}
.sideinfo {
float: right;
clear: right;
width: 300px;
}
.centreinfo {
margin-left: auto;
margin-right: auto;
float: none; /* Overrides default MediaWiki infobox floating */
display: table; /* Ensures the margins calculate based on content width */
clear: both; /* Prevents sidebars from pushing it to one side */
}
.sideinfo th {
background-color: #DFE9F6;
text-align: left;
}
.centreinfo th {
background-color: #DFE9F6;;
}
.sideinfo th, .sideinfo td, .centreinfo th, .centreinfo td {
border: 1px solid #a2a9b1;
padding: 0.2em 0.4em;
vertical-align: top;
}
.centreinfo th, .centreinfo td {
text-align: center;
}
// Text centring
.centred {
text-align: center;
}
// Block centring
.bcentred {
margin-left: auto;
margin-right: auto;
}
/* Default: 3 columns for desktop/large screens */
.columnbox {
column-count: 3;
column-gap: 2em;
column-rule: 1px solid darkgrey;
}
/* Tablet: 2 columns when screen is 768px or less */
@media (max-width: 768px) {
.columnbox {
column-count: 2;
}
}
/* Mobile: 1 column when screen is 480px or less */
@media (max-width: 480px) {
.columnbox {
column-count: 1;
}
}
/* Change font for the standard wikitext editor area */
#wpTextbox1 {
font-size: 14px;
line-height: 1.5;
}