MediaWiki:Common.css: Difference between revisions
Ostermayer (talk | contribs) No edit summary |
Ostermayer (talk | contribs) No edit summary |
||
| Line 216: | Line 216: | ||
font-weight: normal; | font-weight: normal; | ||
font-style: normal; | font-style: normal; | ||
} | |||
/* Fix styling of transcluded prefindex tables */ | |||
table#mw-prefixindex-list-table, | |||
table#mw-prefixindex-nav-table { | |||
width: 98%; | |||
} | |||
/* For portals, added 2011-12-07 -bv | |||
On wide screens, show these as two columns | |||
On narrow and mobile screens, let them collapse into a single column */ | |||
.portal-column-left { | |||
float: left; | |||
width: 50%; | |||
} | |||
.portal-column-right { | |||
float: right; | |||
width: 49%; | |||
} | |||
.portal-column-left-wide { | |||
float: left; | |||
width: 60%; | |||
} | |||
.portal-column-right-narrow { | |||
float: right; | |||
width: 39%; | |||
} | |||
.portal-column-left-extra-wide { | |||
float: left; | |||
width: 70%; | |||
} | |||
.portal-column-right-extra-narrow { | |||
float: right; | |||
width: 29%; | |||
} | |||
@media only screen and (max-width: 800px) { | |||
/* Decouple the columns on narrow screens */ | |||
.portal-column-left, | |||
.portal-column-right, | |||
.portal-column-left-wide, | |||
.portal-column-right-narrow, | |||
.portal-column-left-extra-wide, | |||
.portal-column-right-extra-narrow { | |||
float: inherit; | |||
width: inherit; | |||
} | |||
} | } | ||
Revision as of 01:19, 8 February 2014
/* References */
.references { font-size:90%; }
.references li:target, .reference:target, .citation:target { background-color: #DDEEFF }
.reference, .citation, cite { font-weight: normal; font-style: normal; word-wrap: break-word; }
#toc {
float:right;
margin: 10px;
}
/* Category tree */
#mw-subcategories ul { list-style: none none; margin-left: 0.25em; }
.CategoryTreeChildren { margin-left: 1.25em; }
/* prettytable class for skinning normal tables */
table.prettytable { margin:1em 1em 1em 0em; background:#f9f9f9; border:1px #aaaaaa solid; border-collapse:collapse; }
table.prettytable th, table.prettytable td { border:1px #aaaaaa solid; padding:0.2em; }
table.prettytable th { background:#f2f2f2; text-align:center; }
table.prettytable caption { margin-left:inherit; margin-right:inherit; }
table.table { border-spacing:0em 0.5em; }
table.table tr>td { padding:0.25em 1em; }
table.table tr.even { background:#ddddff; }
table.table tr.odd { background:#ccccff; }
.button, .stamp {
clear: all !important;
padding:5px;
font-weight:bold;
text-transform:capitalize;
background: #eef;
border: 1px solid #339;
}
.stamp {
float: right;
}
.stamp.usable, .stamp.Complete {
background:#efe;
border:1px solid #090;
}
.stamp.incomplete, .stamp.Incomplete {
background:#fee;
border:1px solid #900;
}
.stamp.reviewable, .stamp.Reviewable {
background:#eef;
border: 1px solid #009;
}
/* Question of the day */
.quest-otd {
float:right;
border:1px solid #c99;
padding:5px;
background:#fee;
width:200px;
}
.quest-heading { font-weight: bold; }
.quest-page {
text-align:right;
font-weight: bold;
font-style: italic;
}
.flat-list .quest-otd {
width: 100%;
background: none;
float: none !important;
border: none;
}
.flat-list .quest-heading { display: none; }
.flat-list .quest-page { text-align: left; }
.ns-0 #toc {
clear:both;
float:right;
margin: 10px;
}
#citebox {
color:#006600;
}
table.wikitable th, table.wikitable td { padding:5px; }
table.wikitable.outcomes td { text-align: center; }
table.abbreviations th { text-align:left; }
/* Normal font styling for table row headers with scope="row" tag */
.wikitable.plainrowheaders th[scope=row] {
font-weight: normal;
/* @noflip */
text-align: left;
}
/* Lists in data cells are always left-aligned */
.wikitable td ul,
.wikitable td ol,
.wikitable td dl {
/* @noflip */
text-align: left;
}
/* ...unless they also use the hlist class */
.wikitable.hlist td ul,
.wikitable.hlist td ol,
.wikitable.hlist td dl {
text-align: inherit;
}
/* remove "Main Page" header */
.page-Main_Page #firstHeading { display: none; }
.quiz .settings input.numerical {
width: 2em;
}
*>.quiz .header .questionId {
text-indent: -1.5em;
}
.quiz table.object, .quiz table.correction {
background-color: transparent;
}
.quiz .correction {
font-weight: 600;
}
.quiz .hideCorrection .correction {
display: none;
}
.quiz .settings td {
padding: 0.1em 0.4em 0.1em 0.4em;
}
.quiz table.settings {
background-color: transparent; }
.quiz .sign {
text-align: center;
}
.quiz a.input, .quiz a.input:hover, .quiz a.input:active, .quiz a.input:visited {
text-decoration: none;
color: black;
outline: 0;
}
.quiz a.input span {
outline: #7F9DB9 solid 1px;
*border: 1px solid #7F9DB9;
}
.quiz a.input:active span.correction, .quiz a.input:focus span.correction {
display: inline;
position: absolute;
margin: 2em 0 0 0.1em;
}
/* [[MediaZilla:35337]] */
@media (-webkit-min-device-pixel-ratio: 1.5), (min--moz-device-pixel-ratio: 1.5), (min-resolution: 1.5dppx), (min-resolution: 144dpi) {
#p-logo a {
background-image: url("http://wikem.org/w/images/Wikem-retina-225px.png") !important;
background-size: 136px auto;
}
}
@media (-webkit-min-device-pixel-ratio: 2), (min--moz-device-pixel-ratio: 2), (min-resolution: 2dppx), (min-resolution: 192dpi) {
#p-logo a {
background-image: url("http://www.wikem.org/w/images/Wikem-retina%402x.png") !important;
background-size: 135px auto;
}
}
/* Styling for Template:Quote */
blockquote.templatequote {
margin-top: 0;
}
blockquote.templatequote div.templatequotecite {
line-height: 1em;
/* @noflip */
text-align: left;
/* @noflip */
padding-left: 2em;
margin-top: 0;
}
blockquote.templatequote div.templatequotecite cite {
font-size: 85%;
}
/* For template documentation */
.template-documentation {
clear: both;
margin: 1em 0 0 0;
border: 1px solid #aaa;
background-color: #ecfcf4;
padding: 1em;
}
/* Ensure refs in table headers and the like aren't bold or italic */
sup.reference {
font-weight: normal;
font-style: normal;
}
/* Fix styling of transcluded prefindex tables */
table#mw-prefixindex-list-table,
table#mw-prefixindex-nav-table {
width: 98%;
}
/* For portals, added 2011-12-07 -bv
On wide screens, show these as two columns
On narrow and mobile screens, let them collapse into a single column */
.portal-column-left {
float: left;
width: 50%;
}
.portal-column-right {
float: right;
width: 49%;
}
.portal-column-left-wide {
float: left;
width: 60%;
}
.portal-column-right-narrow {
float: right;
width: 39%;
}
.portal-column-left-extra-wide {
float: left;
width: 70%;
}
.portal-column-right-extra-narrow {
float: right;
width: 29%;
}
@media only screen and (max-width: 800px) {
/* Decouple the columns on narrow screens */
.portal-column-left,
.portal-column-right,
.portal-column-left-wide,
.portal-column-right-narrow,
.portal-column-left-extra-wide,
.portal-column-right-extra-narrow {
float: inherit;
width: inherit;
}
}
