MediaWiki:Common.css: Difference between revisions

From the Kingdom Hearts Wiki, the Kingdom Hearts encyclopedia
Jump to navigationJump to search
(My bad... ><)
mNo edit summary
 
(449 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 */
/* KHWiki tabber */
/*body { background: #F0F8FF; }*/
.infobox .tabbernav {
 
font-size: 90%;
/* make a few corners round, only supported by moz/firefox/other gecko browsers for now */
#p-cactions ul li, #p-cactions ul li a {
  -moz-border-radius-topleft: 1em;
  -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; }
MAIN PAGE PORTALS CSS FOLLOWS
.mw-plusminus-neg { color: #8B0000; }
ORIGINAL CONCEPT COURTESY OF THE ZELDA WIKI
/* </pre> */
http://www.zeldawiki.org
 
ADJUSTED BY KeybladeSpyMaster. Updated May 12, 2015
/* 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 */
.nav {
table.navbox {
padding: 0;
    background-color: #f9f9f9;
display: inline-block;
    border: 1px solid #aaa;
    clear: both;
    font-size: 90%;
    margin: 1em 0em 0em;
    padding: 2px;
    text-align: center;
    width: 100%;
}
}
 
.nav:hover .dropdown:not(#personal-inner) {
table.navbox th {
display: block !important;
    background-color: #ccf;
    padding-left: 1em;
    padding-right: 1em;
}
}
 
.nav:hover .mwe-popups-container {
table.navbox tr:not(:first-child) th {
display: none;
    background-color: #ddf;
}
}


@media print {
.container {
    .navbox {
height: 450px;
        display: none;
position: absolute;
    }
}
}


/* Standard Navigationsleisten, aka box hiding thingy from .de.  Documentation at [[Wikipedia:NavFrame]]. */
.dropdown:not(#personal-inner) {
 
color: #000;
div.Boxmerge,
float: left;
div.NavFrame {
z-index: 100;
        margin: 0px;
position: relative;
        padding: 4px;
display: none !important;
        border: 1px solid #aaa;
border: 2px solid #BFBFBF;
        text-align: center;
border-radius: 10px;
        border-collapse: collapse;
right: -45%;
        font-size: 95%;
left: -45%;
}
}
div.Boxmerge div.NavFrame {
.dropdown:not(#personal-inner) a {
        border-style: none;
color: #fff;
        border-style: hidden;
text-decoration: none;
}
}
div.NavFrame + div.NavFrame {
.dropdown:not(#personal-inner) p {
        border-top-style: none;
margin: 0;
        border-top-style: hidden;
padding: 0;
}
}
div.NavPic {
.dropdown:not(#personal-inner) td {
        background-color: #fff;
white-space: nowrap;
        margin: 0px;
vertical-align: top;
        padding: 2px;
padding: 1px;
        float: left;
}
}
div.NavFrame div.NavHead {
.dropdown:not(#personal-inner) caption a {
        height: 1.6em;
display: block;
        font-weight: bold;
font-size: 150%;
        background-color: #ccccff;
padding: 5px 20px;
        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 $ */


/*--------------------------------------------------
.dropdowntable td {
  REQUIRED to hide the non-active tab content.
border: 1px solid #fff;
  But do not hide them in the print stylesheet!
  --------------------------------------------------*/
.tabberlive .tabbertabhide {
display:none;
}
}
 
.dropdowntable td a {
/*--------------------------------------------------
color: #fff;
  .tabber = before the tabber interface is set up
font-weight: normal;
  .tabberlive = after the tabber interface is set up
background-color: #000;
  --------------------------------------------------*/
background-image: linear-gradient(top, #06305B, #3e4874);
.tabber {
display: block;
padding: 2px;
}
}
.tabberlive {
.dropdowntable td a:hover {
margin-top:1em;
background-image: linear-gradient(top, #bfbfff, #3e4874);
}
}


/*--------------------------------------------------
/* --------------------------------------------------
  ul.tabbernav = the tab navigation list
END OF MAIN PAGE PORTALS CSS
  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
/* Keep create account benefits up top */
{
.mw-special-CreateAccount #userloginForm {
list-style: none;
margin-right: 95px;
margin: 0;
display: inline;
}
}
 
.mw-createacct-benefits-container {
ul.tabbernav li a
width: 360px;
{
text-align: center;
padding: 3px 0.5em;
margin-left: 3px;
border: 1px solid #ccc;
border-bottom: none;
background: #f2f7ff;
text-decoration: none;
}
}


ul.tabbernav li a:link { color: #448; }
/* Adjust inputbox button padding in Firefox */
ul.tabbernav li a:visited { color: #667; }
@-moz-document url-prefix() {
 
.bodySearchWrap .mw-ui-button, .createboxButton {
ul.tabbernav li a:hover
padding-top: 4px;
{
padding-bottom: 5px;
color: #000;
}
background: #fff9f2;
border-color: #CCC;
}
}


ul.tabbernav li.tabberactive a
/* Indicator icons */
{
.mw-indicators {
background-color: #fff;
display: flex;
border-bottom: 1px solid #fff;
}
}


ul.tabbernav li.tabberactive a:hover
/* Who's online */
{
#whosonline {
color: #000;
margin-bottom: 1px;
background: white;
border-bottom: 1px solid white;
}
}


/*--------------------------------------------------
/* Width fixes */
  .tabbertab = the tab content
@media all and (max-width: 1250px) {
  Add style only after the tabber interface is set up (.tabberlive)
.infobox.board div {
  --------------------------------------------------*/
width: auto !important;
.tabberlive .tabbertab {
}
padding:5px;
.infobox.board div > div {
border:1px solid #CCC;
left: 7.5px !important;
border-top:0;
right: 7.5px !important;
border-left:none;
}
border-right:none;
.infobox.board img {
border-bottom:none;
max-width: 100% !important;
 
height: auto !important;
/* 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 {
display:none;
}
.tabberlive .tabbertab h3 {
display:none;
}
 
/* Example of using an ID to set different styles for the tabs on the page */
.tabberlive#tab1 {
}
.tabberlive#tab2 {
}
.tabberlive#tab2 .tabbertab {
height:200px;
overflow:auto;
}
/* </nowiki></pre> */
 
#title-gameicons { display: none!important; visibility: hidden !important; }
#title-linktabs {
        position:absolute;
        right:0;
        top:5px;
}
 
/* 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; }
 
/* 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;
}
 
.tt1_suite:before{
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:'| ';
}
 
.tt1_suite li:first-child:before{
content:'';
}
.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{
content:'';
font-size:inherit;
line-height:inherit;
}
 
 
/* PATCH BORDER ON DOUBLE-DISAMBIGS */
 
table.tt1_disambig{
margin:0 1em;
padding:.5em;
background:#f7f8ff;
border:thin solid #aaa;
display:block;
}
 
.tt1_disambig + .tt1_disambig{
border-top:none;
}
 
/* Transparent image preview checkerboard */
.fullImageLink img {
background:#fff url(http://img844.imageshack.us/img844/5714/transparentimg.png);
padding:3px;
}
.fullImageLink img:hover {
background:#bbb url(http://img844.imageshack.us/img844/5714/transparentimg.png);
}
 
/* Thumbnails */
div.thumb div.thumbinner div.magnify {
display:none !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);
}
}

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