MediaWiki:Common.css: Difference between revisions

From the Kingdom Hearts Wiki, the Kingdom Hearts encyclopedia
Jump to navigationJump to search
(Whoops, forgot this half. ^^)
mNo edit summary
 
(443 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 {
vertical-align: top;
}
}
.infobox caption {
body.page-Main_Page.action-view .mw-parser-output table img {
font-size: larger;
min-width: 15px !important;
margin-left: inherit;
max-width: 100% !important;
}
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;
}
}


/* 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;
}
}
 
/* Standard Navigationsleisten, aka box hiding thingy from .de. Documentation at [[Wikipedia:NavFrame]]. */
 
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 {
border-style:none;
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 {
#mw-imagepage-content .notice-template {
font-size:100%;
margin: 5px auto !important;
}
}
div.NavEnd {
.notice-template + .notice-template {
margin:0;
margin-top: -5px;
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
/* Video tables */
see http://www.barelyfitz.com/projects/tabber/
table.video {
*/
margin: 5px auto;
/* $Id: example.css,v 1.5 2006/03/27 02:44:36 pat Exp $ */
 
/*--------------------------------------------------
REQUIRED to hide the non-active tab content.
But do not hide them in the print stylesheet!
--------------------------------------------------*/
.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
Add style only after the tabber interface is set up (.tabberlive)
--------------------------------------------------*/
.tabberlive .tabbertab {
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
scrollbar when necessary */
/* overflow:auto; */
}
}


/* If desired, hide the heading since a heading is provided by the tab */
/* --------------------------------------------------
.tabberlive .tabbertab h2 {
MAIN PAGE PORTALS CSS FOLLOWS
display:none;
ORIGINAL CONCEPT COURTESY OF THE ZELDA WIKI
}
http://www.zeldawiki.org
.tabberlive .tabbertab h3 {
ADJUSTED BY KeybladeSpyMaster. Updated May 12, 2015
display:none;
-------------------------------------------------- */
}


/* Example of using an ID to set different styles for the tabs on the page */
.nav {
.tabberlive#tab1 {
padding: 0;
display: inline-block;
}
}
.tabberlive#tab2 {
.nav:hover .dropdown:not(#personal-inner) {
display: block !important;
}
}
.tabberlive#tab2 .tabbertab {
.nav:hover .mwe-popups-container {
height:200px;
display: none;
overflow:auto;
}
}
/* </nowiki></pre> */


#title-gameicons { display: none!important; visibility: hidden !important; }
.container {
#title-linktabs {
height: 450px;
position:absolute;
position: absolute;
right:0;
top:5px;
}
}


/* remove talk link from forum namespace (monobooks/newskins/quartzskins/monaco) -Splarka */
.dropdown:not(#personal-inner) {
body.ns-110 #ca-talk, body.ns-110 #this_talk, body.ns-110 #page_tabs li+li { display: none; }
color: #000;
 
float: left;
/* Allow limiting of which header levels are shown in a TOC through {{TOClimit}} */
z-index: 100;
.toclimit-2 .toclevel-2 {display:none;}
position: relative;
.toclimit-3 .toclevel-3 {display:none;}
display: none !important;
.toclimit-4 .toclevel-4 {display:none;}
border: 2px solid #BFBFBF;
.toclimit-5 .toclevel-5 {display:none;}
border-radius: 10px;
.toclimit-6 .toclevel-6 {display:none;}
right: -45%;
.toclimit-7 .toclevel-7 {display:none;}
left: -45%;
 
/* 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) a {
.tt1_suite:before{
color: #fff;
content:'article suite:';
text-decoration: none;
font-size:70%;
line-height:.7em;
}
}
 
.dropdown:not(#personal-inner) p {
 
margin: 0;
.tt1_suite ul {
padding: 0;
padding:0;
margin:0;
}
}
 
.dropdown:not(#personal-inner) td {
.tt1_suite li {
white-space: nowrap;
display:inline;
vertical-align: top;
padding: 1px;
}
}
 
.dropdown:not(#personal-inner) caption a {
.tt1_suite li:before{
display: block;
content:'| ';
font-size: 150%;
padding: 5px 20px;
}
}


.tt1_suite li:first-child:before{
.dropdowntable td {
content:'';
border: 1px solid #fff;
}
}
.tt1_disambig + .tt1_suite{
.dropdowntable td a {
border-top:none;
color: #fff;
-moz-border-radius-topleft:0;
font-weight: normal;
-moz-border-radius-topright:0;
background-color: #000;
-webkit-border-top-left-radius:0;
background-image: linear-gradient(top, #06305B, #3e4874);
-webkit-border-top-right-radius:0;
display: block;
padding: 2px;
}
}
 
.dropdowntable td a:hover {
.tt1_disambig + .tt1_suite:before{
background-image: linear-gradient(top, #bfbfff, #3e4874);
content:'';
font-size:inherit;
line-height:inherit;
}
}


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


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


/* Transparent image preview checkerboard */
/* Adjust inputbox button padding in Firefox */
.fullImageLink img {
@-moz-document url-prefix() {
background:#fff url(http://img844.imageshack.us/img844/5714/transparentimg.png);
.bodySearchWrap .mw-ui-button, .createboxButton {
padding:3px;
padding-top: 4px;
}
padding-bottom: 5px;
.fullImageLink img:hover {
}
background:#bbb url(http://img844.imageshack.us/img844/5714/transparentimg.png);
}
}


/* Thumbnails */
/* Indicator icons */
div.thumb div.thumbinner div.magnify {
.mw-indicators {
display:none !important;
display: flex;
}
div.thumb div.thumbinner div {
background:none !important;
border:none !important;
color:#fff;
}
div.thumb div.thumbinner a {
color:#ddd;
}
div.thumb div.thumbinner a:visited {
color:#aaa;
}
div.thumb div.thumbinner a:hover {
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);
}
}


/* Input buttons */
/* Who's online */
input[type='submit'], input[type='reset'], input[type='button'] {
#whosonline {
padding:1px 6px 3px;
margin-bottom: 1px;
border:3px double #aaa;
border-radius:4px;
cursor:pointer;
color:#222;
background:#f7f7f7;
background:linear-gradient(top,#f7f7f7,#e7e7e7);
background:-o-linear-gradient(top,#f7f7f7,#e7e7e7);
background:-ms-linear-gradient(top,#f7f7f7,#e7e7e7);
background:-moz-linear-gradient(top,#f7f7f7,#e7e7e7);
background:-webkit-linear-gradient(top,#f7f7f7,#e7e7e7);
text-shadow:1px 1px 2px #aaa;
}
input[type='submit']:hover, input[type='reset']:hover, input[type='button']:hover {
border-color:#a50b5e;
box-shadow:0 0 5px #640639;
}
input[type='submit']:active, input[type='reset']:active, input[type='button']:active {
padding:1px 5px 3px 7px;
}
}


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

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