MediaWiki:Common.css: Difference between revisions

From the Kingdom Hearts Wiki, the Kingdom Hearts encyclopedia
Jump to navigationJump to search
(Formatting; also, this does not belong in Common; anyone is welcome to put it in their user CSS, but this hardly affects any browsers and messes up existing skins in the affected browsers.)
mNo edit summary
 
(445 intermediate revisions by 8 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 on desktop */
/* See also: [[MediaWiki:Monobook.css]] */
/* <pre> */


body.page-Main_Page h1.firstHeading, body.page-Main_Page #lastmod, body.page-Main_Page #siteSub {  
/* Navbox style
display:none;
      Edit here: https://www.khwiki.com/MediaWiki:Gadget-NavboxStyle.css
  Staff highlights
      Edit here: https://www.khwiki.com/MediaWiki:Gadget-StaffHighlights.css */
 
/* Random logo */
#p-logo a { background: transparent no-repeat; }
.client-nojs #p-logo a,
.mw-special-Gadgets #p-logo a,
.mw-special-Userlogin #p-logo a,
.mw-special-Preferences #p-logo a,
.mw-special-ChangeEmail #p-logo a,
.mw-special-ResetTokens #p-logo a,
.mw-special-BotPasswords #p-logo a,
.mw-special-CreateAccount #p-logo a,
.mw-special-PasswordReset #p-logo a {
background-image: url(https://kh.wiki.gallery/images/b/bc/Wiki.png);
}
}


/* Image restrictions */
/* Main page */
div.userbox img { max-width:100%; width/**\*/:100%\9; height:auto !important; }
@media all and (min-width: 551px) {
table.talkbubble td:first-child img { max-width:90px; height:auto !important; }
body.page-Main_Page.action-view #content {
 
overflow: visible;
/* Reflist font size */
z-index: 5;
.references-small { font-size:90%; }
}
 
/* Mark redirects in Special:Allpages and Special:Watchlist */
.allpagesredirect, .watchlistredir { font-style: italic; }
 
/* Infobox template style */
.infobox {
border:1px solid #aaa;
background-color:#f9f9f9;
color:#000;
margin-bottom:0.5em;
margin-left:1em;
padding:0.2em;
float:right;
clear:right;
}
}
.infobox td, .infobox th {
body.page-Main_Page.action-view .mw-parser-output table img {
vertical-align: top;
min-width: 15px !important;
}
max-width: 100% !important;
.infobox caption {
height: auto !important;
font-size: larger;
margin-left: inherit;
}
.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;
}
}


/* Forum formatting (by -Algorithm & -Splaka) */
/* KHWiki tabber */
.forumheader {
.infobox .tabbernav {
border:1px solid #aaa;
font-size: 90%;
background-color:#f9f9f9;
margin-top:1em;
padding:12px;
}
}
.forumlist td.forum_edited a {
.tabber.info {
color:#000;
float: right;
text-decoration:none;
display: block;
margin: 0 0 0.5em 1em;
}
}
.forumlist td.forum_title a {
.tabber.info .nav {
padding-left:20px;
display: block !important;
}
}
.forumlist td.forum_title a.forum_new {
.tabber.info .infobox > tbody > tr:nth-child(2) img {
font-weight:bold;
max-width: 100% !important;
background:url(/images/4/4e/Forum_new.gif) center left no-repeat;
height: auto !important;
padding-left:20px;
}
}
.forumlist td.forum_title a.forum_new:visited {
.tabber.info table {
font-weight:normal;
float: none !important;
background:none;
width: auto !important;
padding-left:20px;
display: block !important;
max-width: none !important;
overflow-x: auto !important;
margin: 0 !important;
}
}
.forumlist th.forum_title {
.tabber.info tbody {
padding-left:20px;
width: 100% !important;
display: table !important;
}
}


