Difference between revisions of "MediaWiki:Common.css"
Jump to navigation
Jump to search
(Revert.) Tag: Undo |
(Will restore when necessary.) |
||
(8 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
/* CSS placed here will be applied to all skins */ | /* CSS placed here will be applied to all skins */ | ||
/* Black border & cell tables */ | |||
table.table, table.table {background:#fff;margin:1em 0;border:1pt solid #000;border-collapse:collapse;color:black} | |||
table.table > * > tr > td, table.table > * > tr > th, table.table > * > tr > td, table.table > * > tr > th {border:1pt solid #000;padding:0.2em 0.4em} | |||
/* | /* Change the external link icon to a PDF icon for all PDF files */ | ||
.mw-parser-output a[href$=".pdf"].external, | |||
.mw- | .mw-parser-output a[href*=".pdf?"].external, | ||
.mw- | .mw-parser-output a[href*=".pdf#"].external, | ||
.mw- | .mw-parser-output a[href$=".PDF"].external, | ||
.mw-parser-output a[href*=".PDF?"].external, | |||
.mw-parser-output a[href*=".PDF#"].external { | |||
background: url("//upload.wikimedia.org/wikipedia/commons/4/4d/Icon_pdf_file.png") no-repeat right; | |||
.mw- | /* @noflip */ | ||
.mw- | padding: 8px 18px 8px 0; | ||
# | } | ||
/* | |||
/* Edit section */ | /* Edit section */ | ||
Line 31: | Line 30: | ||
background: url("/images/External link icon.png") center right no-repeat; | background: url("/images/External link icon.png") center right no-repeat; | ||
padding-right: 16px; | padding-right: 16px; | ||
} | } | ||
Line 91: | Line 78: | ||
color: #fff; | color: #fff; | ||
} | } | ||
/* Tabber */ | /* Tabber */ | ||
Line 126: | Line 109: | ||
} | } | ||
/* <h4> Template:Fake link </h4> */ | /* <h4>Template:Fake link</h4> */ | ||
.fakelinks { | .fakelinks { | ||
cursor: pointer; | cursor: pointer; |
Latest revision as of 06:32, 10 November 2023
/* CSS placed here will be applied to all skins */
/* Black border & cell tables */
table.table, table.table {background:#fff;margin:1em 0;border:1pt solid #000;border-collapse:collapse;color:black}
table.table > * > tr > td, table.table > * > tr > th, table.table > * > tr > td, table.table > * > tr > th {border:1pt solid #000;padding:0.2em 0.4em}
/* Change the external link icon to a PDF icon for all PDF files */
.mw-parser-output a[href$=".pdf"].external,
.mw-parser-output a[href*=".pdf?"].external,
.mw-parser-output a[href*=".pdf#"].external,
.mw-parser-output a[href$=".PDF"].external,
.mw-parser-output a[href*=".PDF?"].external,
.mw-parser-output a[href*=".PDF#"].external {
background: url("//upload.wikimedia.org/wikipedia/commons/4/4d/Icon_pdf_file.png") no-repeat right;
/* @noflip */
padding: 8px 18px 8px 0;
}
/* Edit section */
.client-js .mw-content-ltr .mw-editsection-bracket:first-of-type,
.client-js .mw-content-rtl .mw-editsection-bracket:first-of-type,
.client-js .mw-content-rtl .mw-editsection-bracket:not(:first-of-type),
.client-js .mw-content-ltr .mw-editsection-bracket:not(:first-of-type) {
margin: 0;
color: inherit;
}
/* External link icon */
#bodyContent .external[href ^="/images/External link icon.png"],
.link-https {
background: url("/images/External link icon.png") center right no-repeat;
padding-right: 16px;
}
/* Galleries */
ul.gallery, li.gallerybox div.thumb {
margin-bottom: 0;
padding-bottom: 0;
}
#bodyContent ul.gallery {
margin: 2px;
padding: 2px;
}
li.gallerycaption {
text-align: unset;
}
#mw-indicator-mw-helplink a {
display:none;
}
.notice-template {
margin: 0 2% 0.75em;
padding: 0 1em;
display: flex;
}
.infobox {
background:white;
border:1px solid black;
width:300px;
font-size: 90%;
padding:3px;
float:right;
margin: 0 0 1em 1em;
}
.infobox th {
font-size:110%;
text-align:center;
}
.navbox {
border: 1px solid black;
width:100%;
}
.navbox.white tr th a, .navbox.white tr th a:visited, .navbox.white tr th a.new, .navbox.white tr th a.new:visited {
color: #fff;
}
/* Tabber */
.infobox .tabbernav {
font-size: 90%;
}
.tabber.info {
display: block;
float: right;
margin: 0 0 0.5em 1em;
}
.tabber.info .nav {
display: block !important;
}
.tabber.info .infobox > tbody > tr:nth-child(2) img {
max-width: 100% !important;
height: auto !important;
image-rendering: auto !important;
}
.tabber.info table {
display: block !important;
float: none !important;
width: auto !important;
max-width: none !important;
margin: 0 !important;
overflow-x: auto !important;
}
.tabber.info tbody {
display: table !important;
width: 100% !important;
}
/* <h4>Template:Fake link</h4> */
.fakelinks {
cursor: pointer;
color: #0645ad;
}
.fakelinks:hover {
text-decoration: underline;
}
/* Misc. */
.mw-customtoggle, .mw-collapsible-toggle {
padding-right: 3px;
}