MediaWiki:Common.css
Merk: Etter publisering vil det kanskje være nødvendig å slette mellomlageret i nettleseren din for å se endringene.
- Firefox / Safari: Hold Shift mens du klikker på Oppdater, eller trykk enten Ctrl+F5 eller Ctrl+R (⌘+R på Mac)
- Google Chrome: Trykk Ctrl+Shift+R (⌘+Shift+R på Mac)
- Internet Explorer / Edge: Hold Ctrl mens du trykker på Oppdater eller trykk Ctrl+F5
- Opera: Ttrykk Ctrl+F5.
/* <source lang="css"> */
/* CSS plassert i denne filen vil gjelde for alle utseender. */
/* --- GENERELT --- */
#content {
text-align: justify;
}
/* dynamic layout */
#text-wrap {
margin-left:3em;
position:relative;
}
#text-container {
width:100%;
}
#text {
text-align:justify;
width:36em;
margin:0px auto;
}
#text p {
text-indent: 2em;
}
#text pre {
background-color: #ffffff;
font-family: sans-serif;
line-height: 150%;
border: 0px;
padding-left: 2em;
margin: 0;
white-space: pre;
}
body.ns-104 {
text-align: justify;
}
body.ns-104 p{
text-indent: 2em
}
#headertemplate {
text-align: center;
}
.headerlabel {
display:none;
}
.headertemplate {
width: 98%;
padding:0.5em;
border-top: 1px solid #A0A0A0;
background-color: #f4f0e5;
}
.headertemplate-journal {
border-bottom: 1px solid #CCCCCC;
background-color: #f4f4f4;
padding: 0.5em;
width: 98%;
}
.headertemplate-author { padding-top:0.5em; padding-bottom:0.4em; font-size:100%; font-weight:bold; }
.headertemplate-title { padding-top:0.4em; padding-bottom:0.4em; font-size:120%; font-weight:bold; }
.headertemplate-reference { padding-top:0.4em; padding-bottom:0.5em; font-size:90%; }
.footertemplate {
width: 98%;
padding-left: 0.5em;
padding-right: 0.5em;
padding-top: 0.2em;
padding-bottom: 0.2em;
border-top: 1px solid #A0A0A0;
border-bottom: 1px solid #A0A0A0;
background-color: #f8f8f0;
text-align: center;
font-size:90%;
}
.references {
color:darkslategray;
font-size:90%;
border-style:solid;
border-width:1px;
border-color:whitesmoke;
background-color:snow;
padding:20px;
margin-top:20px;
}
/* ikke tall i innholdsliste */
span.tocnumber { display:none;}
/* classe verse : utiliser avec <poem> pour les textes en vers */
#editpage-copywarn {
display:none;
}
.vers {
width: 33em;
margin: 0px auto;
padding-left: 2em;
}
.vers p {
text-indent: 0em;
}
.vers pre {
background-color: #ffffff;
font-family: sans-serif;
line-height: 150%;
border: 0px;
padding-left: 2em;
margin: 0;
white-space: pre;
}
/* --- SIDE-NAVNEROMMET --- */
.pagetext {
width: 36em;
text-align: justify;
}
.pagetext p {
text-indent: 2em
}
.pagetext blockquote {
margin: 0.5em 0em;
}
.twocolumn {
width: 54em;
text-align: justify;
}
.twocolumn p {
text-indent: 2em
}
.twocolumn blockquote {
margin: 0.5em 0em;
}
/* classe prose : utiliser text */
.prosa {
width: 36em;
text-align: justify;
margin:0px auto;
}
.prosa p {
text-indent: 2em
}
/* --- CLASSES ACTIVES --- */
/* classe text : colonne centrée de texte avec indentation */
.tekst {
width: 36em;
text-align: justify;
margin:0px auto;
}
.tekst p {
text-indent: 2em;
}
.tekst pre {
background-color: #ffffff;
font-family: sans-serif;
line-height: 150%;
border: 0px;
padding-left: 2em;
margin: 0;
white-space: pre;
}
.text {
width: 33em;
text-align: justify;
margin:0px auto;
}
.text p {
text-indent: 2em;
}
.text pre {
background-color: #ffffff;
font-family: sans-serif;
line-height: 150%;
border: 0px;
padding-left: 2em;
margin: 0;
white-space: pre;
}
/* classe centertext : colonne centrée de texte sans indentation */
.centertext {
width: 33em;
text-align: justify;
margin:0px auto;
}
.centertext p {
text-indent: 0em;
}
/* classe lefttext : colonne de texte à gauche avec indentation */
.lefttext {
width: 33em;
text-align: justify;
margin-left: 5em;
}
.lefttext p {
text-indent: 2em
}
/* classe indentation : pour créer une indentation dans une div quelconque */
.indentation {
text-indent: 2em;
}
/*********
** Various tweaks
*********/
/* Allow transcluded pages to display in lists rather than a table. Compatible in Firefox; incompatible in IE6. */
.listify td {display:list-item;}
.listify tr {display:block;}
.listify table {display:block;}
/* indent page text on screen out of the way of the page numbers */
@media screen, handheld, projection {
div.indented-page {margin-left: 3em}
cite *.printonly { display: none; }
}
/* Dont display the URL onto the screen */
@media screen, handheld, projection {
cite *.printonly { display: none; }
}
/*********
** De mest brukte malene
*********/
/* {{forfatter}} */
.authortemplate {
width:100%;
margin-bottom:5px;
border:1px solid #BEA2A2;
background:#E4D8D8;
}
.authortemplate .author_backlink,
.authortemplate .author_forelink {
width:20%;
font-size:0.9em;
}
.authortemplate .author_name {
width:60%;
text-align:center;
}
.author_notes {
width:100%;
border-bottom:1px solid #A88;
background:#FFFBFC;
font-size:0.9em;
}
.author_seealso {
float:right;
padding:2px;
margin:0 0 0.5em 1em;
border:1px solid #CCC;
}
/* Standard boksformatering */
/* Generelt */
.beskjedboks
{
border: 1px solid #AAA;
background-color: #f9f9f9;
width: 80%;
margin: 0 auto 1em auto;
padding: .2em;
text-align: justify;
}
.beskjedboks.diskusjon
{
border: 1px solid #c0c090;
background-color: #f8eaba;
margin: 0 auto 3px auto;
}
.tekstinfo
{
margin:1px;
padding:1px;
border:1px solid #0E8605;
background:#B0E0A0;
text-align:left;
}
.tekstinfo th
{
background:#0E8605;
text-align:center;
font-weight:normal;
color:#FFF;
}
.tekstinfo td
{
background:#C6FFC6;
}
/* Wikitable */
table.wikitable,
table.prettytable
{
margin: 1em 1em 1em 0;
background: #f9f9f9;
border: 1px #aaaaaa solid;
border-collapse: collapse;
}
table.wikitable th, table.wikitable td,
table.prettytable th, table.prettytable td
{
border: 1px #aaaaaa solid;
padding: 0.2em;
}
table.wikitable th,
table.prettytable th
{
background: #f2f2f2;
text-align: center;
}
table.wikitable caption,
table.prettytable caption
{
margin-left: inherit;
margin-right: inherit;
}
.odd
{
padding: 0 5px;
background: #edf3fe;
}
.even
{
padding: 0 5px;
background: #ffffff;
}
/*classe poem*/
.poem {
margin-bottom: 0em;
margin-top: 0em;
line-height: 1.6em;
margin-left: 2.5em;
text-indent: 0em;
}
.poem p {
margin-top: 0em ! important;
margin-bottom: 0em ! important;
text-indent: 0em !important;
}
/*double point : 1em, pas d'espace vertical*/
.poem dd{
margin-top:0px;
margin-bottom:0px;
padding-top:0px;
padding-bottom:0px;
margin-left:1em;
}
.poem dl{
margin-top:0px;
margin-bottom:0px;
padding-top:0px;
padding-bottom:0px;
}
/*********
** Hovedside
*********/
.page-Main_Page .firstHeading,
.page-Main_Page #siteSub {
display:none;
}
.main_page {
position:static;
}
.main_page h1 {
margin:0 !important;
padding:0;
border:0;
font-size:1.75em;
}
.main_page .titlebox {
width:100%;
padding-left:2em;
border:1px solid #CCC;
background:#FCFCFC;
}
.main_page .titlebox div {
margin-left:2em;
font-size:0.95em;
}
.main_page .portals {
width:11%;
font-size:.95em;
}
.main_page .subheader {
width:100%;
margin:-.8em 0 -.7em 0;
background:none;
font-size:0.95em;
}
.main_page .subheader td {
padding:10px 0;
}
.main_page th {
padding-left: 0.4em;
border:1px solid #A3B0BF;
background:#ECDCC8;
text-align:left;
font-family:Arial, Helvetica, sans-serif;
font-size:1.2em;
}
.main_page .blurb {
width:60%;
padding:1em;
border:1px solid #68A;
background:#FFE4C4;
}
.main_page .blurb img {
float:left;
margin:0 .7em 0 .3em;
}
.main_page .mpsidebox {
width:30%;
border:1px solid #68A !important;
}
.main_page .featuredtext {
border:1px solid #68A;
}
.main_page .mpsidebox table,
.main_page .featured_text table {
width:100%;
vertical-align:top;
}
.main_page .sisterprojects {
margin:-0px -8px;
border-spacing:8px;
}
.main_page .sisterprojects .sptd {
padding:10px;
border:1px solid #BBB;
vertical-align:top;
}
/*
*********
** Page namespace
*********/
/* transcluded pages */
.lefttext p {
text-indent:2em;
}
.lefttext {
width:33em;
text-align:justify;
margin:5em;
}
.quote {
color: darkslategray;
margin-left: 2em;
margin-right: 2em;
}
/* Justify */
body.ns-104 {
text-align:justify;
}
/* Paragraph markers (no IE support) */
body.ns-104 div.pagetext>p
{
background: url(//upload.wikimedia.org/wikipedia/commons/thumb/b/b6/Paragraph-mark.svg/6px-Paragraph-mark.svg.png) 0 .3em no-repeat;
margin-left: -10px;
padding-left: 10px;
}
/* Quality */
.quality4
{
background-color: #90ff90;
}
.quality3
{
background-color: #ffe867;
}
.quality2
{
background-color: #b0b0ff;
}
.quality1
{
background-color: #ffa0a0;
}
.quality0
{
background-color:#dddddd;
}
/* International Phonetic Alphabet [[Template:IPA]] */
.IPA {
font-family: Arial Unicode MS, Code2000, Gentium, GentiumAlt, DejaVu Sans, Segoe UI, Lucida Grande, Charis SIL, Doulos SIL, TITUS Cyberbit Basic, Lucida Sans Unicode, sans-serif;
font-size: 110%;
}
/* </source> */
/* Standard utseende for navigasjonsboksene navbox, navbox_generic
Oppdatert fra en-wiki 2010-03-28
//en.wikipedia.org/w/index.php?title=MediaWiki:Common.css&oldid=350013464
*/
/* Default skin for navigation boxes */
table.navbox { /* Navbox container style */
border: 1px solid #aaa;
width: 100%;
margin: auto;
clear: both;
font-size: 88%;
text-align: center;
padding: 1px;
}
table.navbox + table.navbox { /* Single pixel border between adjacent navboxes */
margin-top: -1px; /* (doesn't work for IE6, but that's okay) */
}
.navbox-title,
.navbox-abovebelow,
table.navbox th {
text-align: center; /* Title and above/below styles */
padding-left: 1em;
padding-right: 1em;
}
.navbox-group { /* Group style */
white-space: nowrap;
text-align: right;
font-weight: bold;
padding-left: 1em;
padding-right: 1em;
}
.navbox, .navbox-subgroup {
background: #fdfdfd; /* Background color */
}
.navbox-list {
border-color: #fdfdfd; /* Must match background color */
}
.navbox-title,
table.navbox th {
background: #d8d8d8; /* Level 1 color */
}
.navbox-abovebelow,
.navbox-group,
.navbox-subgroup .navbox-title {
background: #e0e0e0; /* Level 2 color */
}
.navbox-subgroup .navbox-group, .navbox-subgroup .navbox-abovebelow {
background: #e8e8e8; /* Level 3 color */
}
.navbox-even {
background: #f7f7f7; /* Even row striping */
}
.navbox-odd {
background: transparent; /* Odd row striping */
}
.collapseButton { /* 'show'/'hide' buttons created dynamically */
float: right; /* by the CollapsibleTables javascript in */
font-weight: normal; /* [[MediaWiki:Common.js]]are styled here */
text-align: right; /* so they can be customised. */
width: 4em;
}
.navbox .collapseButton { /* In navboxes, the show/hide button balances */
width: 6em; /* the vde links from [[Template:Tnavbar]], */
} /* so they need to be the same width. */
/* Følgende skjuler v·d·e-lenkene som standard; de kan vises igjen ved å slå på tilleggsfunksjonen «Vis lenker i navigasjonsbokser» i [[Spesial:Innstillinger]] */
.navbar {
visibility:hidden;
}
@media print {
.navbox {
display: none;
}
}
/* Cell sizes for ambox/tmbox/imbox/cmbox/ombox/fmbox/dmbox message boxes */
th.mbox-text, td.mbox-text { /* The message body cell(s) */
border: none;
padding: 0.25em 0.9em; /* 0.9em left/right */
width: 100%; /* Make all mboxes the same width regardless of text length */
}
td.mbox-image { /* The left image cell */
border: none;
padding: 2px 0 2px 0.9em; /* 0.9em left, 0px right */
text-align: center;
}
td.mbox-imageright { /* The right image cell */
border: none;
padding: 2px 0.9em 2px 0; /* 0px left, 0.9em right */
text-align: center;
}
td.mbox-empty-cell { /* An empty narrow cell */
border: none;
padding: 0px;
width: 1px;
}
/* Article message box styles */
table.ambox {
margin: 0px 10%; /* 10% = Will not overlap with other elements */
border: 1px solid #aaa;
border-left: 10px solid #1e90ff; /* Default "notice" blue */
background: #fbfbfb;
}
table.ambox + table.ambox { /* Single border between stacked boxes. */
margin-top: -1px;
}
.ambox th.mbox-text,
.ambox td.mbox-text { /* The message body cell(s) */
padding: 0.25em 0.5em; /* 0.5em left/right */
}
.ambox td.mbox-image { /* The left image cell */
padding: 2px 0 2px 0.5em; /* 0.5em left, 0px right */
}
.ambox td.mbox-imageright { /* The right image cell */
padding: 2px 0.5em 2px 0; /* 0px left, 0.5em right */
}
table.ambox-notice {
border-left: 10px solid #1e90ff; /* Blue */
}
table.ambox-speedy {
border-left: 10px solid #b22222; /* Red */
background: #fee; /* Pink */
}
table.ambox-delete {
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-move {
border-left: 10px solid #9932cc; /* Purple */
}
table.ambox-protection {
border-left: 10px solid #bba; /* Gray-gold */
}
/* Image message box styles */
table.imbox {
margin: 4px 10%;
border-collapse: collapse;
border: 3px solid #1e90ff; /* Default "notice" blue */
background: #fbfbfb;
}
.imbox .mbox-text .imbox { /* For imboxes inside imbox-text cells. */
margin: 0 -0.5em; /* 0.9 - 0.5 = 0.4em left/right. */
}
.mbox-inside .imbox { /* For imboxes inside other templates. */
margin: 4px;
}
table.imbox-notice {
border: 3px solid #1e90ff; /* Blue */
}
table.imbox-speedy {
border: 3px solid #b22222; /* Red */
background: #fee; /* Pink */
}
table.imbox-delete {
border: 3px solid #b22222; /* Red */
}
table.imbox-content {
border: 3px solid #f28500; /* Orange */
}
table.imbox-style {
border: 3px solid #f4c430; /* Yellow */
}
table.imbox-move {
border: 3px solid #9932cc; /* Purple */
}
table.imbox-protection {
border: 3px solid #bba; /* Gray-gold */
}
table.imbox-license {
border: 3px solid #88a; /* Dark gray */
background: #f7f8ff; /* Light gray */
}
table.imbox-featured {
border: 3px solid #cba135; /* Brown-gold */
}
/* Category message box styles */
table.cmbox {
margin: 3px 10%;
border-collapse: collapse;
border: 1px solid #aaa;
background: #DFE8FF; /* Default "notice" blue */
}
table.cmbox-notice {
background: #D8E8FF; /* Blue */
}
table.cmbox-speedy {
margin-top: 4px;
margin-bottom: 4px;
border: 4px solid #b22222; /* Red */
background: #FFDBDB; /* Pink */
}
table.cmbox-delete {
background: #FFDBDB; /* Red */
}
table.cmbox-content {
background: #FFE7CE; /* Orange */
}
table.cmbox-style {
background: #FFF9DB; /* Yellow */
}
table.cmbox-move {
background: #E4D8FF; /* Purple */
}
table.cmbox-protection {
background: #EFEFE1; /* Gray-gold */
}
/* Other pages message box styles */
table.ombox {
margin: 4px 10%;
border-collapse: collapse;
border: 1px solid #aaa; /* Default "notice" gray */
background: #f9f9f9;
}
table.ombox-notice {
border: 1px solid #aaa; /* Gray */
}
table.ombox-speedy {
border: 2px solid #b22222; /* Red */
background: #fee; /* Pink */
}
table.ombox-delete {
border: 2px solid #b22222; /* Red */
}
table.ombox-content {
border: 1px solid #f28500; /* Orange */
}
table.ombox-style {
border: 1px solid #f4c430; /* Yellow */
}
table.ombox-move {
border: 1px solid #9932cc; /* Purple */
}
table.ombox-protection {
border: 2px solid #bba; /* Gray-gold */
}
/* Talk page message box styles */
table.tmbox {
margin: 4px 10%;
border-collapse: collapse;
border: 1px solid #c0c090; /* Default "notice" gray-brown */
background: #f8eaba;
}
.mediawiki .mbox-inside .tmbox { /* For tmboxes inside other templates. The "mediawiki" */
margin: 2px 0; /* class ensures that this declaration overrides other */
width: 100%; /* For Safari and Opera */ /* styles (including mbox-small above) */
}
.mbox-inside .tmbox.mbox-small { /* "small" tmboxes should not be small when */
line-height: 1.5em; /* also "nested", so reset styles that are */
font-size: 100%; /* set in "mbox-small" above. */
}
table.tmbox-speedy {
border: 2px solid #b22222; /* Red */
background: #fee; /* Pink */
}
table.tmbox-delete {
border: 2px solid #b22222; /* Red */
}
table.tmbox-content {
border: 2px solid #f28500; /* Orange */
}
table.tmbox-style {
border: 2px solid #f4c430; /* Yellow */
}
table.tmbox-move {
border: 2px solid #9932cc; /* Purple */
}
table.tmbox-protection,
table.tmbox-notice {
border: 1px solid #c0c090; /* Gray-brown */
}
/* Disambig and set index box styles */
table.dmbox {
clear: both;
margin: 0.9em 1em;
border-top: 1px solid #ccc;
border-bottom: 1px solid #ccc;
background: transparent;
}
/* Footer and header message box styles */
table.fmbox {
clear: both;
margin: 0.2em 0;
width: 100%;
border: 1px solid #aaa;
background: #f9f9f9; /* Default "system" gray */
}
table.fmbox-system {
background: #f9f9f9;
}
table.fmbox-warning {
border: 1px solid #bb7070; /* Dark pink */
background: #ffdbdb; /* Pink */
}
table.fmbox-editnotice {
background: transparent;
}
/* Div based "warning" style fmbox messages. */
div.mw-warning-with-logexcerpt,
div.mw-lag-warn-high,
div.mw-cascadeprotectedwarning,
div#mw-protect-cascadeon {
clear: both;
margin: 0.2em 0;
border: 1px solid #bb7070;
background: #ffdbdb;
padding: 0.25em 0.9em;
}
/* Div based "system" style fmbox messages. Used in
[[MediaWiki:Noarticletext]] and [[MediaWiki:Readonly lag]]. */
div.mw-lag-warn-normal,
div.noarticletext,
div.fmbox-system {
clear: both;
margin: 0.2em 0;
border: 1px solid #aaa;
background: #f9f9f9;
padding: 0.25em 0.9em;
}
/* These mbox-small classes must be placed after all other
ambox/tmbox/ombox etc classes. "body.mediawiki" is so
they override "table.ambox + table.ambox" above. */
body.mediawiki table.mbox-small { /* For the "small=yes" option. */
clear: right;
float: right;
margin: 4px 0 4px 1em;
width: 238px;
font-size: 88%;
line-height: 1.25em;
}
body.mediawiki table.mbox-small-left { /* For the "small=left" option. */
margin: 4px 1em 4px 0;
width: 238px;
border-collapse: collapse;
font-size: 88%;
line-height: 1.25em;
}