MediaWiki:Common.css: Difference between revisions

From Pikipedia, the Pikmin wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(37 intermediate revisions by the same user not shown)
Line 5: Line 5:
   Staff highlights
   Staff highlights
       Edit here: https://www.pikminwiki.com/MediaWiki:Gadget-StaffHighlights.css */
       Edit here: https://www.pikminwiki.com/MediaWiki:Gadget-StaffHighlights.css */
/* Don't display some stuff on the main page */
body.page-Main_Page.action-view h1.firstHeading,
body.page-Main_Page.action-view #contentSub > *,
body.page-Main_Page.action-view #siteSub,
body.page-Main_Page.action-view #catlinks,
body.page-Main_Page.action-view #lastmod {
display: none !important;
}
/* Mark redirects on Special:AllPages and Special:EditWatchlist */
.allpagesredirect a.mw-redirect, .watchlistredir a.mw-redirect {
color: #888 !important;
}


/* Infoboxes */
/* Infoboxes */
.infobox {
.infobox {
border: 1px solid #AAA;
color: #000;
background-color: #F9F9F9;
color: black;
margin-bottom: 0.5em;
margin-left: 1em;
padding: 0.2em;
float: right;
float: right;
clear: right;
clear: right;
font-size: 80%;
font-size: 80%;
text-align: left;
text-align: left;
min-width: 150px;
max-width: 350px;
max-width: 350px;
min-width: 150px;
border: 1px solid #aaa;
background-color: #f9f9f9;
margin-bottom: 0.5em;
margin-left: 1em;
padding: 0.2em;
}
}
.infobox td, .infobox th {
.infobox td, .infobox th {
vertical-align: top;
vertical-align: top;
}
.infobox th {
background: #E6E9FF;
}
}
.infobox caption {
.infobox caption {
Line 54: Line 37:
.infobox.bordered td,
.infobox.bordered td,
.infobox.bordered th {
.infobox.bordered th {
border: 1px solid #AAA;
border: 1px solid #aaa;
}
}
.infobox.bordered .borderless td,
.infobox.bordered .borderless td,
Line 60: Line 43:
border: 0;
border: 0;
}
}
.infobox.sisterproject {
.infoboxTitle {
width: 20em;
font-size: 90%;
}
.infoboxTitle{
font-size: 140%;
font-size: 140%;
background: #CCF;
text-align: center;
text-align: center;
}
@media print {
.infobox.sisterproject {
display: none;
}
}
}


Line 79: Line 52:
.infobox.bordered .mergedtoprow th {
.infobox.bordered .mergedtoprow th {
border: 0;
border: 0;
border-top: 1px solid #AAA;
border-top: 1px solid #aaa;
border-right: 1px solid #AAA;
border-right: 1px solid #aaa;
}
}
.infobox.bordered .mergedrow td,
.infobox.bordered .mergedrow td,
.infobox.bordered .mergedrow th {
.infobox.bordered .mergedrow th {
border: 0;
border: 0;
border-right: 1px solid #AAA;
border-right: 1px solid #aaa;
}
}


Line 91: Line 64:
#ca-edit a {
#ca-edit a {
font-weight: bold !important;
font-weight: bold !important;
}
/* Table of contents */
#toc, .toc {
margin-bottom: 3px;
}
/* Thumbs */
div.tleft, div.tright {
margin-top: 0.2em;
margin-bottom: 0.8em;
}
.thumb .mediaContainer {
margin: 4px auto 2px;
}
/* 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;
}
/* File pages */
.mw_metadata {
margin-top: 5px;
}
}


