MediaWiki:Common.css: Difference between revisions

From the Kingdom Hearts Wiki, the Kingdom Hearts encyclopedia
Jump to navigationJump to search
(Better?)
(Formatting; also, this does not belong in Common; anyone is welcome to put it in their user CSS, but this hardly affects any browsers and messes up existing skins in the affected browsers.)
Line 3: Line 3:
/* <pre> */
/* <pre> */


body.page-Main_Page h1.firstHeading,  
body.page-Main_Page h1.firstHeading, body.page-Main_Page #lastmod, body.page-Main_Page #siteSub {  
body.page-Main_Page #lastmod,
  display:none;
body.page-Main_Page #siteSub {  
  display: none;
}
}


Line 14: Line 12:


/* Reflist font size */
/* Reflist font size */
.references-small { font-size: 90%;}
.references-small { font-size:90%; }


/* Mark redirects in Special:Allpages and Special:Watchlist */
/* Mark redirects in Special:Allpages and Special:Watchlist */
.allpagesredirect { font-style: italic; }
.allpagesredirect, .watchlistredir { font-style: italic; }
.watchlistredir { font-style: italic; }
 
/* 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 */
#p-cactions ul li, #p-cactions ul li a {
-moz-border-radius-topleft: 1em;
-moz-border-radius-topright: 1em;
}
#content {
-moz-border-radius-topleft: 1em;
-moz-border-radius-bottomleft: 1em;
}
div.pBody {
-moz-border-radius-topright: 1em;
-moz-border-radius-bottomright: 1em;
}
 
/* same following the css3 draft specs, any browsers supporting this? */
#p-cactions ul li, #p-cactions ul li a {
border-radius-topleft: 1em;
border-radius-topright: 1em;
}
#content {
border-radius-topleft: 1em;
border-radius-bottomleft: 1em;
}
div.pBody {
border-radius-topright: 1em;
border-radius-bottomright: 1em;
}
 


