MediaWiki:Common.css

From Diary of a Wimpy Kid Wiki
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 */
/* 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;
}