MediaWiki:Common.css: Difference between revisions

From the Kingdom Hearts Wiki, the Kingdom Hearts encyclopedia
Jump to navigationJump to search
(align game icons in the same spot regardless of sitenotice length)
mNo edit summary
 
(424 intermediate revisions by 7 users not shown)
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/* CSS placed here will be applied to all skins on desktop */


@import url(http://www.porplemontage.com/footer.css);
/* Navbox style
      Edit here: https://www.khwiki.com/MediaWiki:Gadget-NavboxStyle.css
  Staff highlights
      Edit here: https://www.khwiki.com/MediaWiki:Gadget-StaffHighlights.css */


body.page-Main_Page h1.firstHeading, body.page-Main_Page #lastmod, body.page-Main_Page #siteSub {  
/* Random logo */
display:none;
#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;
}
}


Line 10: Line 36:
div.userbox img { max-width:100%; width/**\*/:100%\9; height:auto !important; }
div.userbox img { max-width:100%; width/**\*/:100%\9; height:auto !important; }
table.talkbubble {
table.talkbubble {
table-layout/*\**/:fixed\9;
table-layout/*\**/:fixed\9;
width/*\**/:100%\9;
width/*\**/:100%\9;
}
}
table.talkbubble > tr > td:first-child, table.talkbubble > tbody > tr > td:first-child { text-align:center; width:90px; }
table.talkbubble > tr > td:first-child, table.talkbubble > tbody > tr > td:first-child { text-align:center; width:90px; }
table.talkbubble td:first-child img { height:auto !important; max-width:90px; }
table.talkbubble td:first-child img { height:auto !important; max-width:90px; }


/* Reflist font size */
/* KHWiki Tabber */
.references-small { font-size:90%; }
.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;
}
.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;
}


/* Mark redirects in Special:Allpages and Special:Watchlist */
/* Video tables */
.allpagesredirect, .watchlistredir { font-style: italic; }
table.video {
margin: 5px auto;
}


/* Infobox template style */
/* Infobox templates */
.infobox {
.infobox {
border:1px solid #aaa;
float: right;
background-color:#f9f9f9;
clear: right;
color:#000;
margin: 0 0 0.5em 1em;
margin-bottom:0.5em;
padding: 2px;
margin-left:1em;
padding:0.2em;
float:right;
clear:right;
}
}
.infobox td, .infobox th {
.infobox.journal,
vertical-align: top;
.infobox.journal-green {
padding: 2px 1em 1em;
}
}
.infobox caption {
 
font-size: larger;
/* Notice templates */
margin-left: inherit;
table + #stub {
margin-top: 10px;
}
}
.infobox.bordered {
.notice-template {
border-collapse: collapse;
width: 95%;
margin: 0 auto 10px;
}
}
.infobox.bordered td, .infobox.bordered th {
#mw-imagepage-content .notice-template {
border: 1px solid #aaa;
margin: 5px auto !important;
}
}
.infobox.bordered .borderless td, .infobox.bordered .borderless th {
.notice-template + .notice-template {
border: 0;
margin-top: -5px;
}
}