/* Infobox template style */
/* Infobox template style */
.infobox {
.infobox {
  border: 1px solid #aaaaaa;
  border:1px solid #aaa;
  background-color: #f9f9f9;
  background-color:#f9f9f9;
  color: black;
  color:#000;
  margin-bottom: 0.5em;
  margin-bottom:0.5em;
  margin-left: 1em;
  margin-left:1em;
  padding: 0.2em;
  padding:0.2em;
  float: right;
  float:right;
  clear: right;
  clear:right;
}
}
.infobox td,
.infobox td, .infobox th {
.infobox th {
  vertical-align: top;
  vertical-align: top;
}
}
Line 74: Line 38:
  border-collapse: collapse;
  border-collapse: collapse;
}
}
.infobox.bordered td,
.infobox.bordered td, .infobox.bordered th {
.infobox.bordered th {
  border: 1px solid #aaa;
  border: 1px solid #aaaaaa;
}
}
.infobox.bordered .borderless td,
.infobox.bordered .borderless td, .infobox.bordered .borderless th {
.infobox.bordered .borderless th {
  border: 0;
  border: 0;
}
}
Line 85: Line 47:
/* Forum formatting (by -Algorithm & -Splaka) */
/* Forum formatting (by -Algorithm & -Splaka) */
.forumheader {
.forumheader {
  border: 1px solid #aaa;
  border:1px solid #aaa;
  background-color: #f9f9f9; margin-top: 1em; padding: 12px;
  background-color:#f9f9f9;
margin-top:1em;
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(/images/4/4e/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;
  font-weight:normal;
background:none;
padding-left:20px;
}
}
.forumlist th.forum_title {
.forumlist th.forum_title {
  padding-left: 20px;
  padding-left:20px;
}
}


Line 121: Line 89:
/* default skin for navigation boxes */
/* default skin for navigation boxes */
table.navbox {
table.navbox {
  background-color: #f9f9f9;
  background-color:#f9f9f9;
  border: 1px solid #aaa;
  border:1px solid #aaa;
  clear: both;
  clear:both;
  font-size: 90%;
  font-size:90%;
  margin: 1em 0em 0em;
  margin:1em 0 0;
  padding: 2px;
  padding:2px;
  text-align: center;
  text-align:center;
  width: 100%;
  width:100%;
}
}


table.navbox th {
table.navbox th {
  background-color: #ccf;
  background-color:#ccf;
  padding-left: 1em;
  padding-left:1em;
  padding-right: 1em;
  padding-right:1em;
}
}


table.navbox tr:not(:first-child) th {
table.navbox tr:not(:first-child) th {
  background-color: #ddf;
  background-color:#ddf;
}
}


@media print {
@media print {
  .navbox {
  .navbox {
   display: none;
   display:none;
  }
  }
}
}
Line 149: Line 117:
/* Standard Navigationsleisten, aka box hiding thingy from .de. Documentation at [[Wikipedia:NavFrame]]. */
/* Standard Navigationsleisten, aka box hiding thingy from .de. Documentation at [[Wikipedia:NavFrame]]. */


div.Boxmerge,
div.Boxmerge, div.NavFrame {
div.NavFrame {
  margin:0;
  margin: 0px;
  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:0px;
  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: #ccccff;
  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: 0px;
  margin:0;
  padding: 0px;
  padding:0;
  line-height: 1px;
  line-height:1px;
  clear: both;
  clear:both;
}
}
a.NavToggle {
a.NavToggle {
  position:absolute;
  position:absolute;
  top:0px;
  top:0;
  right:3px;
  right:3px;
  font-weight:normal;
  font-weight:normal;
Line 242: Line 209:


ul.tabbernav li a {
ul.tabbernav li a {
  padding: 3px 0.5em;
  padding:3px 0.5em;
  margin-left: 3px;
  margin-left:3px;
  border: 1px solid #ccc;
  border:1px solid #ccc;
  border-bottom: none;
  border-bottom:none;
  background: #f2f7ff;
  background:#f2f7ff;
  text-decoration: none;
  text-decoration:none;
}
}


ul.tabbernav li a:link { color: #448; }
ul.tabbernav li a:link { color:#448; }
ul.tabbernav li a:visited { color: #667; }
ul.tabbernav li a:visited { color:#667; }


ul.tabbernav li a:hover {
ul.tabbernav li a:hover {
  color: #000;
  color:#000;
  background: #fff9f2;
  background:#fff9f2;
  border-color: #CCC;
  border-color:#ccc;
}
}


ul.tabbernav li.tabberactive a {
ul.tabbernav li.tabberactive a {
  background-color: #fff;
  background-color:#fff;
  border-bottom: 1px solid #fff;
  border-bottom:1px solid #fff;
}
}


ul.tabbernav li.tabberactive a:hover {
ul.tabbernav li.tabberactive a:hover {
  color: #000;
  color:#000;
  background: white;
  background:#fff;
  border-bottom: 1px solid white;
  border-bottom:1px solid #fff;
}
}


Line 276: Line 243:
.tabberlive .tabbertab {
.tabberlive .tabbertab {
  padding:5px;
  padding:5px;
  border:1px solid #CCC;
  border:1px solid #ccc;
  border-top:0;
  border-top:0;
  border-left:none;
  border-left:none;
Line 284: Line 251:
  /* If you don't want the tab size changing whenever a tab is changed
  /* If you don't want the tab size changing whenever a tab is changed
  you can set a fixed height */
  you can set a fixed height */
  /* height:200px; */
  /* height:200px; */


  /* If you set a fix height set overflow to auto and you will get a
  /* If you set a fix height set overflow to auto and you will get a
  scrollbar when necessary */
  scrollbar when necessary */
  /* overflow:auto; */
  /* overflow:auto; */
}
}

Revision as of 01:10, 6 February 2012

/***** CSS placed here will be applied to all skins on the entire site. *****/
/* See also: [[MediaWiki:Monobook.css]] */
/* <pre> */

body.page-Main_Page h1.firstHeading, body.page-Main_Page #lastmod, body.page-Main_Page #siteSub { 
 display:none;
}

/* Image restrictions */
div.userbox img { max-width:100%; width/**\*/:100%\9; height:auto !important; }
table.talkbubble td:first-child img { max-width:90px; height:auto !important; }

/* Reflist font size */
.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 {
 font-size: larger;
 margin-left: inherit;
}
.infobox.bordered {
 border-collapse: collapse;
}
.infobox.bordered td, .infobox.bordered th {
 border: 1px solid #aaa;
}
.infobox.bordered .borderless td, .infobox.bordered .borderless th {
 border: 0;
}

/* Forum formatting (by -Algorithm & -Splaka) */
.forumheader {
 border:1px solid #aaa;
 background-color:#f9f9f9;
 margin-top:1em;
 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(/images/4/4e/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; }
/* </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 {
 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: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 {
 font-size:100%;
}
div.NavEnd {
 margin:0;
 padding:0;
 line-height:1px;
 clear:both;
}
a.NavToggle {
 position:absolute;
 top:0;
 right:3px;
 font-weight:normal;
 font-size:smaller;
}

/*Copied from http://www.barelyfitz.com/projects/tabber/example.css used under mit license
see http://www.barelyfitz.com/projects/tabber/
*/
/* $Id: example.css,v 1.5 2006/03/27 02:44:36 pat Exp $ */

/*--------------------------------------------------
 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;
 margin-left:3px;
 border:1px solid #ccc;
 border-bottom:none;
 background:#f2f7ff;
 text-decoration:none;
}

ul.tabbernav li a:link { color:#448; }
ul.tabbernav li a:visited { color:#667; }

ul.tabbernav li a:hover {
 color:#000;
 background:#fff9f2;
 border-color:#ccc;
}

ul.tabbernav li.tabberactive a {
 background-color:#fff;
 border-bottom:1px solid #fff;
}

ul.tabbernav li.tabberactive a:hover {
 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 {
 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:#a50b5e;
 background:linear-gradient(top,#a50b5e,#640639);
 background:-o-linear-gradient(top,#a50b5e,#640639);
 background:-ms-linear-gradient(top,#a50b5e,#640639);
 background:-moz-linear-gradient(top,#a50b5e,#640639);
 background:-webkit-linear-gradient(top,#a50b5e,#640639);
 border:none !important;
 border-radius:5px;
 box-shadow:2px 2px 6px #7f7f7f; /* This is needed for browser compatibility */
 box-shadow:2px 2px 6px rgba(0,0,0,0.5);
 padding:5px !important;
}
div.thumb .thumbimage {
 border:none !important;
 border-radius:5px;
}
div.thumb .thumbimage:hover {
 -moz-transform:scale(1.04);
 -webkit-transform:scale(1.04);
}

/* Category Box */
div.catlinks {
 background:-webkit-linear-gradient(top,#f9f9f9,#ddd);
 border-radius:8px;
 padding:5px 11px !important;
}
div.catlinks span {
 padding:0 8px;
}