MediaWiki:Common.css
Jump to navigation
Jump to search
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Press Ctrl-F5.
/** CSS placed here will be applied to all skins */
img.auto {
max-width: 100%;
height: auto;
}
.text-right
{
text-align: right !important;
}
.text-center
{
text-align: center !important;
}
.text-left
{
text-align: left !important;
}
.pull-right
{
float: right;
}
.pull-left
{
float: left;
}
.clearfix
{
clear: both;
}
/*Alert Box Classes*/
.alert
{
line-height: 1.0em;
font-size: 1.0em;
text-align: left;
vertical-align: middle;
border-collapse: collapse;
margin: 1.0em 0 1.0em 0;
padding: 0.5em;
overflow: auto;
clear: both;
}
.alert-urgent
{
color: #131313;
background: #B7B59C;
border: 1px #000 solid;
}
.alert-urgent strong
{
color: #060606;
}
.alert-info
{
color: #131313;
background: #EEE;
border: 1px #CCC solid;
}
.alert-info strong
{
color: #060606;
}
.alert-warning
{
color: #8a6d3b;
background: #fcf8e3;
border: 1px #faebcc solid;
}
.alert-warning strong
{
color: #9a5d2b;
}
.alert-danger
{
color: #a94442;
background: #f2dede;
border: 1px #ebccd1 solid;
}
.alert-danger strong
{
color: #ce3335;
}
.alert-icon
{
padding-left: 10px;
padding-right: 10px;
}
/*Staff Profile Box Classes*/
.staff-profile-box
{
width: 22em;
margin: 10px 1px 10px 10px;
clear: both;
background:#C7C5AC;
}
.staff-profile-box .inner-table
{
border: 2px #aaa solid;
width: 100%;
font-size: 95%;
text-align: left;
}
.staff-profile-box .inner-table .name
{
white-space: nowrap;
background-color: #003471;
color: #EFEFDE;
font-size: larger;
text-align: center;
}
.staff-profile-box .inner-table .image
{
white-space: nowrap;
text-align: center;
}
.staff-profile-box .inner-table .caption
{
white-space: nowrap;
font-size: smaller;
text-align: center;
}
table.alternating tr:nth-child(even) td
{
background: #efefef;
}
table.hover tr:hover td
{
background: #e8e8e8;
}
.toclimit-2 .toclevel-1 ul,
.toclimit-3 .toclevel-2 ul,
.toclimit-4 .toclevel-3 ul,
.toclimit-5 .toclevel-4 ul,
.toclimit-6 .toclevel-5 ul,
.toclimit-7 .toclevel-6 ul
{
display: none;
}
/* Style for horizontal lists (separator following item).
@source mediawiki.org/wiki/Snippets/Horizontal_lists
@revision 9 (2016-08-10)
@author [[User:Edokter]]
*/
.hlist dl,
.hlist ol,
.hlist ul {
margin: 0;
padding: 0;
}
/* Display list items inline */
.hlist dd,
.hlist dt,
.hlist li {
margin: 0;
display: inline;
}
/* Display nested lists inline */
.hlist.inline,
.hlist.inline dl,
.hlist.inline ol,
.hlist.inline ul,
.hlist dl dl, .hlist dl ol, .hlist dl ul,
.hlist ol dl, .hlist ol ol, .hlist ol ul,
.hlist ul dl, .hlist ul ol, .hlist ul ul {
display: inline;
}
/* Hide empty list items */
.hlist .mw-empty-li,
.hlist .mw-empty-elt {
display: none;
}
/* Generate interpuncts */
.hlist dt:after {
content: ": ";
}
.hlist dd:after,
.hlist li:after {
content: " · ";
font-weight: bold;
}
.hlist dd:last-child:after,
.hlist dt:last-child:after,
.hlist li:last-child:after {
content: none;
}
/* Add parentheses around nested lists */
.hlist dd dd:first-child:before, .hlist dd dt:first-child:before, .hlist dd li:first-child:before,
.hlist dt dd:first-child:before, .hlist dt dt:first-child:before, .hlist dt li:first-child:before,
.hlist li dd:first-child:before, .hlist li dt:first-child:before, .hlist li li:first-child:before {
content: " (";
font-weight: normal;
}
.hlist dd dd:last-child:after, .hlist dd dt:last-child:after, .hlist dd li:last-child:after,
.hlist dt dd:last-child:after, .hlist dt dt:last-child:after, .hlist dt li:last-child:after,
.hlist li dd:last-child:after, .hlist li dt:last-child:after, .hlist li li:last-child:after {
content: ")";
font-weight: normal;
}
/* Put ordinals in front of ordered list items */
.hlist ol {
counter-reset: listitem;
}
.hlist ol > li {
counter-increment: listitem;
}
.hlist ol > li:before {
content: " " counter(listitem) "\a0";
}
.hlist dd ol > li:first-child:before,
.hlist dt ol > li:first-child:before,
.hlist li ol > li:first-child:before {
content: " (" counter(listitem) "\a0";
}
/* Table level text alignment classes for columns */
table.col-1-right td:nth-child(1) { text-align: right; }
table.col-2-right td:nth-child(2) { text-align: right; }
table.col-3-right td:nth-child(3) { text-align: right; }
table.col-4-right td:nth-child(4) { text-align: right; }
table.col-5-right td:nth-child(5) { text-align: right; }
table.col-6-right td:nth-child(6) { text-align: right; }
table.col-7-right td:nth-child(7) { text-align: right; }
table.col-8-right td:nth-child(8) { text-align: right; }
table.col-9-right td:nth-child(9) { text-align: right; }