MediaWiki:Common.css

Fra Kanari-Fansen Lillestrøm

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.
/*'''MediaWiki:Common.css''' er det lokale stilarket for alle. Denne filen inkluderes i alle sider, slik at man kan konstruere egne stiler rundt om på siden. Vær vennlig og ikke forske på denne siden, vit hva du driver med!

==Infobokser (ny)==
<pre>*/
table.infoboks {
   float:right;
   border:1px solid #aaa;
   width:23%;
}

table.infoboks td, table.infoboks th {
   vertical-align:top;
}

table.infoboks tr.overskrift td {
   text-align:center;
   font-weight:bold;
   font-size:140%;
}

table.infoboks tr.bilde td {
   text-align:center;
}

table.infoboks th {
   text-align:center;
   font-size:115%;
}

table.infoboks td {
   margin:4px;
   padding:3px;
}

table.infoboks tr.custom td {
   background:none;
   border:none;
}

/*</pre>

==Infobokser (gammel)==
<pre>*/

.infoboks-start1
{
	border: 1px solid #aaa;
	float: right;
}

.infoboks-start2 { text-align: center; }

.infoboks-start3
{
	font-size: 130%;
	font-weight: bold;
}

.infoboks-overskrift-td
{
	text-align: center;
	font-size: 105%;
	font-weight: bold;
}

.infoboks-bilde
{
	text-align: center;
	padding: 3px;
}

.infoboks-bildetekst
{
	text-align: center;
	font-size: 100%;
}

.infoboks-selle1-td
{
	font-weight: bold;
	padding: 2px;
}

.infoboks-selle2 { padding: 2px; }

/*</pre>

==Infobox==
Overflødig. Sakl byttes ut med infoboks.
<pre>*/

.infobox
{
	border: 1px solid #aaaaaa;
	background-color: #f9f9f9;
	color: black;
	margin-bottom: 0.5em;
	margin-left: 1em;
	padding: 0.2em;
	float: right;
	clear: right;
}

.infobox td,
.infobox th { vertical-align: top; }

.infobox caption
{
	font-size: larger;
	margin-left: inherit;
}