/* Forum formatting (by -Algorithm & -Splaka) */
/* Forum formatting (by -Algorithm & -Splaka) */
.forumheader {
.forumheader {
border:1px solid #aaa;
border: 1px solid #aaa;
background-color:#f9f9f9;
background-color: #f9f9f9;
margin-top:1em;
margin: 1em 0 15px;
padding:12px;
padding: 12px;
}
}
.forumlist td.forum_edited a {
.forumlist td.forum_edited a {
color:#000;
color: #000;
text-decoration:none;
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;
font-weight: bold;
background:url(/images/4/4e/Forum_new.gif) center left no-repeat;
background: url(https://kh.wiki.gallery/images/forum_new.gif) center left no-repeat;
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;
}
}


Line 81: Line 134:
.mw-plusminus-pos { color: #006500; }
.mw-plusminus-pos { color: #006500; }
.mw-plusminus-neg { color: #8B0000; }
.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 0 0;
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 {
/* Standard Navigationsleisten, aka box hiding thingy from .de. Documentation at Wikipedia:NavFrame */
background-color:#ddf;
}
 
@media print {
.navbox {
  display:none;
}
}
 
/* Standard Navigationsleisten, aka box hiding thingy from .de. Documentation at [[Wikipedia:NavFrame]]. */
div.Boxmerge, div.NavFrame {
div.Boxmerge, div.NavFrame {
margin:0;
margin: 0;
padding:4px;
padding: 4px;
border:1px solid #aaa;
border: 1px solid #aaa;
text-align:center;
text-align: center;
border-collapse:collapse;
border-collapse: collapse;
font-size:95%;
font-size: 95%;
}
}
div.Boxmerge div.NavFrame {
div.Boxmerge div.NavFrame {
border-style:none;
border-style: none;
border-style:hidden;
border-style: hidden;
}
}
div.NavFrame + div.NavFrame {
div.NavFrame + div.NavFrame {
border-top-style:none;
border-top-style: none;
border-top-style:hidden;
border-top-style: hidden;
}
}
div.NavPic {
div.NavPic {
background-color:#fff;
background-color: #fff;
margin:0px;
margin: 0;
padding:2px;
padding: 2px;
float:left;
float: left;
}
}
div.NavFrame div.NavHead {
div.NavFrame div.NavHead {
height:1.6em;
height: 1.6em;
font-weight:bold;
font-weight: bold;
background-color:#ccf;
background-color: #ccf;
position:relative;
position: relative;
}
}
div.NavFrame p {
div.NavFrame p {
font-size:100%;
font-size: 100%;
}
}
div.NavFrame div.NavContent {
div.NavFrame div.NavContent {
font-size:100%;
font-size: 100%;
}
}
div.NavFrame div.NavContent p {
div.NavFrame div.NavContent p {
font-size:100%;
font-size: 100%;
}
}
div.NavEnd {
div.NavEnd {
margin:0;
margin: 0;
padding:0;
padding: 0;
line-height:1px;
line-height: 1px;
clear:both;
clear: both;
}
}
a.NavToggle {
a.NavToggle {
position:absolute;
position: absolute;
top:0;
top: 0;
right:3px;
right: 3px;
font-weight:normal;
font-weight: normal;
font-size:smaller;
font-size: smaller;
}
}


/* Suite Tabs */
/* Suite tabs */
.suite2_tab {
.suite_tab {
background:#fff;
background: #fff;
background:linear-gradient(top,#eee,#fff);
background: linear-gradient(top,#eee,#fff);
background:-o-linear-gradient(top,#eee,#fff);
box-shadow: 2px 2px 4px #333;
background:-ms-linear-gradient(top,#eee,#fff);
display: inline;
background:-moz-linear-gradient(top,#eee,#fff);
background:-webkit-linear-gradient(top,#eee,#fff);
box-shadow:2px 2px 4px #333;
display:inline;
}
}
.client-msie-8 .suite2_tab, .client-msie-9 .suite2_tab {
.client-msie-8 .suite_tab, .client-msie-9 .suite_tab {
padding-bottom:3px !important;
padding-bottom: 3px !important;
}
}


/*Copied from http://www.barelyfitz.com/projects/tabber/example.css used under mit license
/* Suite styles */
see http://www.barelyfitz.com/projects/tabber/
.tt1_suite {
*/
background-color: #ebebeb;
/* $Id: example.css,v 1.5 2006/03/27 02:44:36 pat Exp $ */
border-color: #aaa;
 
border-style: solid;
/*--------------------------------------------------
border-width: 1px;
REQUIRED to hide the non-active tab content.
display: table;
But do not hide them in the print stylesheet!
float: right;
--------------------------------------------------*/
margin: 0 1em 0.5em 1em;
.tabberlive .tabbertabhide {
padding: 2px 5px;
display:none;
border-radius: 5px;
}
.tt1_suite:before {
content: 'article suite:';
font-size: 70%;
line-height: 0.7em;
}
}
 
.tt1_suite ul {
/*--------------------------------------------------
padding: 0;
.tabber = before the tabber interface is set up
margin: 0;
.tabberlive = after the tabber interface is set up
--------------------------------------------------*/
.tabber {
}
}
.tabberlive {
.tt1_suite li {
margin-top:1em;
display: inline;
}
}
 
.tt1_suite li:before{
/*--------------------------------------------------
content: '| ';
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;
}
}
 
.tt1_suite li:first-child:before{
ul.tabbernav li {
content: '';
list-style: none;
margin: 0;
display: inline;
}
}
 
.tt1_disambig + .tt1_suite{
ul.tabbernav li a {
border-top: none;
padding:3px 0.5em;
border-top-left-radius: 0;
margin-left:3px;
border-top-right-radius: 0;
border:1px solid #ccc;
border-bottom:none;
background:#f2f7ff;
text-decoration:none;
}
}
 
.tt1_disambig + .tt1_suite:before{
ul.tabbernav li a:link { color:#448; }
content: '';
ul.tabbernav li a:visited { color:#667; }
font-size: inherit;
 
line-height: inherit;
ul.tabbernav li a:hover {
color:#000;
background:#fff9f2;
border-color:#ccc;
}
}


ul.tabbernav li.tabberactive a {
/* Allow limiting of which header levels are shown in a TOC through {{TOClimit}} */
background-color:#fff;
.toclimit-2 .toclevel-2 { display: none; }
border-bottom:1px solid #fff;
.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; }


ul.tabbernav li.tabberactive a:hover {
/* PATCH BORDER ON DOUBLE-DISAMBIGS */
color:#000;
table.tt1_disambig{
background:#fff;
margin: 0 1em;
border-bottom:1px solid #fff;
padding: 0.5em;
background: #f7f8ff;
border: thin solid #aaa;
display: block;
}
}
 
.tt1_disambig + .tt1_disambig{
/*--------------------------------------------------
border-top: none;
.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 */
/* Thumbnails */
.tabberlive .tabbertab h2 {
div.thumb.tright { clear: none; }
display:none;
div.thumb.tright + div.thumb.tright,
}
div.thumb.tright + p + div.thumb.tright,
.tabberlive .tabbertab h3 {
div.thumb.tright + h2 + div.thumb.tright,
display:none;
div.thumb.tright + h3 + div.thumb.tright,
div.thumb.tright + p + p + div.thumb.tright,
div.thumb.tright + p + h2 + div.thumb.tright,
div.thumb.tright + p + h3 + div.thumb.tright,
div.thumb.tright + h2 + p + div.thumb.tright,
div.thumb.tright + h3 + p + div.thumb.tright,
div.thumb.tright + p + p + p + div.thumb.tright {
clear: right;
}
}


/* Example of using an ID to set different styles for the tabs on the page */
/* Aspetto uguale ai link per il morph */
.tabberlive#tab1 {
.morphLink {
color: #002BB8;
display: inline-block;
cursor: pointer;
}
}
.tabberlive#tab2 {
.morphLink:hover {
text-decoration: underline;
}
}
.tabberlive#tab2 .tabbertab {
.toggleLink {
height:200px;
color: #002BB8;
overflow:auto;
display: inline-block;
cursor: pointer;
}
}
/* </nowiki></pre> */


#title-gameicons { display: none!important; visibility: hidden !important; }
/* Keep create account benefits up top */
#linktabs-upper {
.mw-special-CreateAccount #userloginForm {
position:relative;
margin-right: 95px;
}
}
#title-linktabs {  
.mw-createacct-benefits-container {
position:absolute;
width: 360px;
right:0;
text-align: center;
top:-55px;
}
}


/* remove talk link from forum namespace (monobooks/newskins/quartzskins/monaco) -Splarka */
/* --------------------------------------------------
body.ns-110 #ca-talk, body.ns-110 #this_talk, body.ns-110 #page_tabs li+li { display: none; }
MAIN PAGE PORTALS CSS FOLLOWS.  
 
ORIGINAL CONCEPT COURTESY OF THE ZELDA WIKI.
/* Allow limiting of which header levels are shown in a TOC through {{TOClimit}} */
http://www.zeldawiki.org
.toclimit-2 .toclevel-2 {display:none;}
ADJUSTED BY KeybladeSpyMaster. Updated May 12, 2015
.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{
/* Main Page Portals: Nav class */
background-color:#ebebeb;
.nav {
border-color:#aaa;
padding: 0;
border-style:solid;
display: inline-block;
border-width:1px;
display:table;
float:right;
margin-right:1em;
padding:2px 5px;
-moz-border-radius:5px;
-webkit-border-radius:5px;
}
}
 
.nav:hover .dropdown:not(#personal-inner) {
.tt1_suite:before{
display: block !important;
content:'article suite:';
font-size:70%;
line-height:.7em;
}
}
 
.nav:hover .mwe-popups-container {
.tt1_suite ul {
display: none;
padding:0;
margin:0;
}
}


.tt1_suite li {
/* Main Page Portals: Container */
display:inline;
.container{
position: absolute;
height: 450px;
}
}
 
.dropdown:not(#personal-inner) {
.tt1_suite li:before{
border: 2px solid #BFBFBF;
content:'| ';
border-radius: 10px;
display: none !important;
float: left;
left: -45%;
right: -45%;
position: relative;
z-index: 100;
color: #000;
}
}
 
.dropdown:not(#personal-inner) a {
.tt1_suite li:first-child:before{
color: #FFFFFF;
content:'';
text-decoration: none;
}
}
.tt1_disambig + .tt1_suite{
.dropdown:not(#personal-inner) caption {
border-top:none;
width:inherit;
-moz-border-radius-topleft:0;
-moz-border-radius-topright:0;
-webkit-border-top-left-radius:0;
-webkit-border-top-right-radius:0;
}
}
 
.dropdown:not(#personal-inner) td {
.tt1_disambig + .tt1_suite:before{
vertical-align: top;
content:'';
padding: 1px;
font-size:inherit;
white-space: nowrap;
line-height:inherit;
}
}
 
.dropdown:not(#personal-inner) td p a {
/* PATCH BORDER ON DOUBLE-DISAMBIGS */
border: 1px solid #3e4874;
 
font-size: 90%;
table.tt1_disambig{
line-height: 1.2em;
margin:0 1em;
margin: 3px 3px;
padding:.5em;
padding: 3px;
background:#f7f8ff;
border:thin solid #aaa;
display:block;
}
}
 
.dropdown:not(#personal-inner) p {
.tt1_disambig + .tt1_disambig{
margin: 0;
border-top:none;
padding: 0;
}
}
 
caption a, .dropdown:not(#personal-inner) th a {
/* Transparent image preview checkerboard */
display: block;
.fullImageLink img {
padding: 2px;
background:#fff url(http://img844.imageshack.us/img844/5714/transparentimg.png);
padding:3px;
}
}
.fullImageLink img:hover {
.dropdown:not(#personal-inner) caption a {
background:#bbb url(http://img844.imageshack.us/img844/5714/transparentimg.png);
padding: 5px 20px 5px 20px;
font-size: 150%;
}
}


/* Thumbnails */
/* Main Page Portals: Character table */
div.thumb div.thumbinner div.magnify {
.dropdowntable td {
display:none !important;
border: #fff solid 1px;
}
}
div.thumb div.thumbinner div {
.dropdowntable td a {
background:none !important;
background-color: #000000;
border:none !important;
background-image: linear-gradient(top, #06305B, #3e4874);
color:#fff;
color: #FFFFFF;
font-weight: normal;
display: block;
padding: 2px;
}
}
div.thumb div.thumbinner a {
.dropdowntable td a:hover {
color:#ddd;
background-image: linear-gradient(top, #bfbfff, #3e4874);
}
}
div.thumb div.thumbinner a:visited {
 
color:#aaa;
/* Alt text colors */
.altcolors {
position: relative;
animation-name: myfirst;
animation-duration: 5s;
animation-timing-function: linear;
animation-delay: 1s;
animation-iteration-count: infinite;
animation-direction: alternate;
animation-play-state: running;
}
}
div.thumb div.thumbinner a:hover {
 
  color:#fff;
/* Chrome, Safari, Opera */
@-webkit-keyframes myfirst {
0%  {color: #FFFFFF; opacity: 1.0;}
10%  {color: #FFFFFF; opacity: 1.0;}
20%  {opacity: 0.0;}
30%  {color: #9294b0; opacity: 1.0;}
60% {color: #9294b0; opacity: 1.0;}
70%  {opacity: 0.0;}
80%  {color: #FFFFFF; opacity:1.0;}
100% {color: #FFFFFF; opacity:1.0;}
}
}
div.thumb div.thumbinner {
 
background:#a50b5e;
/* Standard syntax */
  background:linear-gradient(top,#a50b5e,#640639);
@keyframes myfirst {
  background:-o-linear-gradient(top,#a50b5e,#640639);
0%  {color: #FFFFFF; opacity: 1.0;}
  background:-ms-linear-gradient(top,#a50b5e,#640639);
10% {color: #FFFFFF; opacity: 1.0;}
background:-moz-linear-gradient(top,#a50b5e,#640639);
20% {opacity: 0.0;}
  background:-webkit-linear-gradient(top,#a50b5e,#640639);
30% {color: #9294b0; opacity: 1.0;}
border:none !important;
60% {color: #9294b0; opacity: 1.0;}
  border-radius:5px;
70% {opacity: 0.0;}
  box-shadow:2px 2px 6px #7f7f7f; /* This is needed for browser compatibility */
80% {color: #FFFFFF; opacity:1.0;}
box-shadow:2px 2px 6px rgba(0,0,0,0.5);
100% {color: #FFFFFF; opacity:1.0;}
padding:5px !important;
}
}
div.thumb .thumbimage {
 
border:none !important;
/* Adjust inputbox button padding in Firefox */
border-radius:5px;
@-moz-document url-prefix() {
.bodySearchWrap .mw-ui-button, .createboxButton {
padding-top: 4px;
padding-bottom: 5px;
}
}
}
div.thumb .thumbimage:hover {
 
-moz-transform:scale(1.02);
/* MediaWiki collapsible buttons */
-webkit-transform:scale(1.02);
.mw-collapsible-toggle {
font-weight: normal;
}
}


/* Input buttons */
/* Indicator icons */
input[type='submit'], input[type='reset'], input[type='button'] {
.mw-indicators {
padding:1px 6px 3px;
display: flex;
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;
/* Who's online */
box-shadow:0 0 5px #640639;
#whosonline {
margin-bottom: 1px;
}
}
input[type='submit']:active, input[type='reset']:active, input[type='button']:active {
 
padding:1px 5px 3px 7px;
/* 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;
}
}
}


/* Category Box */
/* fulltabs class to allow for full tabber width */
div.catlinks {
.fulltabs .tabberlive {
background:#f9f9f9;
margin-left: 0;
background:linear-gradient(top,#f9f9f9,#ddd);
background:-o-linear-gradient(top,#f9f9f9,#ddd);
background:-ms-linear-gradient(top,#f9f9f9,#ddd);
background:-moz-linear-gradient(top,#f9f9f9,#ddd);
background:-webkit-linear-gradient(top,#f9f9f9,#ddd);
border-radius:8px;
padding:5px 11px !important;
}
}
div.catlinks span {
.fulltabs .goright {
padding:0 8px;
clear: none;
float: none;
}
}
/* Aspetto uguale ai link per il morph */
  .morphLink {
    color: #002BB8;
    display: inline-block;
    cursor: pointer;
}
  .morphLink:hover {
    text-decoration: underline;
}
  .toggleLink {
    color: #002BB8;
    display: inline-block;
    cursor: pointer;
}

Latest revision as of 16:09, 26 March 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;
}

/* Image restrictions */
div.userbox img { max-width:100%; width/**\*/:100%\9; height:auto !important; }
table.talkbubble {
	table-layout/*\**/:fixed\9;
	width/*\**/:100%\9;
}
table.talkbubble > tr > td:first-child, table.talkbubble > tbody > tr > td:first-child { text-align:center; width:90px; }
table.talkbubble td:first-child img { height:auto !important; max-width:90px; }

/* KHWiki 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;
}
.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;
}

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

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

/* Forum formatting (by -Algorithm & -Splaka) */
.forumheader {
	border: 1px solid #aaa;
	background-color: #f9f9f9;
	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 {
	font-weight: normal;
	background: none;
	padding-left: 20px;
}
.forumlist th.forum_title {
	padding-left: 20px;
}

/* Recent changes byte indicators */
.mw-plusminus-pos { color: #006500; }
.mw-plusminus-neg { color: #8B0000; }

/* 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: 0;
	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;
}

/* Suite tabs */
.suite_tab {
	background: #fff;
	background: linear-gradient(top,#eee,#fff);
	box-shadow: 2px 2px 4px #333;
	display: inline;
}
.client-msie-8 .suite_tab, .client-msie-9 .suite_tab {
	padding-bottom: 3px !important;
}

/* Suite styles */
.tt1_suite {
	background-color: #ebebeb;
	border-color: #aaa;
	border-style: solid;
	border-width: 1px;
	display: table;
	float: right;
	margin: 0 1em 0.5em 1em;
	padding: 2px 5px;
	border-radius: 5px;
}
.tt1_suite:before {
	content: 'article suite:';
	font-size: 70%;
	line-height: 0.7em;
}
.tt1_suite ul {
	padding: 0;
	margin: 0;
}
.tt1_suite li {
	display: inline;
}
.tt1_suite li:before{
	content: '| ';
}
.tt1_suite li:first-child:before{
	content: '';
}
.tt1_disambig + .tt1_suite{
	border-top: none;
	border-top-left-radius: 0;
	border-top-right-radius: 0;
}
.tt1_disambig + .tt1_suite:before{
	content: '';
	font-size: inherit;
	line-height: inherit;
}

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

/* PATCH BORDER ON DOUBLE-DISAMBIGS */
table.tt1_disambig{
	margin: 0 1em;
	padding: 0.5em;
	background: #f7f8ff;
	border: thin solid #aaa;
	display: block;
}
.tt1_disambig + .tt1_disambig{
	border-top: none;
}

/* Thumbnails */
div.thumb.tright { clear: none; }
div.thumb.tright + div.thumb.tright,
div.thumb.tright + p + div.thumb.tright,
div.thumb.tright + h2 + div.thumb.tright,
div.thumb.tright + h3 + div.thumb.tright,
div.thumb.tright + p + p + div.thumb.tright,
div.thumb.tright + p + h2 + div.thumb.tright,
div.thumb.tright + p + h3 + div.thumb.tright,
div.thumb.tright + h2 + p + div.thumb.tright,
div.thumb.tright + h3 + p + div.thumb.tright,
div.thumb.tright + p + p + p + div.thumb.tright {
	clear: right;
}

/* Aspetto uguale ai link per il morph */
.morphLink {
	color: #002BB8;
	display: inline-block;
	cursor: pointer;
}
.morphLink:hover {
	text-decoration: underline;
}
.toggleLink {
	color: #002BB8;
	display: inline-block;
	cursor: pointer;
}

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

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

/* Main Page Portals: Nav class */
.nav {
	padding: 0;
	display: inline-block;
}
.nav:hover .dropdown:not(#personal-inner) {
	display: block !important;
}
.nav:hover .mwe-popups-container {
	display: none;
}

/* Main Page Portals: Container */
.container{
	position: absolute;
	height: 450px;
}
.dropdown:not(#personal-inner) {
	border: 2px solid #BFBFBF;
	border-radius: 10px;
	display: none !important;
	float: left;
	left: -45%;
	right: -45%;
	position: relative;
	z-index: 100;
	color: #000;
}
.dropdown:not(#personal-inner) a {
	color: #FFFFFF;
	text-decoration: none;
}
.dropdown:not(#personal-inner) caption {
	width:inherit;
}
.dropdown:not(#personal-inner) td {
	vertical-align: top;
	padding: 1px;
	white-space: nowrap;
}
.dropdown:not(#personal-inner) td p a {
	border: 1px solid #3e4874;
	font-size: 90%;
	line-height: 1.2em;
	margin: 3px 3px;
	padding: 3px;
}
.dropdown:not(#personal-inner) p {
	margin: 0;
	padding: 0;
}
caption a, .dropdown:not(#personal-inner) th a {
	display: block;
	padding: 2px;
}
.dropdown:not(#personal-inner) caption a {
	padding: 5px 20px 5px 20px;
	font-size: 150%;
}

/* Main Page Portals: Character table */
.dropdowntable td {
	border: #fff solid 1px;
}
.dropdowntable td a {
	background-color: #000000;
	background-image: linear-gradient(top, #06305B, #3e4874);
	color: #FFFFFF;
	font-weight: normal;
	display: block;
	padding: 2px;
}
.dropdowntable td a:hover {
	background-image: linear-gradient(top, #bfbfff, #3e4874);
}

/* Alt text colors */
.altcolors {
	position: relative;
	animation-name: myfirst;
	animation-duration: 5s;
	animation-timing-function: linear;
	animation-delay: 1s;
	animation-iteration-count: infinite;
	animation-direction: alternate;
	animation-play-state: running;
}

/* Chrome, Safari, Opera */
@-webkit-keyframes myfirst {
	0%   {color: #FFFFFF; opacity: 1.0;}
	10%  {color: #FFFFFF; opacity: 1.0;}
	20%  {opacity: 0.0;}
	30%  {color: #9294b0; opacity: 1.0;}
	60%  {color: #9294b0; opacity: 1.0;}
	70%  {opacity: 0.0;}
	80%  {color: #FFFFFF; opacity:1.0;}
	100% {color: #FFFFFF; opacity:1.0;}
}

/* Standard syntax */
@keyframes myfirst {
	0%   {color: #FFFFFF; opacity: 1.0;}
	10%  {color: #FFFFFF; opacity: 1.0;}
	20%  {opacity: 0.0;}
	30%  {color: #9294b0; opacity: 1.0;}
	60%  {color: #9294b0; opacity: 1.0;}
	70%  {opacity: 0.0;}
	80%  {color: #FFFFFF; opacity:1.0;}
	100% {color: #FFFFFF; opacity:1.0;}
}

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

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

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

/* fulltabs class to allow for full tabber width */
.fulltabs .tabberlive {
	margin-left: 0;
}
.fulltabs .goright {
	clear: none;
	float: none;
}