Difference between revisions of "MediaWiki:Common.css"

From WikiVet English
Jump to navigation Jump to search
Line 9: Line 9:
 
}
 
}
  
/* wikitable/prettytable class for skinning normal tables */
+
 
 +
/*******************
 +
** Table formatting
 +
*******************/
 
table.wikitable,
 
table.wikitable,
 
table.prettytable {
 
table.prettytable {
    margin: 1em 1em 1em 0;
+
margin:1em 1em 1em 0;
    background: #f9f9f9;
+
border:1px solid #AAA;
    border: 1px #aaa solid;
+
border-collapse:collapse;
    border-collapse: collapse;
+
background:#F9F9F9;
}
 
.wikitable th, .wikitable td,
 
.prettytable th, .prettytable td {
 
    border: 1px #aaa solid;
 
    padding: 0.2em;
 
}
 
.wikitable th,
 
.prettytable th {
 
    background: #f2f2f2;
 
    text-align: center;
 
 
}
 
}
.wikitable caption,
+
.prettytable caption {
+
table.wikitable th, table.wikitable td,
    font-weight: bold;
+
table.prettytable th, table.prettytable td {
 +
padding:0.2em;
 +
border:1px solid #AAA;
 
}
 
}
 
+
/* extra buttons for edit dialog (from commons:MediaWiki:Common.css) */
+
table.wikitable th,
.my-buttons { padding: 0.5em; }
+
table.prettytable th {
.my-buttons a {
+
background:#F2F2F2;
color: black;
+
text-align:center;
background-color: #ccddee !important;
 
font-weight: bold;
 
font-size: 0.9em;
 
text-decoration: none;
 
border: thin #006699 outset;
 
padding: 0 0.1em 0.1em 0.1em;
 
 
}
 
}
.my-buttons a:hover, .my-buttons a:active {
+
background-color: #bbccdd;
+
table.wikitable caption,
border-style: inset;
+
table.prettytable caption {
 +
margin-left:inherit;
 +
margin-right:inherit;
 
}
 
}
  

Revision as of 10:23, 3 May 2010

/* CSS placed here will be applied to all skins */

/* Collapsible Tables */
.collapseButton {		/* 'show'/'hide' buttons created dynamically by the        */
	float: right;		/* CollapsibleTables JavaScript in [[MediaWiki:Common.js]] */
	font-weight: normal;	/* are styled here so they can be customised.              */
	text-align: right;
	width: auto;
}


/*******************
** Table formatting
*******************/
table.wikitable,
table.prettytable {
	margin:1em 1em 1em 0;
	border:1px solid #AAA;
	border-collapse:collapse;
	background:#F9F9F9;
}
 
table.wikitable th, table.wikitable td,
table.prettytable th, table.prettytable td {
	padding:0.2em;
	border:1px solid #AAA;
}
 
table.wikitable th,
table.prettytable th {
	background:#F2F2F2;
	text-align:center;
}
 
table.wikitable caption,
table.prettytable caption {
	margin-left:inherit;
	margin-right:inherit;
}

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