/* Forum */
/* Forum */
.forumheader {  
.forumheader {
border: 1px solid #AAA;
background-color: #F9F9F9;
margin: 1em 0 15px;
margin: 1em 0 15px;
padding: 12px;
padding: 12px;
}
}
.forumlist td.forum_edited a {  
.forumlist td.forum_edited a {
color: black;
color: #000;
text-decoration: none  
text-decoration: none  
}
}
.forumlist td.forum_title a {  
.forumlist td.forum_title a {
padding-left: 20px;
padding-left: 20px;
}
}
Line 144: Line 83:
padding-left: 20px;
padding-left: 20px;
}
}
.forumlist td.forum_title a.forum_new:visited {  
.forumlist td.forum_title a.forum_new:visited {
font-weight: normal;
font-weight: normal;
background: none;
background: none;
padding-left: 20px;
padding-left: 20px;
}
}
.forumlist th.forum_title {  
.forumlist th.forum_title {
padding-left: 20px;
padding-left: 20px;
}
/* Upload form */
#mw-htmlform-description .mw-editTools {
display: none;
}
/* Edit box */
.wikiEditor-ui-toolbar .section-main,
.wikiEditor-ui-toolbar .tabs {
height: auto;
}
.wikiEditor-ui textarea#wpTextbox1 {
height: 474px;
line-height: 1.4em;
}
.mw-summary-preview {
margin-bottom: 0.5em;
}
#wpSummary, #wpSummaryLabel {
margin: 0.2em 0 0.4em 0 !important;
}
input#wpSummary {
width: 99%;
}
#wpSummaryWidget .oo-ui-labelElement-label {
margin-right: 10px;
}
/* Watchlist expiry */
#wpWatchlistExpiry, #wpWatchlistExpiryWidget .oo-ui-dropdownWidget-handle {
height: auto;
min-height: 0;
padding-top: 4px;
padding-left: 7px;
padding-bottom: 3px;
}
/* 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: unset;
}
/* Diff text */
.diffchange { font-weight: normal; }
.diff-addedline, .diff-deletedline, .diff-context {
font-size: 92%;
}
/* OOUI fix */
.oo-ui-optionWidget.oo-ui-labelElement > .oo-ui-labelElement-label {
overflow: visible;
}
/* Video widget */
.infobox .videoWidget,
.infobox .videoWidget iframe {
display: block !important;
}
.infobox .autoResize {
margin: 0 auto !important;
}
.autoResize:not(.thumbinner) .thumbcaption {
margin: 0;
padding: 0;
}
.videoWidget + p {
margin: 0;
}
/* Dismissable site notice */
.sitedir-ltr .mw-dismissable-notice-body {
margin: 0 60px 0.5em 0;
}
.sitedir-rtl .mw-dismissable-notice-body {
margin: 0 0 0.5em 60px;
}
/* Captcha spacing */
#editform #wpCaptchaWord {
margin-top: 2.5px;
}
#userloginForm label:not([for]) + .mw-input {
margin-top: 10px;
}
#userloginForm .mw-ui-vform-field:nth-of-type(7) {
margin-bottom: 5px;
}
.mw-htmlform-field-HTMLReCaptchaNoCaptchaField .mw-input {
margin-top: 1px;
}
.editOptions .g-recaptcha {
margin-bottom: 10px;
}
}


Line 253: Line 95:
.pikipediaBox {
.pikipediaBox {
color: #000;
color: #000;
background-color: #CFC;
border: 2px outset #0b0;
margin: 0 auto 10px;
margin: 0 auto 10px;
padding: 0 0.5em;
padding: 0 0.5em;
}
}
p + .pikipediaBox,
h2 + .pikipediaBox,
div + .pikipediaBox,
div + .pikipediaBox,
table + .pikipediaBox,
.pikipediaBox + .navbox {
.pikipediaBox + .navbox {
margin-top: 10px;
margin-top: 10px;
Line 270: Line 111:
.titledBox {
.titledBox {
width: 100%;
width: 100%;
background-color: #f5fffa;
border: 1px solid #cef2e0;
margin-top: 10px;
padding: 6px;
padding: 6px;
}
}
Line 279: Line 117:
font-size: 1.2em;
font-size: 1.2em;
font-weight: bold;
font-weight: bold;
background-color: #cef2e0;
border: 1px solid #a3bfb1;
padding: 0 5px;
padding: 0 5px;
}
/* References */
sup.reference:target,
ol.references li:target {
background-color: #cfc;
}
}


Line 287: Line 129:
.mw-collapsible-toggle {
.mw-collapsible-toggle {
font-weight: normal;
font-weight: normal;
}
/* References */
ol.references {
margin-top: 0;
}
ol.references div {
display: inline;
}
ol.references span {
line-height: 1;
}
}