/* Recent changes byte indicators */
/* Infobox templates */
.mw-plusminus-pos { color: #006500; }
.infobox {
.mw-plusminus-neg { color: #8B0000; }
float: right;
/* </pre> */
clear: right;
 
margin: 0 0 0.5em 1em;
/* Forum formatting -Algorithm & -Splaka */
padding: 2px;
.forumheader { border: 1px solid #aaa; background-color: #f9f9f9; margin-top: 1em; 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(/images/4/4e/Wiki.png)
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; }
 
/* default skin for navigation boxes */
table.navbox {
background-color:#f9f9f9;
border:1px solid #aaa;
clear:both;
font-size:90%;
margin:1em 0 0;
padding:2px;
text-align:center;
width:100%;
}
}
 
.infobox.journal,
table.navbox th {
.infobox.journal-green {
background-color:#ccf;
padding: 2px 1em 1em;
padding-left:1em;
padding-right:1em;
}
}


table.navbox tr:not(:first-child) th {
/* Notice templates */
background-color:#ddf;
table + #stub {
margin-top: 10px;
}
}
 
.notice-template {
@media print {
width: 95%;
.navbox {
margin: 0 auto 10px;
  display:none;
}
}
}
 
#mw-imagepage-content .notice-template {
/* Standard Navigationsleisten, aka box hiding thingy from .de. Documentation at [[Wikipedia:NavFrame]]. */
margin: 5px auto !important;
 
div.Boxmerge, div.NavFrame {
margin:0;
padding:4px;
border:1px solid #aaa;
text-align:center;
border-collapse:collapse;
font-size:95%;
}
}
div.Boxmerge div.NavFrame {
.notice-template + .notice-template {
border-style:none;
margin-top: -5px;
border-style:hidden;
}
}
div.NavFrame + div.NavFrame {
border-top-style:none;
border-top-style:hidden;
}
div.NavPic {
background-color:#fff;
margin:0px;
padding:2px;
float:left;
}
div.NavFrame div.NavHead {
height:1.6em;
font-weight:bold;
background-color:#ccf;
position:relative;
}
div.NavFrame p {
font-size:100%;
}
div.NavFrame div.NavContent {
font-size:100%;
}
div.NavFrame div.NavContent p {
font-size:100%;
}
div.NavEnd {
margin:0;
padding:0;
line-height:1px;
clear:both;
}
a.NavToggle {
position:absolute;
top:0;
right:3px;
font-weight:normal;
font-size:smaller;
}
/*Copied from http://www.barelyfitz.com/projects/tabber/example.css used under mit license
see http://www.barelyfitz.com/projects/tabber/
*/
/* $Id: example.css,v 1.5 2006/03/27 02:44:36 pat Exp $ */


/*--------------------------------------------------
/* Video tables */
REQUIRED to hide the non-active tab content.
table.video {
But do not hide them in the print stylesheet!
margin: 5px auto;
--------------------------------------------------*/
.tabberlive .tabbertabhide {
display:none;
}
}


