Difference between revisions of "MediaWiki:Common.css"

From Diary of a Wimpy Kid Wiki
Jump to navigation Jump to search
(test)
(Will restore when necessary.)
 
(48 intermediate revisions by 3 users not shown)
Line 1: Line 1:
/***** CSS placed here will be applied to all skins on the entire site. *****/
/* 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}


/* Mark redirects in Special:Allpages and Special:Watchlist */
/* Change the external link icon to a PDF icon for all PDF files */
.allpagesredirect {
.mw-parser-output a[href$=".pdf"].external,
  font-style: italic;
.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;
}
}
.allpagesredirect:after {
 
  color: #808080; content: " (redirect)"
/* Edit section */
}
.client-js .mw-content-ltr .mw-editsection-bracket:first-of-type,
.watchlistredir {
.client-js .mw-content-rtl .mw-editsection-bracket:first-of-type,
  font-style: italic;
.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;
}
}


/* Giving headers and TOC a little extra space */
/* External link icon */
h2 {
#bodyContent .external[href ^="/images/External link icon.png"],
  margin-top: 20px;
.link-https {
}
  background: url("/images/External link icon.png") center right no-repeat;
.toc {
  padding-right: 16px;
  margin-top: 20px;
}
}


/* Infobox template style */
/* Galleries */
.infobox {
ul.gallery, li.gallerybox div.thumb {
  border: 1px solid #aaaaaa;
margin-bottom: 0;
  background-color: #f9f9f9;
padding-bottom: 0;
  color: black;
  margin-bottom: 0.5em;
  margin-left: 1em;
  padding: 0.2em;
  float: right;
  clear: right;
}
}
.infobox td,
#bodyContent ul.gallery {
.infobox th {
margin: 2px;
  vertical-align: top;
padding: 2px;
}
}
.infobox caption {
li.gallerycaption {
  font-size: larger;
text-align: unset;
  margin-left: inherit;
}
}
.infobox.bordered {
 
  border-collapse: collapse;
#mw-indicator-mw-helplink a {
}
  display:none;
.infobox.bordered td,
.infobox.bordered th {
  border: 1px solid #aaaaaa;
}
.infobox.bordered .borderless td,
.infobox.bordered .borderless th {
  border: 0;
}
}


/* Forum formatting (by -Algorithm & -Splaka) */
.notice-template {
.forumheader {
  margin: 0 2% 0.75em;
  border: 1px solid #aaa;
  padding: 0 1em;
  margin-top: 1em;
  display: flex;
  padding: 12px;
}
.forumlist td.forum_edited a {
  color: black;
  text-decoration: none;
}
.forumlist td.forum_title a {
  padding-left: 20px;
}
.forumlist td.forum_title a.forum_new {
  font-weight: bold;
  background: url(image:Book5.png) center left repeat;
  padding-left: 20px;
}
.forumlist td.forum_title a.forum_new:visited {
  font-weight: normal;
  background: image:Book5.png;
  padding-left: 20px;
}
.forumlist th.forum_title {
  padding-left: 20px;
}
}


/* Recent changes byte indicators */
.infobox {
.mw-plusminus-pos {
  background:white;
  color: #006500;
  border:1px solid black;
}
  width:300px;
.mw-plusminus-neg {
  font-size: 90%;
  color: #8B0000;
  padding:3px;
  float:right;
  margin: 0 0 1em 1em;
}
}


/* Image frame fix */
.infobox th {
div.tright, div.tleft {
  font-size:110%;
  border: 1px solid silver;
  text-align:center;
}
}


div.thumbinner {
.navbox {
  background: inherit;
  border: 1px solid black;
  border: image:Book5.png;
  width:100%;
  color: inherit;
}
#article div.thumb {
  color:inherit;
}
}


/* === Babel === */
.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;
div.babelbox {
  float: right;
  margin-left: 1em;
  margin-bottom: 0.5em;
  width: 246px;
  border: 1px solid #99B3FF;
  padding: 2px 0 2px 0;
}
.lang-blockN, .lang-block0, .lang-block1, .lang-block2, .lang-block3 {
  margin: 2px 4px 2px 4px; /* t, l, b, r */
  width:238px;
  border-collapse: collapse;
}
td.lang-codeN, td.lang-code0, td.lang-code1, td.lang-code2, td.lang-code3 {
  text-align:center;
  font-size:14pt;
  width:45px;
  height:45px;
}
td.lang-descriptionN, td.lang-description0, td.lang-description1,
td.lang-description2, td.lang-description3 {
  font-size:8pt;
  padding:4pt;
  line-height:1.25em;
}
}


.lang-block0 {
/* Tabber */
  border:1px solid #FFB3B3;
.infobox .tabbernav {
font-size: 90%;
}
}
td.lang-code0 {
.tabber.info {
  background-color: #FFB3B3;
display: block;
  color: black;
float: right;
margin: 0 0 0.5em 1em;
}
}
td.lang-description0 {
.tabber.info .nav {
  background-color: #FFE0E8;
display: block !important;
  color: black;
}
}
 
.tabber.info .infobox > tbody > tr:nth-child(2) img {
.lang-block1,  .lang-block2, .lang-block3  {
max-width: 100% !important;
  border:1px solid #99B3FF;
height: auto !important;
image-rendering: auto !important;
}
}
td.lang-code1, td.lang-code2, td.lang-code3 {
.tabber.info table {
  background-color: #99B3FF;
display: block !important;
  color: black;
float: none !important;
width: auto !important;
max-width: none !important;
margin: 0 !important;
overflow-x: auto !important;
}
}
td.lang-description1,  td.lang-description2, td.lang-description3 {
.tabber.info tbody {
  background-color: #E0E8FF;
display: table !important;
  color: black;
width: 100% !important;
}
}


.lang-blockN {
/* <h4>Template:Fake link</h4> */
  border:1px solid #6EF7A7;
.fakelinks {
}
cursor: pointer;
td.lang-codeN {
color: #0645ad;
  background-color: #6EF7A7;
  color: black;
}
td.lang-descriptionN {
  background-color: #C5FCDC;
  color: black;
}
}
 
.fakelinks:hover {
@font-face {
text-decoration: underline;
  font-family: WimpyKid;
  src: url(WimpyKid.ttf);
}
 
@font-face {
  font-family: WimpyKidDialogue;
  src: url(WimpyKidDialogue.ttf);
}
 
body {
    font-family: "WimpyKid";
}
}


div.oo-ui-fieldLayout-field {
/* Misc. */
font-family: "Georgia";
.mw-customtoggle, .mw-collapsible-toggle {
    padding-right: 3px;
}
}

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;
}