/* Indicator icons */
/* Indicator icons */
.mw-indicators {
position: relative;
}
.mw-indicator {
.mw-indicator {
margin: 0 2px;
margin: 0 2px;
}
/* New user message box */
.usermessage {
margin-top: 1em;
}
/* Width fixes */
.thumb {
max-width: 100%;
overflow: auto;
}
table { max-width: 100%; }
@media all and (max-width: 1350px) {
table.wikitable {
display: block !important;
max-width: max-content !important;
overflow: auto !important;
border: 0 !important;
}
}
@media all and (max-width: 1250px) {
table.wikitable img {
max-width: 100% !important;
height: auto !important;
}
.mw-parser-output table {
min-width: 0 !important;
}
}
/* Media player fix */
.wikitable .mediaContainer {
margin-top: 2px;
}
/* Multimedia viewer */
.mw-mmv-image img {
background: #fff !important;
}
.mw-mmv-filepage-buttons,
.mw-mmv-reuse-pane .oo-ui-widget-disabled {
display: none !important;
}
.mw-mmv-overlay {
z-index: 10000000000;
}
.mw-mmv-wrapper {
z-index: 10000000001;
font-size: medium;
}
/* Mobile only */
.mobileonly {
display: none;
}
}



Latest revision as of 17:12, August 10, 2023

/* CSS placed here will be applied to all skins on desktop */

/* Navbox style
       Edit here: https://www.pikminwiki.com/MediaWiki:Gadget-NavboxStyle.css
   Staff highlights
       Edit here: https://www.pikminwiki.com/MediaWiki:Gadget-StaffHighlights.css */

/* Infoboxes */
.infobox {
	color: #000;
	float: right;
	clear: right;
	font-size: 80%;
	text-align: left;
	min-width: 150px;
	max-width: 350px;
	border: 1px solid #aaa;
	background-color: #f9f9f9;
	margin-bottom: 0.5em;
	margin-left: 1em;
	padding: 0.2em;
}
.infobox td, .infobox th {
	vertical-align: top;
}
.infobox caption {
	font-size: larger;
	margin-left: inherit;
}
.infobox img {
	max-width: 340px;
	height: auto !important;
}
.infobox.bordered {
	border-collapse: collapse;
}
.infobox.bordered td,
.infobox.bordered th {
	border: 1px solid #aaa;
}
.infobox.bordered .borderless td,
.infobox.bordered .borderless th {
	border: 0;
}
.infoboxTitle {
	font-size: 140%;
	text-align: center;
}

/* Bordered infobox with merged rows */
.infobox.bordered .mergedtoprow td,
.infobox.bordered .mergedtoprow th {
	border: 0;
	border-top: 1px solid #aaa;
	border-right: 1px solid #aaa;
}
.infobox.bordered .mergedrow td,
.infobox.bordered .mergedrow th {
	border: 0;
	border-right: 1px solid #aaa;
}

/* Bold edit tab */
#ca-edit a {
	font-weight: bold !important;
}

/* Forum */
.forumheader {
	margin: 1em 0 15px;
	padding: 12px;
}
.forumlist td.forum_edited a {
	color: #000;
	text-decoration: none 
}
.forumlist td.forum_title a {
	padding-left: 20px;
}
.forumlist td.forum_title a.forum_new {
	font-weight: bold;
	background: url(https://pikmin.wiki.gallery/images/forum_new.gif) center left no-repeat;
	padding-left: 20px;
}
.forumlist td.forum_title a.forum_new:visited {
	font-weight: normal;
	background: none;
	padding-left: 20px;
}
.forumlist th.forum_title {
	padding-left: 20px;
}

/* Pikipedia boxes */
.pikipediaBox {
	color: #000;
	margin: 0 auto 10px;
	padding: 0 0.5em;
}
h2 + .pikipediaBox,
div + .pikipediaBox,
table + .pikipediaBox,
.pikipediaBox + .navbox {
	margin-top: 10px;
}
.pikipediaBox + .pikipediaBox {
	margin-top: -5px;
}

/* Titled boxes */
.titledBox {
	width: 100%;
	padding: 6px;
}
.titledBoxTitle {
	width: 100%;
	font-size: 1.2em;
	font-weight: bold;
	padding: 0 5px;
}

/* References */
sup.reference:target,
ol.references li:target {
	background-color: #cfc;
}

/* MediaWiki collapsible buttons */
.mw-collapsible-toggle {
	font-weight: normal;
}

/* Indicator icons */
.mw-indicator {
	margin: 0 2px;
}

/* Who's online */
#whosonline {
	margin-bottom: 1px;
}