/*--------------------------------------------------
/* Suite tabs */
.tabber = before the tabber interface is set up
.suite_tab {
.tabberlive = after the tabber interface is set up
display: inline;
--------------------------------------------------*/
background: #fff;
.tabber {
background: linear-gradient(top,#eee,#fff);
}
box-shadow: 2px 2px 4px #333;
.tabberlive {
margin-top:1em;
}
}


/*--------------------------------------------------
/* Forum formatting */
ul.tabbernav = the tab navigation list
.forumheader {
li.tabberactive = the active tab
margin: 1em 0 15px;
--------------------------------------------------*/
padding: 12px;
ul.tabbernav {
margin:0;
padding: 3px 0;
border-bottom: 1px solid #CCC;
font: bold 12px Verdana, sans-serif;
}
}
 
.forumlist td.forum_edited a {
ul.tabbernav li {
color: #000;
list-style: none;
text-decoration: none;
margin: 0;
display: inline;
}
}
 
.forumlist td.forum_title a {
ul.tabbernav li a {
padding-left: 20px;
padding:3px 0.5em;
margin-left:3px;
border:1px solid #ccc;
border-bottom:none;
background:#f2f7ff;
text-decoration:none;
}
}
 
.forumlist td.forum_title a.forum_new {
ul.tabbernav li a:link { color:#448; }
font-weight: bold;
ul.tabbernav li a:visited { color:#667; }
background: url(https://kh.wiki.gallery/images/forum_new.gif) center left no-repeat;
 
padding-left: 20px;
ul.tabbernav li a:hover {
color:#000;
background:#fff9f2;
border-color:#ccc;
}
}
 
.forumlist td.forum_title a.forum_new:visited {
ul.tabbernav li.tabberactive a {
background: none;
background-color:#fff;
font-weight: normal;
border-bottom:1px solid #fff;
padding-left: 20px;
}
}
 
.forumlist th.forum_title {
ul.tabbernav li.tabberactive a:hover {
padding-left: 20px;
color:#000;
background:#fff;
border-bottom:1px solid #fff;
}
}


/*--------------------------------------------------
/* --------------------------------------------------
.tabbertab = the tab content
MAIN PAGE PORTALS CSS FOLLOWS
Add style only after the tabber interface is set up (.tabberlive)
ORIGINAL CONCEPT COURTESY OF THE ZELDA WIKI
--------------------------------------------------*/
http://www.zeldawiki.org
.tabberlive .tabbertab {
ADJUSTED BY KeybladeSpyMaster. Updated May 12, 2015
padding:5px;
-------------------------------------------------- */
border:1px solid #ccc;
border-top:0;
border-left:none;
border-right:none;
border-bottom:none;
 
/* If you don't want the tab size changing whenever a tab is changed
you can set a fixed height */
/* height:200px; */


/* If you set a fix height set overflow to auto and you will get a
.nav {
scrollbar when necessary */
padding: 0;
/* overflow:auto; */
display: inline-block;
}
}
 
.nav:hover .dropdown:not(#personal-inner) {
/* If desired, hide the heading since a heading is provided by the tab */
display: block !important;
.tabberlive .tabbertab h2 {
display:none;
}
}
.tabberlive .tabbertab h3 {
.nav:hover .mwe-popups-container {
display:none;
display: none;
}
}


/* Example of using an ID to set different styles for the tabs on the page */
.container {
.tabberlive#tab1 {
height: 450px;
position: absolute;
}
}
.tabberlive#tab2 {
 
.dropdown:not(#personal-inner) {
color: #000;
float: left;
z-index: 100;
position: relative;
display: none !important;
border: 2px solid #BFBFBF;
border-radius: 10px;
right: -45%;
left: -45%;
}
}
.tabberlive#tab2 .tabbertab {
.dropdown:not(#personal-inner) a {
height:200px;
color: #fff;
overflow:auto;
text-decoration: none;
}
}
/* </nowiki></pre> */
.dropdown:not(#personal-inner) p {
 
margin: 0;
#title-gameicons { display: none!important; visibility: hidden !important; }
padding: 0;
#title-linktabs {  
position:absolute;
right:0;
top:5px;
}
}
 
.dropdown:not(#personal-inner) td {
/* remove talk link from forum namespace (monobooks/newskins/quartzskins/monaco) -Splarka */
white-space: nowrap;
body.ns-110 #ca-talk, body.ns-110 #this_talk, body.ns-110 #page_tabs li+li { display: none; }
vertical-align: top;
 
padding: 1px;
/* Allow limiting of which header levels are shown in a TOC through {{TOClimit}} */
.toclimit-2 .toclevel-2 {display:none;}
.toclimit-3 .toclevel-3 {display:none;}
.toclimit-4 .toclevel-4 {display:none;}
.toclimit-5 .toclevel-5 {display:none;}
.toclimit-6 .toclevel-6 {display:none;}
.toclimit-7 .toclevel-7 {display:none;}
 
/* Remove breadcrumbs for specific articles */
.page-Zero_One .subpages, .page-Zero_One .PageHeader h2 {display: none;}
.page-Oathkeeper_Oblivion.subpages, .page-Oathkeeper_Oblivion .PageHeader h2 {display: none;}
.page-Terra_Xehanort .subpages, .page-Terra_Xehanort .PageHeader h2 {display: none;}
 
/* =========================================================
      BEGIN SUITE STYLES
========================================================= */
 
.tt1_suite{
background-color:#ebebeb;
border-color:#aaa;
border-style:solid;
border-width:1px;
display:table;
float:right;
margin-right:1em;
padding:2px 5px;
-moz-border-radius:5px;
-webkit-border-radius:5px;
}
}
 
.dropdown:not(#personal-inner) caption a {
.tt1_suite:before{
display: block;
content:'article suite:';
font-size: 150%;
font-size:70%;
padding: 5px 20px;
line-height:.7em;
}
}


 
.dropdowntable td {
.tt1_suite ul {
border: 1px solid #fff;
padding:0;
margin:0;
}
}
 
