MediaWiki:Common.css: Difference between revisions

From the Kingdom Hearts Wiki, the Kingdom Hearts encyclopedia
Jump to navigationJump to search
(Kaboom! Again, colors are open for whatever.)
mNo edit summary
 
(448 intermediate revisions by 9 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,  
/* Navbox style
body.page-Main_Page #lastmod,
      Edit here: https://www.khwiki.com/MediaWiki:Gadget-NavboxStyle.css
body.page-Main_Page #siteSub {  
  Staff highlights
display: none;
      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 */
body.page-Main_Page.action-view .mw-parser-output table img {
.allpagesredirect { font-style: italic; }
min-width: 15px !important;
.watchlistredir { font-style: italic; }
max-width: 100% !important;
 
height: auto !important;
/* replace the book in the background with something else */
}
/*body { background: #F0F8FF; }*/


/* make a few corners round, only supported by moz/firefox/other gecko browsers for now */
/* KHWiki tabber */
#p-cactions ul li, #p-cactions ul li a {  
.infobox .tabbernav {
-moz-border-radius-topleft: 1em;
font-size: 90%;
-moz-border-radius-topright: 1em;
}
}
#content {  
.tabber.info {
-moz-border-radius-topleft: 1em;  
float: right;
-moz-border-radius-bottomleft: 1em;
display: block;
margin: 0 0 0.5em 1em;
}
}
div.pBody {
.tabber.info .nav {
-moz-border-radius-topright: 1em;
display: block !important;
-moz-border-radius-bottomright: 1em;
}
}
 
.tabber.info .infobox > tbody > tr:nth-child(2) img {
/* same following the css3 draft specs, any browsers supporting this? */
max-width: 100% !important;
#p-cactions ul li, #p-cactions ul li a {  
height: auto !important;
border-radius-topleft: 1em;
border-radius-topright: 1em;
}
}
#content {  
.tabber.info table {
border-radius-topleft: 1em;
float: none !important;
border-radius-bottomleft: 1em;
width: auto !important;
display: block !important;
max-width: none !important;
overflow-x: auto !important;
margin: 0 !important;
}
}
div.pBody {
.tabber.info tbody {
border-radius-topright: 1em;
width: 100% !important;
border-radius-bottomright: 1em;
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;
}


/* Infobox template style */
/* Notice templates */
.infobox {
table + #stub {
border: 1px solid #aaaaaa;
margin-top: 10px;
background-color: #f9f9f9;
color: black;
margin-bottom: 0.5em;
margin-left: 1em;
padding: 0.2em;
float: right;
clear: right;
}
}
.infobox td,
.notice-template {
.infobox th {
width: 95%;
vertical-align: top;
margin: 0 auto 10px;
}
}
.infobox caption {
#mw-imagepage-content .notice-template {
font-size: larger;
margin: 5px auto !important;
margin-left: inherit;
}
}
.infobox.bordered {
.notice-template + .notice-template {
border-collapse: collapse;
margin-top: -5px;
}
}
.infobox.bordered td,
 
.infobox.bordered th {
/* Video tables */
border: 1px solid #aaaaaa;
table.video {
margin: 5px auto;
}
}
.infobox.bordered .borderless td,
 
