MediaWiki:Common.css: Difference between revisions

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.
(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; */
}
}
3,295

edits