MediaWiki:Common.css: Difference between revisions

hide 'view source' button
No edit summary
(hide 'view source' button)
 
(28 intermediate revisions by the same user not shown)
Line 1:
/* Odd-even color scheme for custom infoboxes */
.infobox-child:nth-child(even) {background: #ededed;}
.infobox-child:nth-child(odd) { background: #f7f7f7ededed;}
}
 
.infobox-child:nth-child(odd) {
background: #f7f7f7;
}
 
.locatormap img {
width: 90%;
height: 90%;
}
 
.halfwidthlocatormap a img {
width:93 90%;
height: 90%;
}
 
/* Reset italic styling set by user agent */
cite, dfn {
dfn {
font-style: inherit;
}
Line 28 ⟶ 40:
font-size: 85%;
}
 
.mw-body-content sub,
.mw-body-content sup,
span.reference /* for Parsoid */ {
 
/* for Parsoid */
{
font-size: 80%;
}
Line 48 ⟶ 64:
.client-js .mw-special-Watchlist #watchlist-message,
.client-js .NavFrame.collapsed .NavContent,
.client-js .collapsible:not( .mw-made-collapsible).collapsed > tbody > tr:not(:first-child) {
display: none;
}
Line 65 ⟶ 81:
body.action-info .mw-body-content :target,
.citation:target {
background-color: #def; /* Fallback */
/* Fallback */
background-color: rgba(0, 127, 255, 0.133);
}
Line 76 ⟶ 93:
/* For linked citation numbers and document IDs, where the number need not be shown
on a screen or a handheld, but should be included in the printed version */
@media screen, handheld {
handheld {
.citation .printonly {
display: none;
Line 86 ⟶ 104:
ol.references,
div.reflist {
font-size: 90%; /* Default font-size */
/* Default font-size */
margin-bottom: 0.5em;
}
 
div.reflist ol.references {
font-size: 100%; /* Reset font-size when nested in div.reflist */
margin-bottom: 0; /* AvoidReset double marginfont-size when nested in div.reflist */
margin-bottom: 0;
list-style-type: inherit; /* Enable custom list style types */
/* Avoid double margin when nested in div.reflist */
list-style-type: inherit;
/* Enable custom list style types */
}
 
Line 99 ⟶ 122:
margin-top: 0.3em;
}
 
div.columns dl,
div.columns ol,
Line 109 ⟶ 133:
div.columns li,
div.columns dd {
page-break-inside: avoid; /* Removed from CSS in favor of break-inside c. 2020 */
/* Removed from CSS in favor of break-inside c. 2020 */
break-inside: avoid-column;
}
Line 124 ⟶ 149:
padding: 0;
}
 
/* Display list items inline */
.hlist dd,
Line 131 ⟶ 157:
display: inline;
}
 
/* Display nested lists inline */
.hlist.inline,
Line 136 ⟶ 163:
.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 {
.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 {
display: none;
}
 
/* Generate interpuncts */
.hlist dt:after {
content: ": ";
}
 
/**
* Note hlist style usage differd in
Line 159 ⟶ 195:
font-weight: bold;
}
 
.hlist dd:last-child:after,
.hlist dt:last-child:after,
Line 164 ⟶ 201:
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 {
.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 dtdd 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 {
.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 {
.hlist ol>li {
counter-increment: listitem;
}
 
.hlist ol > li:before {
.hlist ol>li:before {
content: " " counter(listitem) "\a0";
}
 
.hlist dd ol > li:first-child:before,
.hlist dtdd ol > li:first-child:before,
.hlist lidt ol > li:first-child:before {,
.hlist li ol>li:first-child:before {
content: " (" counter(listitem) "\a0";
}
Line 200 ⟶ 255:
margin: 0;
}
 
.plainlist ol li,
.plainlist ul li {
Line 206 ⟶ 262:
 
/* Default style for navigation boxes */
.navbox {
.navbox { /* Navbox container style */
/* Navbox container style */
box-sizing: border-box;
border: 1px solid #a2a9b1;
Line 214 ⟶ 271:
text-align: center;
padding: 1px;
margin: 1em auto 0; /* Prevent preceding content from clinging to navboxes */
/* Prevent preceding content from clinging to navboxes */
}
 
.navbox .navbox {
margin-top: 0; /* No top margin for nested navboxes */
/* No top margin for nested navboxes */
}
 
.navbox + .navbox {
.navbox+.navbox {
margin-top: -1px; /* Single pixel border between adjacent navboxes */
margin-top: -1px;
/* Single pixel border between adjacent navboxes */
}
 
.navbox-inner,
.navbox-subgroup {
width: 100%;
}
 
.navbox-group,
.navbox-title,
.navbox-abovebelow {
padding: 0.25em 1em; /* Title, group and above/below styles */
/* Title, group and above/below styles */
line-height: 1.5em;
text-align: center;
}
 
th.navbox-group { /* Group style */
th.navbox-group {
/* Group style */
white-space: nowrap;
/* @noflip */
text-align: right;
}
 
.navbox,
.navbox-subgroup {
background-color: #fdfdfd; /* Background color */
/* Background color */
}
 
.navbox-list {
line-height: 1.5em;
border-color: #fdfdfd; /* Must match background color */
/* Must match background color */
}
 
/* cell spacing for navbox cells */
tr + tr > .navbox-abovebelow,
tr + tr > .navbox-group,
tr + tr > .navbox-image,
tr + tr > .navbox-list { /* Borders above 2nd, 3rd, etc. rows */
/* Borders above 2nd, 3rd, etc. rows */
border-top: 2px solid #fdfdfd; /* Must match background color */
border-top: 2px solid #fdfdfd;
/* Must match background color */
}
 
.navbox th,
.navbox-title {
background-color: #ffde7d; /* Level 1 color */
/* Level 1 color */
}
 
.navbox-abovebelow,
th.navbox-group,
.navbox-subgroup .navbox-title {
background-color: #fff2cc; /* Level 2 color */
/* Level 2 color */
}
 
.navbox-subgroup .navbox-group,
.navbox-subgroup .navbox-abovebelow {
background-color: #fdf6e2; /* Level 3 color */
/* Level 3 color */
}
 
.navbox-even {
background-color: #f7f7f7; /* Even row striping */
/* Even row striping */
}
 
.navbox-odd {
background-color: transparent; /* Odd row striping */
/* Odd row striping */
}
 
.navbox .hlist td dl,
.navbox .hlist td ol,
Line 278 ⟶ 363:
.navbox td.hlist ol,
.navbox td.hlist ul {
padding: 0.125em 0; /* Adjust hlist padding in navboxes */
/* Adjust hlist padding in navboxes */
}
 
Line 289 ⟶ 375:
padding-left: 0.2em;
}
 
.mw-collapsible-leftside-toggle .mw-collapsible-toggle {
/* @noflip */
Line 311 ⟶ 398:
font-size: 88%;
line-height: 1.5em;
width: 280px !important;
}
 
.infobox caption {
font-size: 125%;
Line 318 ⟶ 407:
text-align: center;
}
 
.infobox td,
.infobox th {
Line 323 ⟶ 413:
/* @noflip */
text-align: left;
padding: 0.8em !important;
}
 
.infobox.bordered {
border-collapse: collapse;
}
 
.infobox.bordered td,
.infobox.bordered th {
border: 1px solid #a2a9b1;
}
 
.infobox.bordered .borderless td,
.infobox.bordered .borderless th {
Line 365 ⟶ 459:
}
 
.infobox.geography td,
.infobox.geography th {
border-top: 1px solid #a2a9b1;
padding: 0.4em 0.6em 0.4em 0.6em;
}
 
.infobox.geography .mergedtoprow td,
.infobox.geography .mergedtoprow th {
Line 409 ⟶ 504:
text-align: left;
}
 
/* ...unless they also use the hlist class */
.toc.hlist ul,
Line 453 ⟶ 549:
padding: .2em;
}
 
.messagebox.merge {
border: 1px solid #c0b8cc;
Line 458 ⟶ 555:
text-align: center;
}
 
.messagebox.cleanup {
border: 1px solid #9f9fff;
Line 463 ⟶ 561:
text-align: center;
}
 
.messagebox.standard-talk {
border: 1px solid #c0c090;
Line 468 ⟶ 567:
margin: 4px auto;
}
 
/* For old WikiProject banners inside banner shells. */
.mbox-inside .standard-talk,
Line 477 ⟶ 577:
padding: 2px;
}
 
.messagebox.small {
width: 238px;
Line 487 ⟶ 588:
line-height: 1.25em;
}
 
.messagebox.small-talk {
width: 238px;
Line 500 ⟶ 602:
 
/* Cell sizes for ambox/tmbox/imbox/cmbox/ombox/fmbox/dmbox message boxes */
th.mbox-text, td.mbox-text { /* The message body cell(s) */
td.mbox-text {
/* The message body cell(s) */
border: none;
/* @noflip */
padding: 0.25em 0.9em; /* 0.9em left/right */
/* 0.9em left/right */
width: 100%; /* Make all mboxes the same width regardless of text length */
width: 100%;
/* Make all mboxes the same width regardless of text length */
}
 
td.mbox-image { /* The left image cell */
td.mbox-image {
/* The left image cell */
border: none;
/* @noflip */
padding: 2px 0 2px 0.9em; /* 0.9em left, 0px right */
/* 0.9em left, 0px right */
text-align: center;
}
 
td.mbox-imageright { /* The right image cell */
td.mbox-imageright {
/* The right image cell */
border: none;
/* @noflip */
padding: 2px 0.9em 2px 0; /* 0px left, 0.9em right */
/* 0px left, 0.9em right */
text-align: center;
}
 
td.mbox-empty-cell { /* An empty narrow cell */
td.mbox-empty-cell {
/* An empty narrow cell */
border: none;
padding: 0;
Line 526 ⟶ 640:
/* Article message box styles */
table.ambox {
margin: 0 10%;
margin: 0 10%; /* 10% = Will not overlap with other elements */
/* 10% = Will not overlap with other elements */
border: 1px solid #a2a9b1;
/* @noflip */
border-left: 10px solid #36c; /* Default "notice" blue */
/* Default "notice" blue */
background-color: #fbfbfb;
box-sizing: border-box;
}
 
table.ambox + table.ambox { /* Single border between stacked boxes. */
table.ambox+table.ambox {
/* Single border between stacked boxes. */
margin-top: -1px;
}
 
.ambox th.mbox-text,
.ambox td.mbox-text { /* The message body cell(s) */
/* The message body cell(s) */
padding: 0.25em 0.5em; /* 0.5em left/right */
padding: 0.25em 0.5em;
/* 0.5em left/right */
}
 
.ambox td.mbox-image { /* The left image cell */
.ambox td.mbox-image {
/* The left image cell */
/* @noflip */
padding: 2px 0 2px 0.5em; /* 0.5em left, 0px right */
/* 0.5em left, 0px right */
}
 
.ambox td.mbox-imageright { /* The right image cell */
.ambox td.mbox-imageright {
/* The right image cell */
/* @noflip */
padding: 2px 0.5em 2px 0; /* 0px left, 0.5em right */
/* 0px left, 0.5em right */
}
 
table.ambox-notice {
/* @noflip */
border-left: 10px solid #36c; /* Blue */
/* Blue */
}
 
table.ambox-speedy {
/* @noflip */
border-left: 10px solid #b32424; /* Red */
/* Red */
background-color: #fee7e6; /* Pink */
background-color: #fee7e6;
/* Pink */
}
 
table.ambox-delete {
/* @noflip */
border-left: 10px solid #b32424; /* Red */
/* Red */
}
 
table.ambox-content {
/* @noflip */
border-left: 10px solid #f28500; /* Orange */
/* Orange */
}
 
table.ambox-style {
/* @noflip */
border-left: 10px solid #fc3; /* Yellow */
/* Yellow */
}
 
table.ambox-move {
/* @noflip */
border-left: 10px solid #9932cc; /* Purple */
/* Purple */
}
 
table.ambox-protection {
/* @noflip */
border-left: 10px solid #a2a9b1; /* Gray-gold */
/* Gray-gold */
}
 
Line 583 ⟶ 724:
margin: 4px 10%;
border-collapse: collapse;
border: 3px solid #36c; /* Default "notice" blue */
/* Default "notice" blue */
background-color: #fbfbfb;
box-sizing: border-box;
}
 
.imbox .mbox-text .imbox { /* For imboxes inside imbox-text cells. */
.imbox .mbox-text .imbox {
margin: 0 -0.5em; /* 0.9 - 0.5 = 0.4em left/right. */
/* For imboxes inside imbox-text cells. */
display: block; /* Fix for webkit to force 100% width. */
margin: 0 -0.5em;
/* 0.9 - 0.5 = 0.4em left/right. */
display: block;
/* Fix for webkit to force 100% width. */
}
 
.mbox-inside .imbox { /* For imboxes inside other templates. */
.mbox-inside .imbox {
/* For imboxes inside other templates. */
margin: 4px;
}
 
table.imbox-notice {
border: 3px solid #36c; /* Blue */
/* Blue */
}
 
table.imbox-speedy {
border: 3px solid #b32424; /* Red */
/* Red */
background-color: #fee7e6; /* Pink */
background-color: #fee7e6;
/* Pink */
}
 
table.imbox-delete {
border: 3px solid #b32424; /* Red */
/* Red */
}
 
table.imbox-content {
border: 3px solid #f28500; /* Orange */
/* Orange */
}
 
table.imbox-style {
border: 3px solid #fc3; /* Yellow */
/* Yellow */
}
 
table.imbox-move {
border: 3px solid #9932cc; /* Purple */
/* Purple */
}
 
table.imbox-protection {
border: 3px solid #a2a9b1; /* Gray-gold */
/* Gray-gold */
}
 
table.imbox-license {
border: 3px solid #88a; /* Dark gray */
background-color: #f7f8ff; /* LightDark gray */
background-color: #f7f8ff;
/* Light gray */
}
 
table.imbox-featured {
border: 3px solid #cba135; /* Brown-gold */
/* Brown-gold */
}
 
Line 630 ⟶ 797:
border-collapse: collapse;
border: 1px solid #a2a9b1;
background-color: #dfe8ff; /* Default "notice" blue */
/* Default "notice" blue */
box-sizing: border-box;
}
 
table.cmbox-notice {
background-color: #d8e8ff; /* Blue */
/* Blue */
}
 
table.cmbox-speedy {
margin-top: 4px;
margin-bottom: 4px;
border: 4px solid #b32424; /* Red */
/* Red */
background-color: #ffdbdb; /* Pink */
background-color: #ffdbdb;
/* Pink */
}
 
table.cmbox-delete {
background-color: #ffdbdb; /* Pink */
/* Pink */
}
 
table.cmbox-content {
background-color: #ffe7ce; /* Orange */
/* Orange */
}
 
table.cmbox-style {
background-color: #fff9db; /* Yellow */
/* Yellow */
}
 
table.cmbox-move {
background-color: #e4d8ff; /* Purple */
/* Purple */
}
 
table.cmbox-protection {
background-color: #efefe1; /* Gray-gold */
/* Gray-gold */
}
 
Line 663 ⟶ 845:
margin: 4px 10%;
border-collapse: collapse;
border: 1px solid #a2a9b1; /* Default "notice" gray */
/* Default "notice" gray */
background-color: #f8f9fa;
box-sizing: border-box;
Line 669 ⟶ 852:
 
table.ombox-notice {
border: 1px solid #a2a9b1; /* Gray */
/* Gray */
}
 
table.ombox-speedy {
border: 2px solid #b32424; /* Red */
/* Red */
background-color: #fee7e6; /* Pink */
background-color: #fee7e6;
/* Pink */
}
 
table.ombox-delete {
border: 2px solid #b32424; /* Red */
/* Red */
}
 
table.ombox-content {
border: 1px solid #f28500; /* Orange */
/* Orange */
}
 
table.ombox-style {
border: 1px solid #fc3; /* Yellow */
/* Yellow */
}
 
table.ombox-move {
border: 1px solid #9932cc; /* Purple */
/* Purple */
}
 
table.ombox-protection {
border: 2px solid #a2a9b1; /* Gray-gold */
/* Gray-gold */
}
 
Line 695 ⟶ 892:
margin: 4px 10%;
border-collapse: collapse;
border: 1px solid #c0c090; /* Default "notice" gray-brown */
/* Default "notice" gray-brown */
background-color: #f8eaba;
min-width: 80%;
box-sizing: border-box;
}
 
.tmbox.mbox-small {
min-width: 0;
min-width: 0; /* reset the min-width of tmbox above */
/* reset the min-width of tmbox above */
}
 
.mediawiki .mbox-inside .tmbox { /* For tmboxes inside other templates. The "mediawiki" class ensures that */
.mediawiki .mbox-inside .tmbox {
margin: 2px 0; /* this declaration overrides other styles (including mbox-small above) */
/* For tmboxes inside other templates. The "mediawiki" class ensures that */
width: 100%; /* For Safari and Opera */
margin: 2px 0;
/* this declaration overrides other styles (including mbox-small above) */
width: 100%;
/* For Safari and Opera */
}
 
.mbox-inside .tmbox.mbox-small { /* "small" tmboxes should not be small when */
.mbox-inside .tmbox.mbox-small {
line-height: 1.5em; /* also "nested", so reset styles that are */
font-size: 100%; /* set in "mbox-small" above. tmboxes should not be small when */
line-height: 1.5em;
/* also "nested", so reset styles that are */
font-size: 100%;
/* set in "mbox-small" above. */
}
 
table.tmbox-speedy {
border: 2px solid #b32424; /* Red */
/* Red */
background-color: #fee7e6; /* Pink */
background-color: #fee7e6;
/* Pink */
}
 
table.tmbox-delete {
border: 2px solid #b32424; /* Red */
/* Red */
}
 
table.tmbox-content {
border: 2px solid #f28500; /* Orange */
/* Orange */
}
 
table.tmbox-style {
border: 2px solid #fc3; /* Yellow */
/* Yellow */
}
 
table.tmbox-move {
border: 2px solid #9932cc; /* Purple */
/* Purple */
}
 
table.tmbox-protection,
table.tmbox-notice {
border: 1px solid #c0c090; /* Gray-brown */
/* Gray-brown */
}
 
Line 739 ⟶ 959:
width: 100%;
border: 1px solid #a2a9b1;
background-color: #f8f9fa; /* Default "system" gray */
/* Default "system" gray */
box-sizing: border-box;
}
 
table.fmbox-system {
background-color: #f8f9fa;
}
 
table.fmbox-warning {
border: 1px solid #bb7070; /* Dark pink */
/* Dark pink */
background-color: #ffdbdb; /* Pink */
background-color: #ffdbdb;
/* Pink */
}
 
table.fmbox-editnotice {
background-color: transparent;
}
 
/* Div based "warning" style fmbox messages. */
div.mw-warning-with-logexcerpt,
Line 770 ⟶ 997:
ambox/tmbox/ombox etc classes. "html body.mediawiki" is so
they override "table.ambox + table.ambox" above. */
html body.mediawiki .mbox-small { /* For the "small=yes" option. */
/* For the "small=yes" option. */
/* @noflip */
clear: right;
Line 782 ⟶ 1,010:
line-height: 1.25em;
}
 
html body.mediawiki .mbox-small-left { /* For the "small=left" option. */
html body.mediawiki .mbox-small-left {
/* For the "small=left" option. */
/* @noflip */
margin: 4px 1em 4px 0;
Line 800 ⟶ 1,030:
display: none;
}
 
/* Remove borders, backgrounds, padding, etc. */
.compact-ambox table.ambox {
Line 810 ⟶ 1,041:
display: block;
}
 
body.mediawiki .compact-ambox table.mbox-small-left {
font-size: 100%;
Line 815 ⟶ 1,047:
margin: 0;
}
 
/* Style the text cell as a list item and remove its padding */
.compact-ambox table .mbox-text {
Line 820 ⟶ 1,053:
margin: 0 !important;
}
 
.compact-ambox table .mbox-text-span {
display: list-item;
Line 826 ⟶ 1,060:
list-style-image: url(/w/skins/MonoBook/resources/images/bullet.svg);
}
 
.skin-vector .compact-ambox table .mbox-text-span {
list-style-type: disc;
list-style-image: url(/w/skins/Vector/resources/skins.vector.styles/images/bullet-icon.svg);
}
 
/* Allow for hiding text in compact form */
.compact-ambox .hide-when-compact {
Line 847 ⟶ 1,083:
/* Remove underlines from certain links */
.nounderlines a,
.IPA a:link, .IPA a:visited {
.IPA a:visited {
text-decoration: none !important;
}
Line 861 ⟶ 1,098:
font-size: 95%;
}
 
div.NavFrame + div.NavFrame {
div.NavFrame+div.NavFrame {
border-top-style: none;
border-top-style: hidden;
}
 
div.NavFrame div.NavHead {
line-height: 1.6em;
Line 871 ⟶ 1,110:
position: relative;
}
 
div.NavFrame p,
div.NavFrame div.NavContent,
Line 876 ⟶ 1,116:
font-size: 100%;
}
 
a.NavToggle {
position: absolute;
Line 889 ⟶ 1,130:
font-style: italic;
}
 
.hatnote i {
font-style: normal;
}
 
div.hatnote {
/* @noflip */
Line 897 ⟶ 1,140:
margin-bottom: 0.5em;
}
 
div.hatnote + div.hatnote {
div.hatnote+div.hatnote {
margin-top: -0.5em;
}
Line 905 ⟶ 1,149:
"latitude" are used by the [[Geo microformat]]. */
/* TemplateStyles */
.geo-default, .geo-dms, .geo-dec {
.geo-dms,
.geo-dec {
display: inline;
}
 
.geo-nondefault, .geo-multi-punct {
.geo-nondefault,
.geo-multi-punct {
display: none;
}
 
.longitude, .latitude {
.longitude,
.latitude {
white-space: nowrap;
}
Line 932 ⟶ 1,182:
white-space: nowrap;
}
 
.nowrap pre {
white-space: pre;
}
 
/* But allow wrapping where desired: */
.wrap,
Line 953 ⟶ 1,205:
/* Prevent floating boxes from overlapping any category listings,
file histories, edit previews, and edit [Show changes] views. */
#mw-subcategories, #mw-pages, #mw-category-media,
#mw-pages,
#filehistory, #wikiPreview, #wikiDiff {
#mw-category-media,
#filehistory,
#wikiPreview,
#wikiDiff {
clear: both;
}
Line 969 ⟶ 1,225:
 
.wpbs-inner .wpb-outside {
display: none;
display: none; /* hide things that should only display outside shells */
/* hide things that should only display outside shells */
}
 
Line 1,006 ⟶ 1,263:
 
/* Remove bullets when there are multiple edit page warnings */
ul.permissions-errors > li {
list-style: none none;
}
 
ul.permissions-errors {
margin: 0;
Line 1,020 ⟶ 1,278:
line-height: 1;
}
 
span.texhtml {
white-space: nowrap;
}
 
span.texhtml span.texhtml {
font-size: 100%;
}
 
span.mwe-math-mathml-inline {
font-size: 118%;
Line 1,047 ⟶ 1,308:
margin-bottom: 0.6em;
}
 
.mwe-math-mathml-display math {
display: inline;
Line 1,090 ⟶ 1,352:
/* Gallery styles background changes are restricted to screen view. In printing we should avoid applying backgrounds. */
@media screen {
 
/* The backgrounds for galleries. */
#content .gallerybox div.thumb {
Line 1,095 ⟶ 1,358:
background-color: #f8f9fa;
}
 
/* Put a chequered background behind images, only visible if they have transparency.
'.filehistory a img' and '#file img:hover' are handled by MediaWiki core (as of 1.19) */
Line 1,101 ⟶ 1,364:
background: #fff url(//upload.wikimedia.org/wikipedia/commons/5/5d/Checker-16x16.png) repeat;
}
 
/* But not on articles, user pages, portals or with opt-out. */
.ns-0 .gallerybox .thumb img,
Line 1,122 ⟶ 1,386:
display: none;
}
 
#n-shoplink {
display: none;
}
 
 
/* CUSTOM RTL CSS STARTS HERE */
/*Background CSS*/
#mw-content-container {
background: #eaecf0;
border-bottom: solid 4px #3a928c;
background: url(https://static.miraheze.org/rtlwiki/3/31/RTL_lightbg.jpg) repeat fixed;
background-size: cover;
}
 
/*Don't the make text too crowded!*/
p {
margin: 1em 0;
line-height: 1.75;
}
 
/*Override the colors of the bars to match the theme*/
.color-middle,
.color-left,
.color-right {
background: #3a928c;
}
 
.mw-body h1.firstHeading {
border-bottom: solid 4px #3a928c;
}
 
.tools-inline li.selected {
border-bottom-color: #3a928c;
}
 
/*Use sans serif fonts for headers*/
.mw-body h1,
.mw-body h2,
.mw-body h3,
.mw-body h4,
.mw-body h5,
.mw-body h6,
.mw-body dt {
font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}
 
#siteSub {
font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}
 
body {
color: #202020;
}
 
.sidebar-heading {
padding: 0.0em 0.em;
}
 
/*
November 11, 2021
Change thickness of headers to easily differentiate them
*/
 
.mw-body {
padding: 1em;
word-wrap: break-word;
}
 
.mw-body .mw-parser-output h1:after,
.mw-body .mw-parser-output h2:after {
border-bottom: solid 1px #d5d5d5;
padding: 5px;
}
 
.mw-body h2 {
font-size: 1.5em;
font-weight: bold;
}
 
.mw-body h3 {
font-size: 1.4em;
font-weight: bold;
}
 
.mw-body h4 {
font-size: 1.1em;
font-weight: bold;
}
 
.mw-body h5 {
font-size: 0.9em;
font-weight: bold;
}
 
/*
November 20, 2021
Fix the CSS of the infobox (gets broken on certain devices)
*/
/* Using !important because mediawiki has an annoying
default style for the infoboxes that I can't seem
to find the code for. This is a quick fix, todo: find a
better solution to this*/
 
@media screen and (min-width: 850px) {
.nation_card {
width: 23em !important;
margin: 0.5em !important;
}
}
 
@media screen and (max-width: 849px) {
.nation_card {
width: 100% !important;
margin-left: 0 !important;
margin-right: 0 !important;
margin-bottom: 1em !important;
}
}
 
/*
May 1, 2022
Fix centering issue on infoboxes
*/
.infobox .infobox-header,
.infobox .infobox-subheader,
.infobox .infobox-image,
.infobox .infobox-full-data,
.infobox .infobox-below,
.infobox-above {
text-align: center;
}
 
/*
2022-12-08
Center the titles on infoboxes
*/
th.infobox-above.adr {
text-align: center;
}
 
.infobox td {
padding: 0.8em !important;
}
 
.infobox {
width: 280px !important;
}
 
/*
2023-10-10
Add class for blurry text (could be useful for spoilers)
*/
.ht {
color: transparent;
text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
 
/*
2023-10-22
Change color scheme of navbox to conform to RTL theme
*/
.navbox-title {
background-color: #cbe1df !important;
}
 
.navbox-group {
background-color: #e3efee !important;
}
 
.navbox-subgroup.navbox-group {
background-color: #f2f5f5 !important;
}
 
a {
color: #4682b7;
}
 
a:visited {
color: #4682b7;
}
 
a.new {
color: #d35050
}
 
/*
2023-10-23
Fix headings issue
*/
.mw-body h1.firstHeading {
padding-bottom: 10px;
border-bottom: solid 1px #c8ccd1;
font-weight: 700;
}
 
#mw-related-navigation .sidebar-chunk h3,
#mw-site-navigation .sidebar-chunk h3 {
border-bottom: solid 1px #c8ccd1;
padding-bottom: 10px;
}
 
.mw-body h2 {
border-bottom: solid 1px #d9d9d9;
padding-bottom: 10px;
}
 
/*
2023-10-24
Change colors of event infobox headings
*/
.infobox.vevent th[colspan="2"] {
background-color: #cbe1df !important
}
 
/* 2023-11-27
Make glossary page more readable */
dt+dt {
margin-top: 4px!important;
}
 
dd {
margin-top: 0.5em!important;
}
 
/* make alternate entries for the same term more compact in one line */
dt+dt {
display:inline;
}
dt+dt:not(:empty):not(:first-child):not(:nth-child(2)):before {
content: ", ";
}
dt+dt:not(:empty):not(:first-child) {
font-style: italic;
font-weight: 100;
font-size: 0.8em;
}
dt:not(:empty):nth-child(2):before {
content: "also: ";
}
 
/* 2024-01-06 hide view source button */
li#ca-viewsource {
display: none;
}
Bureaucrats, rtl-contributors, Administrators
1,624

edits