MediaWiki:Common.css
Hoppa till navigering
Hoppa till sök
OBS: Efter du har publicerat sidan kan du behöva tömma din webbläsares cache för att se ändringarna.
- Firefox / Safari: Håll ned Skift och klicka på Uppdatera sidan eller tryck Ctrl-F5 eller Ctrl-R (⌘-R på Mac)
- Google Chrome: Tryck Ctrl-Skift-R (⌘-Skift-R på Mac)
- Internet Explorer / Edge: Håll ned Ctrl och klicka på Uppdatera eller tryck Ctrl-F5
- Opera: Tryck Ctrl-F5.
/* CSS som skrivs här påverkar alla skal */
/* Borttagning av första rubrik på huvudsidan */
body.page-Huvudsida h1.firstHeading {
display:none;
}
textarea{resize: vertical}
/* Wikitabeller */
table.wikitable {
margin: .5em;
background: #f9f9f9;
border: 1px #aaa solid;
border-collapse: collapse;
}
table.wikitable th, table.wikitable td {
border: 1px #aaa solid;
padding: .2em;
}
table.wikitable th {
background: #f2f2f2;
text-align: center;
}
table.wikitable caption {
margin-left: inherit;
margin-right: inherit;
}
/* Allow limiting of which header levels are shown in a TOC;
<div class="toclimit-3">, for instance, will limit to
showing ==headings== and ===headings=== but no further
(as long as there are no =headings= on the page, which
there shouldn't be according to the MoS).
*/
.toclimit-2 .toclevel-1 ul,
.toclimit-3 .toclevel-2 ul,
.toclimit-4 .toclevel-3 ul,
.toclimit-5 .toclevel-4 ul,
.toclimit-6 .toclevel-5 ul,
.toclimit-7 .toclevel-6 ul {
display: none;
}
/* Allow turnign of TOC auto-numbering */
.noautonum .tocnumber { display: none; }
/* expand and collapse content */
div.expand {
background:url('//upload.wikimedia.org/wikipedia/commons/thumb/1/1c/HW_open_arrow.svg/10px-HW_open_arrow.svg.png') no-repeat 0% center;
padding-left:15px;
}
div.expand a,
div.expand a:hover {
color:#5E5E5E;
outline:0;
}
/* Control the "expand all" link */
p.switch a,
p.switch a:hover,
p.switch a:active {
float:right;
color:#231F20;
background:url('//upload.wikimedia.org/wikipedia/commons/thumb/1/1c/HW_open_arrow.svg/10px-HW_open_arrow.svg.png') no-repeat 0% center;
padding-left:15px;
}
/* För malldokumentation, se [[Mall:Dokumentation]] */
.template-documentation {
clear: both;
margin-top: 1em;
border: 1px solid #aaa;
background-color: #ecfcf4;
padding: 5px;
overflow: auto;
}
/* mall för kvalitetsmallar */
table.ambox {
margin: 0 10%; /* Will not overlap with other elements */
border-collapse: collapse;
background: #fbfbfb;
border: 1px solid #aaa;
border-left: 10px solid #608ec2; /* Default "notice" blue */
}
table.ambox th.ambox-text, table.ambox td.ambox-text { /* The message body cell(s) */
padding: .25em .5em; /* 0.5em left/right */
width: 100%; /* Make all templates the same width regardless of text size */
}
table.ambox td.ambox-image { /* The left image cell */
padding: 2px 0 2px .5em; /* 0.5em left, 0px right */
text-align: center;
vertical-align: middle;
}
table.ambox td.ambox-imageright { /* The right image cell */
padding: 2px 4px 2px 0; /* 0px left, 4px right */
text-align: center;
vertical-align: middle;
}
table.ambox-notice {
border-left: 10px solid #608ec2; /* Blue */
/* border-right: 10px solid #608ec2; */ /* If you want two blue bars */
}
table.ambox-delete,
table.ambox-serious {
border-left: 10px solid #b22222; /* Red */
}
table.ambox-content {
border-left: 10px solid #f28500; /* Orange */
}
table.ambox-style {
border-left: 10px solid #f4c430; /* Yellow */
}
table.ambox-merge {
border-left: 10px solid #9932cc; /* Purple */
}
table.ambox-protection {
border-left: 10px solid #bba; /* Gray */
}
table.ambox.ambox-mini { /* small floating box variant */
float: right;
clear: right;
margin-left: 1em;
width: 25%;
}
.ambox + .ambox, .topbox + .ambox, .ambox + .topbox{
border-top-width:0;
}
/* systerprojektlänkar i vänsterpanelen */
ul.interProject {
list-style: none;
padding-left: 0;
margin-left: 0;
}
li.interProject,
/* specifikt för Vector; ovanstående "tar" inte av någon anledning */
#mw-panel div.portal div.body ul.interProject li.interProject {
background-repeat: no-repeat;
background-position: left center;
padding-left: 18px;
margin-left: 0;
}
li.commons {
background-image: url("//upload.wikimedia.org/wikipedia/commons/thumb/4/4a/Commons-logo.svg/14px-Commons-logo.svg.png");
}
li.wiktionary {
background-image: url("//upload.wikimedia.org/wikipedia/commons/thumb/f/f9/Wiktionary_small.svg/16px-Wiktionary_small.svg.png");
}
li.wikibooks {
background-image: url("//upload.wikimedia.org/wikipedia/commons/thumb/f/fa/Wikibooks-logo.svg/16px-Wikibooks-logo.svg.png");
}
li.wikiquote {
background-image: url("//upload.wikimedia.org/wikipedia/commons/thumb/f/fa/Wikiquote-logo.svg/15px-Wikiquote-logo.svg.png");
}
li.wikisource {
background-image: url("//upload.wikimedia.org/wikipedia/commons/thumb/4/4c/Wikisource-logo.svg/15px-Wikisource-logo.svg.png");
}
li.wikinews {
background-image: url("//upload.wikimedia.org/wikipedia/commons/thumb/a/ae/Wikinews_waves_Left.png/15px-Wikinews_waves_Left.png");
}
li.wikispecies {
background-image: url("//upload.wikimedia.org/wikipedia/commons/thumb/d/df/Wikispecies-logo.svg/15px-Wikispecies-logo.svg.png");
}
li.wikivoyage {
background-image: url("//upload.wikimedia.org/wikipedia/commons/thumb/8/8a/Wikivoyage-logo.svg/15px-Wikivoyage-logo.svg.png");
}
li.wikiversity {
background-image: url("//upload.wikimedia.org/wikipedia/commons/thumb/9/91/Wikiversity-logo.svg/15px-Wikiversity-logo.svg.png");
}
li.wikidata {
background-image: url("//upload.wikimedia.org/wikipedia/commons/thumb/f/ff/Wikidata-logo.svg/15px-Wikidata-logo.svg.png");
}
li.meta {
background-image: url("//upload.wikimedia.org/wikipedia/commons/thumb/7/75/Wikimedia_Community_Logo.svg/15px-Wikimedia_Community_Logo.svg.png");
}
li.incubator {
background-image: url("//upload.wikimedia.org/wikipedia/commons/thumb/e/e3/Incubator-logo.svg/15px-Incubator-logo.svg.png");
}
/* Styling the parameter fields in [[Template:Information]] and related templates
also here (besides on [[MediaWiki:Filepage.css]]) to ensure proper preview
on other pages than those in the file namespace */
.fileinfo-paramfield {
background: #ccf;
/* @noflip */
text-align: right;
padding-right: 0.4em;
width: 15%;
font-weight: bold;
}
/* Stil för MediaWiki:Edittools. */
#edittools, .edittools {
margin-top: .1em;
border: 1px solid #aaa;
padding: .2em .6em .1em;
font-size: 90%;
background: #f9f9f9;
}
/* Background for images that aren't visible on default background. */
.grey-background img {
background: grey;
}
/* Allow for sub-numbered lists when desired. */
.sub-numbered-lists ol {
counter-reset: item
}
.sub-numbered-lists li {
display: block
}
.sub-numbered-lists li:before {
content: counters(item, ".") ". ";
counter-increment: item;
}