.infobox.bordered .borderless th {
/* Suite tabs */
border: 0;
.suite_tab {
display: inline;
background: #fff;
background: linear-gradient(top,#eee,#fff);
box-shadow: 2px 2px 4px #333;
}
}


/* Forum formatting (by -Algorithm & -Splaka) */
/* Forum formatting */
.forumheader {
.forumheader {
border: 1px solid #aaa;
margin: 1em 0 15px;
background-color: #f9f9f9; margin-top: 1em; padding: 12px;
padding: 12px;
}
}
.forumlist td.forum_edited a {
.forumlist td.forum_edited a {
color: black; text-decoration: none
color: #000;
text-decoration: none;
}
}
.forumlist td.forum_title a {
.forumlist td.forum_title a {
padding-left: 20px;
padding-left: 20px;
}
}
.forumlist td.forum_title a.forum_new {
.forumlist td.forum_title a.forum_new {
font-weight: bold; background: url(/images/4/4e/Forum_new.gif)
font-weight: bold;
center left no-repeat; padding-left: 20px;
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 {
.forumlist td.forum_title a.forum_new:visited {
font-weight: normal; background: none; padding-left: 20px;
background: none;
font-weight: normal;
padding-left: 20px;
}
}
.forumlist th.forum_title {
.forumlist th.forum_title {
padding-left: 20px;
padding-left: 20px;
}
 
/* Recent changes byte indicators */
.mw-plusminus-pos { color: #006500; }
.mw-plusminus-neg { color: #8B0000; }
/* </pre> */
 
/* Forum formatting -Algorithm & -Splaka */
.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 0em 0em;
padding: 2px;
text-align: center;
width: 100%;
}
 
table.navbox th {
background-color: #ccf;
padding-left: 1em;
padding-right: 1em;
}
 
table.navbox tr:not(:first-child) th {
background-color: #ddf;
}
 
@media print {
.navbox {
  display: none;
}
}
 
/* Standard Navigationsleisten, aka box hiding thingy from .de. Documentation at [[Wikipedia:NavFrame]]. */
 
div.Boxmerge,
div.NavFrame {
margin: 0px;
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: #ccccff;
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: 0px;
padding: 0px;
line-height: 1px;
clear: both;
}
a.NavToggle {
position:absolute;
top:0px;
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 $ */
 
/*--------------------------------------------------
REQUIRED to hide the non-active tab content.
But do not hide them in the print stylesheet!
--------------------------------------------------*/
.tabberlive .tabbertabhide {
display:none;
}
 
/*--------------------------------------------------
.tabber = before the tabber interface is set up
.tabberlive = after the tabber interface is set up
--------------------------------------------------*/
.tabber {
}
.tabberlive {
margin-top:1em;
}
 
/*--------------------------------------------------
ul.tabbernav = the tab navigation list
li.tabberactive = the active tab
--------------------------------------------------*/
ul.tabbernav {
margin:0;
padding: 3px 0;
border-bottom: 1px solid #CCC;
font: bold 12px Verdana, sans-serif;
}
 
ul.tabbernav li {
list-style: none;
margin: 0;
display: inline;
}
}


ul.tabbernav li a {
/* --------------------------------------------------
padding: 3px 0.5em;
MAIN PAGE PORTALS CSS FOLLOWS
margin-left: 3px;
ORIGINAL CONCEPT COURTESY OF THE ZELDA WIKI
border: 1px solid #ccc;
http://www.zeldawiki.org
border-bottom: none;
ADJUSTED BY KeybladeSpyMaster. Updated May 12, 2015
background: #f2f7ff;
-------------------------------------------------- */
text-decoration: none;
}


ul.tabbernav li a:link { color: #448; }
.nav {
ul.tabbernav li a:visited { color: #667; }
padding: 0;
 
display: inline-block;
ul.tabbernav li a:hover {
color: #000;
background: #fff9f2;
border-color: #CCC;
}
}
 
.nav:hover .dropdown:not(#personal-inner) {
ul.tabbernav li.tabberactive a {
display: block !important;
background-color: #fff;
border-bottom: 1px solid #fff;
}
}
 
.nav:hover .mwe-popups-container {
ul.tabbernav li.tabberactive a:hover {
display: none;
color: #000;
background: white;
border-bottom: 1px solid white;
}
}


/*--------------------------------------------------
.container {
.tabbertab = the tab content
height: 450px;
Add style only after the tabber interface is set up (.tabberlive)
position: absolute;
--------------------------------------------------*/
.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 */
.dropdown:not(#personal-inner) {
.tabberlive .tabbertab h2 {
color: #000;
display:none;
float: left;
z-index: 100;
position: relative;
display: none !important;
border: 2px solid #BFBFBF;
border-radius: 10px;
right: -45%;
left: -45%;
}
}
.tabberlive .tabbertab h3 {
.dropdown:not(#personal-inner) a {
display:none;
color: #fff;
text-decoration: none;
}
}
 
.dropdown:not(#personal-inner) p {
/* Example of using an ID to set different styles for the tabs on the page */
margin: 0;
.tabberlive#tab1 {
padding: 0;
}
}
.tabberlive#tab2 {
.dropdown:not(#personal-inner) td {
white-space: nowrap;
vertical-align: top;
padding: 1px;
}
}
.tabberlive#tab2 .tabbertab {
.dropdown:not(#personal-inner) caption a {
height:200px;
display: block;
overflow:auto;
font-size: 150%;
padding: 5px 20px;
}
}
/* </nowiki></pre> */


#title-gameicons { display: none!important; visibility: hidden !important; }
.dropdowntable td {
#title-linktabs {
border: 1px solid #fff;
position:absolute;
right:0;
top:5px;
}
}
 
.dropdowntable td a {
/* remove talk link from forum namespace (monobooks/newskins/quartzskins/monaco) -Splarka */
color: #fff;
body.ns-110 #ca-talk, body.ns-110 #this_talk, body.ns-110 #page_tabs li+li { display: none; }
font-weight: normal;
 
background-color: #000;
/* Allow limiting of which header levels are shown in a TOC through {{TOClimit}} */
background-image: linear-gradient(top, #06305B, #3e4874);
.toclimit-2 .toclevel-2 {display:none;}
display: block;
.toclimit-3 .toclevel-3 {display:none;}
padding: 2px;
.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;
}
}
 
.dropdowntable td a:hover {
.tt1_suite:before{
background-image: linear-gradient(top, #bfbfff, #3e4874);
content:'article suite:';
font-size:70%;
line-height:.7em;
}
 
 
.tt1_suite ul {
padding:0;
margin:0;
}
 
.tt1_suite li {
display:inline;
}
}


.tt1_suite li:before{
/* --------------------------------------------------
content:'| ';
END OF MAIN PAGE PORTALS CSS
}
-------------------------------------------------- */


.tt1_suite li:first-child:before{
/* Keep create account benefits up top */
content:'';
.mw-special-CreateAccount #userloginForm {
margin-right: 95px;
}
}
.tt1_disambig + .tt1_suite{
.mw-createacct-benefits-container {
border-top:none;
width: 360px;
-moz-border-radius-topleft:0;
text-align: center;
-moz-border-radius-topright:0;
-webkit-border-top-left-radius:0;
-webkit-border-top-right-radius:0;
}
}


.tt1_disambig + .tt1_suite:before{
/* Adjust inputbox button padding in Firefox */
content:'';
@-moz-document url-prefix() {
font-size:inherit;
.bodySearchWrap .mw-ui-button, .createboxButton {
line-height:inherit;
padding-top: 4px;
padding-bottom: 5px;
}
}
}


 
/* Indicator icons */
/* PATCH BORDER ON DOUBLE-DISAMBIGS */
.mw-indicators {
 
display: flex;
table.tt1_disambig{
margin:0 1em;
padding:.5em;
background:#f7f8ff;
border:thin solid #aaa;
display:block;
}
}


.tt1_disambig + .tt1_disambig{
/* Who's online */
border-top:none;
#whosonline {
margin-bottom: 1px;
}
}


/* Transparent image preview checkerboard */
/* Width fixes */
.fullImageLink img {
@media all and (max-width: 1250px) {
background:#fff url(http://img844.imageshack.us/img844/5714/transparentimg.png);
.infobox.board div {
padding:3px;
width: auto !important;
}
}
.fullImageLink img:hover {
.infobox.board div > div {
background:#bbb url(http://img844.imageshack.us/img844/5714/transparentimg.png);
left: 7.5px !important;
}
right: 7.5px !important;
 
}
/* Thumbnails */
.infobox.board img {
div.thumb div.thumbinner div.magnify {
max-width: 100% !important;
display:none !important;
height: auto !important;
}
}
div.thumb div.thumbinner div {
background:none !important;
border:none !important;
color:#fff;
}
div.thumb div.thumbinner {
background:linear-gradient(top,#500627,#2b0315);
background:-o-linear-gradient(top,#500627,#2b0315);
background:-ms-linear-gradient(top,#500627,#2b0315);
background:-moz-linear-gradient(top,#500627,#2b0315);
background:-webkit-linear-gradient(top,#500627,#2b0315);
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 */
div.catlinks {
background:-webkit-linear-gradient(top,#f9f9f9,#ddd);
border-radius:8px;
padding:5px 11px !important;
}
div.catlinks span {
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;
	}
}