MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
(first version of navbox CSS, partially based on Wikipedia) |
No edit summary |
||
Line 100: | Line 100: | ||
.navbox { | .navbox { | ||
border: 1px solid lightgray; | border: 1px solid lightgray; | ||
margin: auto; | margin: 1em auto; | ||
padding: 3px; | padding: 3px; | ||
width: 50%; | width: 50%; |
Revision as of 04:49, 22 August 2020
/* CSS placed here will be applied to all skins */
/* Hide license selection on Special:Upload as we won't use it that way. */
.mw-special-Upload .mw-htmlform-field-Licenses,
.mw-special-Upload .mw-upload-editlicenses {
display: none;
}
/* Hide page title on Main Page */
.rootpage-Main_Page #firstHeading {
display:none;
}
/* Links using fullurl should be plainlinks */
.mw-parser-output .external[href^="https://wiki.npowned.net/"] {
background: none;
padding: 0;
}
/* Infoboxes */
.infobox {
border-collapse: collapse;
float: right;
margin-bottom: 1em;
margin-left: 1em;
text-align: left;
width: 20%;
}
.infobox th,
.infobox td {
border: 1px solid lightgray;
}
.infobox-images {
font-weight: bold;
text-align: center;
}
.infobox-images > div:not(:first-child) {
margin-top: 1em;
}
.infobox-header {
font-size: 150%;
text-align: center;
}
tr.center-row th,
tr.center-row td {
text-align: center;
}
.infobox.cybernations {
}
.infobox.nationstates {
}
/* Page notices */
.page-notice {
border: 2px solid #2082C3;
margin: 1em auto;
padding: 0.5em;
width: 50%;
}
.page-notice hr {
margin: 0.6em 0 0.5em;
}
.notice-delete {
background-color: #FFDADA;
border-color: crimson;
}
.notice-documentation {
background-color: #EEE;
border-color: darkgray;
padding: 1em;
}
.notice-stub {
background-color: #CEE3F2;
}
/*
yellow scheme to use for some warning type:
background-color: #F8F6AA;
border-color: darkgoldenrod;
*/
/* Navboxes */
.navbox {
border: 1px solid lightgray;
margin: 1em auto;
padding: 3px;
width: 50%;
}
.navbox > table {
border-collapse: collapse;
width: 100%;
}
.navbox-title {
background-color: #CCCCFF;
position: relative;
}
.navbox-title .mw-collapsible-toggle {
position: absolute;
right: 0.5em;
}
.navbox-group {
background-color: #DDDDFF;
border-top: 2px solid #FDFDFD;
padding: 0.25em 1em;
text-align: right;
width: 10%;
}
.navbox-list {
border-top: 2px solid #FDFDFD;
}
.navbox-list:first-child {
text-align: center;
}
.navbox-footer {
background-color: #CCCCFF;
border-top: 1px solid #FDFDFD;/* To mimic buggy border on first data row */
text-align: center;
}
.navbox-list a, .navbox-footer a {
white-space: nowrap;
}
.navbox tr:nth-of-type(odd) .navbox-list {
background-color: #F7F7F7;
}
/* Disambiguation */
.disambiguation {
border: solid #CCC;
border-width: 1px 0;
line-height: 200%;
margin: 1em 0;
padding: 0.25em 0;
width: 100%;
}
.disambiguation td:first-child {
text-align: center;
width: 50px;
}
/* File information */
.fileinfo {
border: 1px solid lightgray;
border-radius:0.5em;
margin-top: 2em;
min-width: 25%;
}
.fileinfo th {
background-color: #2082C3;
border-radius: 0.25em;
color: white;
padding: 0.5em;
text-align: right;
width: 33%;
}
.fileinfo th[colspan] {
font-size: 125%;
text-align: center;
width: 100%;
}
.fileinfo td {
padding: 0 0.5em;
}
/* Template documentation */
.template-doc {
background-color: #EEE;
border: 1px solid darkgray;
padding: 0.25em 1em;
}
.template-doc > div {
border: solid darkgray;
border-width: 1px 0;
padding: 1em 0;
}
/* Main Page layout */
.mainpage-layout {
border-collapse: collapse;
}
.mainpage-layout th {
background-color: #2082C3;
border: 1px solid black;
color: white;
font-size: 150%;
padding: 0.5em;
width: 50%;
}
.mainpage-layout td {
border: 2px solid #ECE81E;
border-top: 0;
padding: 0.25em 0.75em;
vertical-align: top;
}
.mainpage-layout .spacer {
border: 0;
height: 1em;
padding: 0;
}
.mainpage-layout .not-patrolled {
background-color: inherit;
}
.mainpage-layout .mw-changeslist td {
border: 0;
}
.mainpage-layout .mw-changeslist-legend {
display: none;
}