.dropdowntable td a {
.tt1_suite li {
color: #fff;
display:inline;
font-weight: normal;
background-color: #000;
background-image: linear-gradient(top, #06305B, #3e4874);
display: block;
padding: 2px;
}
}
 
.dropdowntable td a:hover {
.tt1_suite li:before{
background-image: linear-gradient(top, #bfbfff, #3e4874);
content:'| ';
}
}


.tt1_suite li:first-child:before{
/* --------------------------------------------------
content:'';
END OF MAIN PAGE PORTALS CSS
}
-------------------------------------------------- */
.tt1_disambig + .tt1_suite{
border-top:none;
-moz-border-radius-topleft:0;
-moz-border-radius-topright:0;
-webkit-border-top-left-radius:0;
-webkit-border-top-right-radius:0;
}


.tt1_disambig + .tt1_suite:before{
/* Keep create account benefits up top */
content:'';
.mw-special-CreateAccount #userloginForm {
font-size:inherit;
margin-right: 95px;
line-height:inherit;
}
}
 
.mw-createacct-benefits-container {
 
width: 360px;
/* PATCH BORDER ON DOUBLE-DISAMBIGS */
text-align: center;
 
table.tt1_disambig{
margin:0 1em;
padding:.5em;
background:#f7f8ff;
border:thin solid #aaa;
display:block;
}
}


.tt1_disambig + .tt1_disambig{
/* Adjust inputbox button padding in Firefox */
border-top:none;
@-moz-document url-prefix() {
.bodySearchWrap .mw-ui-button, .createboxButton {
padding-top: 4px;
padding-bottom: 5px;
}
}
}


/* Transparent image preview checkerboard */
/* Indicator icons */
.fullImageLink img {
.mw-indicators {
background:#fff url(http://img844.imageshack.us/img844/5714/transparentimg.png);
display: flex;
padding:3px;
}
.fullImageLink img:hover {
background:#bbb url(http://img844.imageshack.us/img844/5714/transparentimg.png);
}
}


/* Thumbnails */
/* Who's online */
div.thumb div.thumbinner div.magnify {
#whosonline {
display:none !important;
margin-bottom: 1px;
}
div.thumb div.thumbinner div {
background:none !important;
border:none !important;
color:#fff;
}
div.thumb div.thumbinner {
background:#a50b5e;
background:linear-gradient(top,#a50b5e,#640639);
background:-o-linear-gradient(top,#a50b5e,#640639);
background:-ms-linear-gradient(top,#a50b5e,#640639);
background:-moz-linear-gradient(top,#a50b5e,#640639);
background:-webkit-linear-gradient(top,#a50b5e,#640639);
border:none !important;
border-radius:5px;
box-shadow:2px 2px 6px #7f7f7f; /* This is needed for browser compatibility */
box-shadow:2px 2px 6px rgba(0,0,0,0.5);
padding:5px !important;
}
div.thumb .thumbimage {
border:none !important;
border-radius:5px;
}
div.thumb .thumbimage:hover {
-moz-transform:scale(1.04);
-webkit-transform:scale(1.04);
}
}


/* Category Box */
/* Width fixes */
div.catlinks {
@media all and (max-width: 1250px) {
background:-webkit-linear-gradient(top,#f9f9f9,#ddd);
.infobox.board div {
border-radius:8px;
width: auto !important;
padding:5px 11px !important;
}
}
.infobox.board div > div {
div.catlinks span {
left: 7.5px !important;
padding:0 8px;
right: 7.5px !important;
}
.infobox.board img {
max-width: 100% !important;
height: auto !important;
}
}
}

Latest revision as of 23:05, 28 August 2024

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

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

/* Random logo */
#p-logo a { background: transparent no-repeat; }
.client-nojs #p-logo a,
.mw-special-Gadgets #p-logo a,
.mw-special-Userlogin #p-logo a,
.mw-special-Preferences #p-logo a,
.mw-special-ChangeEmail #p-logo a,
.mw-special-ResetTokens #p-logo a,
.mw-special-BotPasswords #p-logo a,
.mw-special-CreateAccount #p-logo a,
.mw-special-PasswordReset #p-logo a {
	background-image: url(https://kh.wiki.gallery/images/b/bc/Wiki.png);
}

/* Main page */
@media all and (min-width: 551px) {
	body.page-Main_Page.action-view #content {
		overflow: visible;
		z-index: 5;
	}
}
body.page-Main_Page.action-view .mw-parser-output table img {
	min-width: 15px !important;
	max-width: 100% !important;
	height: auto !important;
}

/* KHWiki tabber */
.infobox .tabbernav {
	font-size: 90%;
}
.tabber.info {
	float: right;
	display: block;
	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;
}
.tabber.info table {
	float: none !important;
	width: auto !important;
	display: block !important;
	max-width: none !important;
	overflow-x: auto !important;
	margin: 0 !important;
}
.tabber.info tbody {
	width: 100% !important;
	display: table !important;
}

/* Infobox templates */
.infobox {
	float: right;
	clear: right;
	margin: 0 0 0.5em 1em;
	padding: 2px;
}
.infobox.journal,
.infobox.journal-green {
	padding: 2px 1em 1em;
}

/* Notice templates */
table + #stub {
	margin-top: 10px;
}
.notice-template {
	width: 95%;
	margin: 0 auto 10px;
}
#mw-imagepage-content .notice-template {
	margin: 5px auto !important;
}
.notice-template + .notice-template {
	margin-top: -5px;
}

/* Video tables */
table.video {
	margin: 5px auto;
}

/* Suite tabs */
.suite_tab {
	display: inline;
	background: #fff;
	background: linear-gradient(top,#eee,#fff);
	box-shadow: 2px 2px 4px #333;
}

/* Forum formatting */
.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://kh.wiki.gallery/images/forum_new.gif) center left no-repeat;
	padding-left: 20px;
}
.forumlist td.forum_title a.forum_new:visited {
	background: none;
	font-weight: normal;
	padding-left: 20px;
}
.forumlist th.forum_title {
	padding-left: 20px;
}

/* --------------------------------------------------
MAIN PAGE PORTALS CSS FOLLOWS
ORIGINAL CONCEPT COURTESY OF THE ZELDA WIKI
http://www.zeldawiki.org
ADJUSTED BY KeybladeSpyMaster. Updated May 12, 2015
-------------------------------------------------- */

.nav {
	padding: 0;
	display: inline-block;
}
.nav:hover .dropdown:not(#personal-inner) {
	display: block !important;
}
.nav:hover .mwe-popups-container {
	display: none;
}

.container {
	height: 450px;
	position: absolute;
}

.dropdown:not(#personal-inner) {
	color: #000;
	float: left;
	z-index: 100;
	position: relative;
	display: none !important;
	border: 2px solid #BFBFBF;
	border-radius: 10px;
	right: -45%;
	left: -45%;
}
.dropdown:not(#personal-inner) a {
	color: #fff;
	text-decoration: none;
}
.dropdown:not(#personal-inner) p {
	margin: 0;
	padding: 0;
}
.dropdown:not(#personal-inner) td {
	white-space: nowrap;
	vertical-align: top;
	padding: 1px;
}
.dropdown:not(#personal-inner) caption a {
	display: block;
	font-size: 150%;
	padding: 5px 20px;
}

.dropdowntable td {
	border: 1px solid #fff;
}
.dropdowntable td a {
	color: #fff;
	font-weight: normal;
	background-color: #000;
	background-image: linear-gradient(top, #06305B, #3e4874);
	display: block;
	padding: 2px;
}
.dropdowntable td a:hover {
	background-image: linear-gradient(top, #bfbfff, #3e4874);
}

/* --------------------------------------------------
END OF MAIN PAGE PORTALS CSS
-------------------------------------------------- */

/* Keep create account benefits up top */
.mw-special-CreateAccount #userloginForm {
	margin-right: 95px;
}
.mw-createacct-benefits-container {
	width: 360px;
	text-align: center;
}

/* Adjust inputbox button padding in Firefox */
@-moz-document url-prefix() {
	.bodySearchWrap .mw-ui-button, .createboxButton {
		padding-top: 4px;
		padding-bottom: 5px;
	}
}

/* Indicator icons */
.mw-indicators {
	display: flex;
}

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

/* Width fixes */
@media all and (max-width: 1250px) {
	.infobox.board div {
		width: auto !important;
	}
	.infobox.board div > div {
		left: 7.5px !important;
		right: 7.5px !important;
	}
	.infobox.board img {
		max-width: 100% !important;
		height: auto !important;
	}
}