.infobox.bordered { border-collapse: collapse; }
.infobox.bordered td,
.infobox.bordered th { border: 1px solid #aaaaaa; }
.infobox.bordered .borderless td,
.infobox.bordered .borderless th { border: 0; }

.infobox.sisterproject
{
	width: 20em;
	font-size: 90%;
}

/*</pre>
==Beskjedboks==
Følgende tekst er stil for beskjedbokser som står på diskusjonssider.
<pre>*/

.beskjedboks
{
	border: 1px solid #aaaaaa;
	background-color: #f9f9f9;
	width: 85%;
	margin: 0 auto 1em auto;
	padding: .2em;
	text-align: justify;
}

.beskjedboks.diskusjon
{
	border: 1px solid #c0c090;
	background-color: #f8eaba;
	margin: 0 auto 3px auto;
}

/*</pre>

Følgende er for å skjule en boks som kun skal sees av administratorer, og da kun i spesielle tilfeller.

<pre>*/

#kunadmins
{
	display:none;
}

/*</pre>

==Wikitable==
Prettytable skal etterhvert fjernes
<pre>*/

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

/*</pre>
==Golf==
<pre>*/

#golfportalbilde { background-image: url(http://upload.wikimedia.org/wikipedia/no/5/5d/Golfklubb_i_Spania.jpg); }

TABLE.golf
{
	margin: 1em 1em 1em 0;
	border-collapse: collapse;
}

TABLE.golf TH, TABLE.golf TD
{
	border: 1px #9c9 solid;
	padding: .2em;
}

TABLE.golf TH { background: #ecfbe5; }

TABLE.golf IMG { border: 1px solid #bbb; }

/*</pre>

==Navigasjonsmal==
Elementer for navigasjonsmalen [[Mal:NavStart]] (og [[Mal:Navigasjon]]).
Nåværende versjon (25. mai 2006 kl.12:31 (UTC)) skal være tilpasset alle nettlesere. Vær varsom ved redigering.
<pre>*/

div.NavSamling, div.NavFrame
{
	margin: 1em 0;
	padding: 4px;
	border: 1px solid #aaaaaa;
	text-align: center;
	border-collapse: collapse;
	font-size: 95%;
	clear: both;
	position: relative;
}

div.NavPic, div.NavBildeV, div.NavBildeH
{
	background-color: #ffffff;
	margin: 0px;
	padding: 0 2px 0 0;
	float: left;
	position: relative;
}

div.NavBildeH
{
	float: right;
	padding: 0 0 0 2px;
     z-index:3;
}

div.NavFrame div.NavHead
{
	font-weight: bold;
	background-color: #efefef;
}

div.NavSamling div.NavFrame
{
	margin:0;
	border-style: none;
}

div.NavFrame + div.NavFrame
{
	margin:0;
	border-top-style: none;
}

div.NavSamling { padding:0; }

/* Do not print navigation bar elements. They should not appear on paper */

@media print
{
	.NavFrame { display: none; }
	.BoxenVerschmelzen { display: none; }
}

/*</pre>
===Skjul/vis===
For vis/skjul-knapper.
<pre>*/

.skjulKnapp {
  float:right;
  width:4em;
  text-align:right;
}

.NavFrame .skjulKnapp {
  position:absolute;
  right:6px;
  z-index:2;
}

.skjulBryter {
  position:absolute;
  right:0;
  z-index:4;
  height:15px;
  font-size:100px;
  overflow:hidden;
}

* html .skjulKnapp { font-size:smaller; }

/*</pre>

==Vedlikeholdsmaler==
<pre>*/

div.vedlikehold
{
	background-color: #f9f9f9;
	border: 1px solid #aaa;
	padding: 5px;
	padding-left: 30px;
	text-align: left;
	font-size: 90%;
	margin-bottom: 3px;
}

div.sletting { background-color: #fdd; }
div.viktig { background-color: #fec; }
div.utbedring { background-color: #ffd; }
div.tilpassning { background-color: #fdf; }
div.advarsel { background-color: #ddf; }
div.forbedring { background-color: #dfd; }
div.vedlikehold img { margin: 0 5px 0 -25px; }

/*</pre>

==Stubbmaler==
<pre>*/

div.stubb
{
     clear: both;
	background-color: #f9f9f9;
	border: 1px solid #aaa;
	padding: 5px;
	padding-left: 30px;
	text-align: left;
	font-size: 90%;
	margin-top: 1em;
}

div.stubb + div.stubb
{
	border-top: none;
	margin-top:-5px;
}

div.stubb img { margin: 0 5px 0 -25px; }
</pre>
==Rammer mm rundt flagg mv==
<pre>

/* for innramming av typisk flagg og andre ikoner med mye hvitt */

div.ramme img { border: 1px solid rgb(187, 187, 187); }
span.ramme img { border: 1px solid rgb(187, 187, 187); }

/*</pre>

==Ymse==
<pre>*/

table { background: transparent; }

/* Clearfix sikkrer at boksen avsluttes etter eventuelle floats inne i boksen. */

.clearfix:after
{
	content: ".";
	display: block;
	height: 0;
	clear: both;
	visibility: hidden;
}

* html .clearfix { height: 1%; }

div.medialenke {
    min-height: 50px;
    margin: 1em;
    background-position: top left;
    background-repeat: no-repeat;
}

div.medialenke ul {
    list-style-type: none; 
    list-style-image: none;
    margin: 0;
}

div.medialenke ul li {
    padding-bottom: 0.5em;
}

div.medialenke ul li li {
    font-size: 91%;
    padding-bottom: 0;
}

div.lyd{
    background-image: url("http://upload.wikimedia.org/wikipedia/commons/thumb/a/a6/Gnome-speakernotes.png/30px-Gnome-speakernotes.png");
    background-repeat:no-repeat;
    padding-left: 40px;
}

div.video {
    background-image: url("http://upload.wikimedia.org/wikipedia/en/thumb/2/20/Tango-video-x-generic.png/40px-Tango-video-x-generic.png");
    background-repeat:no-repeat;
    padding-left: 50px;
}

table.kongeriketnederland
{
	margin: 1em 1em 1em 1em;
	background: #f9f9f9;
	border: 1px #aaaaaa solid;
	border-collapse: collapse;
}

table.kongeriketnederland th, table.kongeriketnederland td
{
	border: 0px #aaaaaa solid;
	padding: 0.2em;
}

table.kongeriketnederland th
{
	background: #f2f2f2;
	text-align: center;
}

table.kongeriketnederland caption
{
	margin-left: inherit;
	margin-right: inherit;
}



/*</pre>

==Hovedside==
Bare tester innhold fra de. Navnene kan endres etterpå.
<pre>*/

#hauptseite h2
{
	background-color: #d8e8ff;
	border: 1px solid #8898bf;
	font-size: 1em;
	font-weight: bold;
	margin-top: 0;
	margin-bottom: 0;
	padding-top: 0.1em;
	padding-bottom: 0.1em;
}

#hauptseite .inhalt
{
	background-color: #ffffff;
	border: 1px solid #8898bf;
	border-top: 0px solid white;
	padding: 0.3em 0.8em 0.4em 0.8em;
}

#hauptseite .inhalt hr
{
	background-color: #8898bf;
	color: #8898bf;
	height: 1px;
	margin: 0.5em 0;
	padding: 0;
}

#hauptseite .inhalt .mehr
{
	clear: both;
	font-size: 95%;
	margin-top: 0.8em;
	text-align: right;
}

.hauptseite-oben,
 .hauptseite-links,
 .hauptseite-rechts { margin-bottom: 1em; }
.hauptseite-links { margin-right: 0.5em; }
.hauptseite-rechts { margin-left: 0.5em; }
.hauptseite-oben h2,
 .hauptseite-unten h2 { text-align: center; }

.hauptseite-oben .inhalt .portale
{
	font-weight: bold;
	margin-top: 0.2em;
	margin-bottom: 0.2em;
}

.hauptseite-oben .inhalt .intern
{
	font-size: 90%;
	text-align: center;
}

.hauptseite-links h2,
 .hauptseite-rechts h2 { text-indent: 0.8em; }
#hauptseite-schwesterprojekte .inhalt a { font-weight: bold; }

/*</pre>

==CommonsTicker==
Bare tester innhold fra de. Navnene kan endres etterpå.
<pre>*/

/************************/
/* CommonsTicker styles */
/************************/

/* links */
.tickerDiffLink { } /* diff links in ticker */
.tickerMiscLink { } /* misc links in ticker */

/* remove list bullets */
.tickerList ul,    .tickerList ul li    { list-style: none; text-indent:-2em; margin-left:2em;   text-align:left; }
.tickerList ul ul, .tickerList ul ul li { list-style: none; text-indent:0;    margin-left:1.5em; text-align:left; }

/* per-type styles */
.tickerEntry_deleted     { }  /* entry for image deletion */
.tickerEntry_restored    { }  /* entry for restored image */
.tickerEntry_replaced    { }  /* entry for image replacement */
.tickerEntry_tagged      { }  /* entry for adding/removing problem tags */
.tickerEntry_redir       { }  /* entry for critical redirection (fot tag redirects) */
.tickerEntry_recat       { }  /* entry for critical re-categorization (for tag categories) */
.tickerEntry_notify      { }  /* entry for global notifications */
.tickerEntry_changed     { }  /* entry for generic change */

/* per-status styles */
.tickerStatus_done { text-decoration:line-through; } /* strike through when entry has been handeled */


/* per-action styles */
.tickerAction_deleted:before     { content:" GONE "; color: #FF0000; font-family:monospace; font-weight:bold; font-size:100%; }
.tickerAction_restored:before    { content:" BACK "; color: #00BB00; font-family:monospace; font-weight:bold; font-size:100%; }
.tickerAction_deletedRev:before  { content:" -OLD "; color: #DDAAAA; font-family:monospace; font-weight:bold; font-size:100%; }  
.tickerAction_replaced:before    { content:" REPL "; color: #CC88FF; font-family:monospace; font-weight:bold; font-size:100%; }  
.tickerAction_replacedOwn:before { content:" UPDT "; color: #EEAAFF; font-family:monospace; font-weight:bold; font-size:100%; }  
.tickerAction_addedBad:before    { content:" +VfD "; color: #FF8800; font-family:monospace; font-weight:bold; font-size:100%; }  
.tickerAction_removedBad:before  { content:" -VfD "; color: #00BB00; font-family:monospace; font-weight:bold; font-size:100%; }  
.tickerAction_addedGood:before   { content:" +OK  "; color: #00BB00; font-family:monospace; font-weight:bold; font-size:100%; }  
.tickerAction_removedGood:before { content:" -OK  "; color: #FF8800; font-family:monospace; font-weight:bold; font-size:100%; }

.tickerAction_deleted { background-color: #f2fb05; }

/* ticker usage list */
.tickerUsage  { font-size:80%; }  

/* entry applies to a template used by multiple images */
.tickerTemplateEntry    { font-weight: bold; } 

/* entry applies to sub-entries, i.e. images that use a specific template */
.tickerSubEntry         { }                       

/* minor entry styles */ 
.tickerMinorEntry  { color:#666; }     /* minor entry */
.tickerMinorEntry a,
.tickerMinorEntry a:link,
.tickerMinorEntry a:visited { color:#669; }
#bodyContent .tickerMinorEntry a.extiw,
#bodyContent .tickerMinorEntry a.extiw:link,
#bodyContent .tickerMinorEntry a.extiw:visited { color:#669; }
 
/* </pre> [[Kategori:Kanaripedia|{{PAGENAME}}]] */