MediaWiki:Common.css

From New Prairie Wiki
Revision as of 12:22, 8 August 2025 by Randombell (talk | contribs)
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)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* CSS placed here will be applied to all skins */
.infobox {
    border: 1px solid #a2a9b1;
    color: black;
    padding: 0.2em;
    font-size: 88%;
    line-height: 1.5em;
    border-spacing: 3px
}

@media screen {
    .infobox {
        background-color: #f8f9fa
    }
}

@media (max-width: 640px) {
    .infobox {
        width:100%
    }

    .infobox .nowrap {
        white-space: normal
    }
}

@media (min-width: 640px) {
    .infobox {
        margin:0.5em 0 0.5em 1em;
        float: right;
        clear: right;
        width: 22em
    }
}

.infobox-header,.infobox-label,.infobox-above,.infobox-full-data,.infobox-data,.infobox-below,.infobox-subheader,.infobox-image,.infobox-navbar,.infobox th,.infobox td {
    vertical-align: top
}

.infobox-label,.infobox-data,.infobox th,.infobox td {
    text-align: left
}

.infobox .infobox-above,.infobox .infobox-title,.infobox caption {
    font-size: 125%;
    font-weight: bold;
    text-align: center
}

.infobox-title,.infobox caption {
    padding: 0.2em
}

.infobox .infobox-header,.infobox .infobox-subheader,.infobox .infobox-image,.infobox .infobox-full-data,.infobox .infobox-below {
    text-align: center
}

.infobox .infobox-navbar {
    text-align: right
}

.infobox .plainlist ul, .infobox .plainlist li {
	list-style: none;
	margin: 0;
}

.template-documentation {
    clear: both;
    margin: 1em 0 0 0;
    border: 1px solid #aaa;
    background-color: #ecfcf4;
    padding: 1em;
}

.wikitable {
    margin: 1em 0;
    background-color: #f9f9f9;
    border: 1px solid #aaa;
    border-collapse: collapse;
    color: #000;
}

.fmbox {
    clear: both;
    margin: 0.2em 0;
    width: 100%;
    border: 1px solid #aaa;
    background: #f9f9f9;
}

th.mbox-text, td.mbox-text {
    border: none;
    padding: 0.25em 0.9em;
    width: 100%;
}

.mergedtoprow {
    border-top: 1px solid #aaa;
    padding: 0.4em 0.6em 0.2em 0.6em;
}

.mediawiki .mbox-small {
    clear: right;
    float: right;
    margin: 4px 0 4px 1em;
    width: 238px;
    font-size: 88%;
    line-height: 1.25em;
}

.ombox-notice {
    border: 1px solid #aaa;
}

.plainlist {
    line-height: inherit;
    list-style: none none;
    margin: 0;
}

.ombox {
    margin: 4px 10%;
    border-collapse: collapse;
    border: 1px solid #aaa;
    background: #f9f9f9;
}

.ombox-content {
    border: 1px solid #f28500;
}

.mw-content-ltr a, .mw-content-ltr a:visited {
	font-weight:bold;
}

.toc a, .toc a:visited {
    font-weight: normal!important;
}

table.navbox {
    margin-top: 1em;
}
.navbox, .navbox-subgroup {
    background: #fdfdfd;
}
.navbox {
    border: 1px solid #aaa;
    width: 100%;
    margin: auto;
    clear: both;
    font-size: 88%;
    text-align: center;
    padding: 1px;
}
.navbox th, .navbox-title {
    background: #ccccff;
}
.navbox-abovebelow, th.navbox-group, .navbox-subgroup .navbox-title {
    background: #ddddff;
}
.navbox-group, .navbox-title, .navbox-abovebelow {
    padding: 0.25em 1em;
    line-height: 1.5em;
    text-align: center;
}
.navbox .collapseButton {
    width: 6em;
}
.collapseButton {
    float: right;
    font-weight: normal;
    margin-left: 0.5em;
    text-align: right;
    width: auto;
}
.navbox-title .navbar {
    float: left;
    text-align: left;
    margin-right: 0.5em;
    width: 6em;
}
th.navbox-group {
    white-space: nowrap;
    text-align: right;
}
.navbox-odd {
    background: transparent;
}
.navbox-list {
    line-height: 1.5em;
    border-color: #fdfdfd;
}
.navbox .hlist td dl, .navbox .hlist td ol, .navbox .hlist td ul, .navbox td.hlist dl, .navbox td.hlist ol, .navbox td.hlist ul {
    padding: 0.125em 0;
}
.hlist dd, .hlist dt, .hlist li {
    margin: 0;
    display: inline;
}
.hlist dd:after, .hlist li:after {
    content: " · ";
    font-weight: bold;
}
.navbox .hlist td dl, .navbox .hlist td ol, .navbox .hlist td ul, .navbox td.hlist dl, .navbox td.hlist ol, .navbox td.hlist ul {
    padding: 0.125em 0;
}
.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;
}
.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;
}