MediaWiki:Common.css

Från Rilpedia

(Skillnad mellan versioner)
Hoppa till: navigering, sök
(+ Wikipedia)
 
(2 mellanliggande versioner visas inte.)
Rad 1: Rad 1:
-
<!-- {{rpsv}} -->
+
/** ////////////////////////////////////////////////////////////// **/
-
/** CSS som skrivs här nedan påverkar alla skal **/
+
/** WIKIPEDIA (start)                                              **/
 +
/** ////////////////////////////////////////////////////////////// **/
-
/* <pre> */
+
/* Wikitabeller */
-
 
+
-
/* --------------------------------------------------- */
+
-
/* For better display of RecentChanges page            */
+
-
/*                                                    */
+
-
/* Extension: TransformChanges                        */
+
-
/*                                                    */
+
-
/* --------------------------------------------------- */
+
-
 
+
-
table.changes            { border:none; width:100%; }
+
-
table.changes tr        { margin:0; padding:0; }
+
-
table.changes tr.even    { background:white; }
+
-
table.changes tr.odd    { background:#eee; }
+
-
table.changes td        { margin:0; padding: 1px 4px 0 4px; vertical-align: top; }
+
-
table.changes td.heading { font-size: 110%; font-weight:bold; padding-top:10px; }
+
-
table.changes td.comment { width:100%; }
+
-
+
-
table.changes td.talk,
+
-
table.changes td.diff    { font-size: 90%; }
+
-
+
-
table.changes td.user,
+
-
table.changes td.talk,
+
-
table.changes td.diff,
+
-
table.changes td.info    { white-space: nowrap; }
+
-
 
+
-
/* --------------------------------------------------- */
+
-
 
+
-
/* Line up checkboxes for namespaces on search page // SHL */
+
-
 
+
-
form#powersearch label {
+
-
display: block;
+
-
width: 200px;
+
-
float: left;
+
-
clear: none;
+
-
}
+
-
 
+
-
/* This make linebreaks break even if form#powersearch label elementss don't "clear" (i.e. they have clear=none) */
+
-
form#powersearch br { 
+
-
clear: both;
+
-
}
+
-
 
+
-
/* <Special style for the Template rpsv_fromrilpedia> // SHL 2006-12-26 */
+
-
 
+
-
.rpsv_fromrilpedia, .helpbanner {
+
-
background: url(http://sv.rilpedia.org/w/ril-misc/rilpedia/images/Fromrilpedia_bg_lighter.jpg);
+
-
}
+
-
 
+
-
/* </Special style for the Template rpsv_fromrilpedia> */
+
-
 
+
-
.whitelinks a {d
+
-
  color: #fff;
+
-
}
+
-
.whitelinks a:link {
+
-
  color: #fff;
+
-
}
+
-
.whitelinks a:active {
+
-
  color: #fff;
+
-
}
+
-
.whitelinks a:hover {
+
-
  color: #fff;
+
-
  text-decoration: underline;
+
-
}
+
-
.whitelinks a:visited {
+
-
  color: #fff;
+
-
}
+
-
 
+
-
.slimnavigator {
+
-
  background: url('/w/ril-misc/rilpedia/images/rpsv.rilbible.navigator.navigatorbar.jpg') 0 0 repeat-x;
+
-
}
+
-
table.slimnavigator td {
+
-
  padding: 0 0.5em;
+
-
}
+
-
table.slimnavigator {
+
-
  -moz-border-radius: 1em 1em 0 0;
+
-
}
+
-
/* make all corner rounded on biblenavigator when it occurs as "stand-alone" */
+
-
#BibleverseContent + table.slimnavigator {
+
-
  -moz-border-radius: 1em 1em 1em 1em;
+
-
}
+
-
#BiblechapterContent + table.slimnavigator {
+
-
  -moz-border-radius: 0 0 1em 1em;
+
-
  -moz-background-clip: padding;
+
-
  overflow: hidden;
+
-
}
+
-
 
+
-
/* Styles for Rilpedia Guides */
+
-
.GuideBG {
+
-
  background: url('/w/ril-misc/rilpedia/images/guide-bg.jpg') 0 0 repeat-x;
+
-
}
+
-
.GuideLinks a, .GuideLinks a:link, .GuideLinks a:visited {
+
-
  color: #000;
+
-
  font-weight: normal;
+
-
}
+
-
.GuideLinks a:hover {
+
-
  color: #3333cc;
+
-
  font-weight: normal;
+
-
}
+
-
.GuideImage {
+
-
  background: url('/w/ril-misc/rilpedia/images/guide-image.jpg') top right no-repeat;
+
-
}
+
-
.GuideSequence {
+
-
  font-size: 0.9em;
+
-
}
+
-
.GuideSequence ul li {
+
-
  display: inline;
+
-
+
-
.GuideSequence ul li a, .GuideSequence ul li .selflink {
+
-
  padding: 0em 0.4em;
+
-
  border: 1px solid #989A92;
+
-
  color: #989A92;
+
-
+
-
.GuideSequence ul li a:hover, .GuideSequence ul li .selflink {
+
-
  background: #BEBFBA;
+
-
  text-decoration: none;
+
-
  color: #333;
+
-
+
-
/* </pre> */
+
-
 
+
-
 
+
-
 
+
-
 
+
-
/*<pre><nowiki>*/
+
-
 
+
-
/* From Wikipedia Common.css */
+
table.wikitable {
table.wikitable {
-
  margin: 0.5em;
+
  margin: .5em;
  background: #f9f9f9;
  background: #f9f9f9;
-
  border: 1px #aaaaaa solid;
+
  border: 1px #aaa solid;
  border-collapse: collapse;
  border-collapse: collapse;
}
}
table.wikitable th, table.wikitable td {
table.wikitable th, table.wikitable td {
-
  border: 1px #aaaaaa solid;
+
  border: 1px #aaa solid;
-
  padding: 0.2em;
+
  padding: .2em;
}
}
Rad 149: Rad 27:
}
}
-
.hiddenStructure {
+
.hiddenStructure { display: none; speak: none; }
-
display: none;
+
-
speak: none;
+
-
}
+
/* Infobox-mallar */
/* Infobox-mallar */
.infobox {
.infobox {
-
   border: 1px solid #aaaaaa;
+
   border: 1px solid #aaa;
   background-color: #f9f9f9;
   background-color: #f9f9f9;
   color: black;
   color: black;
-
   margin-bottom: 0.5em;
+
   margin:.5em 0 .5em 1em;
-
  margin-left: 1em;
+
   padding: .2em;
-
   padding: 0.2em;
+
   float: right;
   float: right;
   clear: right;
   clear: right;
Rad 169: Rad 43:
.infobox th {
.infobox th {
   vertical-align: top;
   vertical-align: top;
-
   padding-left: 3px;
+
   padding:0 .2em;
-
  padding-right: 3px;
+
-
}
+
-
.infobox caption {
+
-
  font-size: larger;
+
-
}
+
-
.infobox.bordered {
+
-
  border-collapse: collapse;
+
}
}
 +
.infobox caption { font-size: larger; }
 +
.infobox.bordered { border-collapse: collapse; }
.infobox.bordered td,
.infobox.bordered td,
-
.infobox.bordered th {
+
.infobox.bordered th { border: 1px solid #aaa; }
-
  border: 1px solid #aaaaaa;
+
 
-
}
+
.infobox.bordered .borderless td,
.infobox.bordered .borderless td,
-
.infobox.bordered .borderless th {
+
.infobox.bordered .borderless th { border: 0; }
-
  border: 0;
+
-
}
+
-
 
+
-
/* Öka läsbarheten när referenser används */
+
-
.reference a { line-height: 100%; font-size: 90%; }
+
/* Kursiva redirecter i allpages */
/* Kursiva redirecter i allpages */
.allpagesredirect { font-style: italic; }
.allpagesredirect { font-style: italic; }
-
/* Stilmallar för Wikipedia:CommonsTicker börjar här */
+
/* Stilmallar för avgränsade infoboxar med sammansatta rader */
-
 
+
-
  /************************/
+
-
  /* 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    { }  /* post för raderad bild */
+
-
  .tickerEntry_replaced    { }  /* post för ersatt bild */
+
-
  .tickerEntry_tagged      { }  /* post för tillägg/borttag av licensstatusmall */
+
-
  .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-action styles */
+
-
  .tickerAction_deleted:before    { content:" Rad  "; color: #FF0000; font-family:monospace; font-weight:bold; font-size:100%; } 
+
-
  .tickerAction_deletedRev:before  { content:" RadV "; color: #DDAAAA; font-family:monospace; font-weight:bold; font-size:100%; } 
+
-
  .tickerAction_replaced:before    { content:" Ers  "; color: #CC88FF; font-family:monospace; font-weight:bold; font-size:100%; } 
+
-
  .tickerAction_replacedOwn:before { content:" ErsE "; color: #EEAAFF; font-family:monospace; font-weight:bold; font-size:100%; } 
+
-
  .tickerAction_addedBad:before    { content:" +RadM "; color: #FF8800; font-family:monospace; font-weight:bold; font-size:100%; } 
+
-
  .tickerAction_removedBad:before  { content:" -RadM "; color: #00BB00; font-family:monospace; font-weight:bold; font-size:100%; } 
+
-
  .tickerAction_addedGood:before  { content:" +LicM "; color: #00BB00; font-family:monospace; font-weight:bold; font-size:100%; } 
+
-
  .tickerAction_removedGood:before { content:" -LicM "; color: #FF8800; font-family:monospace; font-weight:bold; font-size:100%; }
+
-
 
+
-
  /* 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; }
+
-
 
+
-
 
+
-
/* Stilmallar för Wikipedia:CommonsTicker slutar här */
+
-
 
+
-
/* stilmallar för avgränsade infoboxar med sammansatta rader */
+
.infobox.bordered .mergedtoprow td,
.infobox.bordered .mergedtoprow td,
.infobox.bordered .mergedtoprow th {
.infobox.bordered .mergedtoprow th {
   border: 0;
   border: 0;
-
   border-top: 1px solid #aaaaaa;
+
   border-top: 1px solid #aaa;
-
   border-right: 1px solid #aaaaaa;
+
   border-right: 1px solid #aaa;
}
}
Rad 258: Rad 67:
.infobox.bordered .mergedrow th {
.infobox.bordered .mergedrow th {
   border: 0;
   border: 0;
-
   border-right: 1px solid #aaaaaa;
+
   border-right: 1px solid #aaa;
 +
}
 +
 
 +
 
 +
/*
 +
  "plainlinksneverexpand" säkerställer att inget mellanrum läggs till efter en länk och att ingen "extern-länk-pil" läggs till.
 +
*/
 +
 +
.plainlinksneverexpand {
 +
    background: none ! important;
 +
    padding: 0 ! important;
 +
}
 +
 +
.plainlinksneverexpand .urlexpansion {
 +
    display: none ! important;
 +
}
 +
 +
.plainlinksneverexpand a {
 +
    background: none !important;
 +
    padding: 0 !important;
 +
}
 +
 
 +
/* Används av "commonPrint.css" */
 +
 
 +
.plainlinksneverexpand a.external.text:after {
 +
    display: none !important;
 +
}
 +
.plainlinksneverexpand a.external.autonumber:after {
 +
    display: none !important;
}
}
Rad 285: Rad 122:
   background-color: #f8eaba;
   background-color: #f8eaba;
}
}
-
 
+
.messagebox.nested-talk {
 +
    border: 1px solid #c0c090;
 +
    background-color: #f8eaba;
 +
    width: 100%;
 +
    margin: 2px 4px;
 +
}
/* stilar för geografiska infoboxar, t.ex. länder, nationella indelningar, städer osv. */
/* stilar för geografiska infoboxar, t.ex. länder, nationella indelningar, städer osv. */
Rad 298: Rad 140:
.infobox.geography  td,
.infobox.geography  td,
-
.infobox.geography  th {
+
.infobox.geography  th,
-
  border-top: solid 1px #ccd2d9;
+
-
  padding: 0.4em 0.2em 0.4em 0.8em;
+
-
}
+
.infobox.geography .mergedtoprow td,
.infobox.geography .mergedtoprow td,
.infobox.geography .mergedtoprow th {
.infobox.geography .mergedtoprow th {
   border-top: solid 1px #ccd2d9;
   border-top: solid 1px #ccd2d9;
-
   padding: 0.4em 0.2em 0.2em 0.8em;
+
   padding: .4em .2em .4em .8em;
}
}
Rad 311: Rad 150:
.infobox.geography .mergedrow th {
.infobox.geography .mergedrow th {
       border: 0;
       border: 0;
-
       padding: 0 0.2em 0.2em 0.8em;
+
       padding: 0 .2em .2em .8em;
}
}
Rad 318: Rad 157:
   border-top: 0;
   border-top: 0;
   border-bottom: solid 1px #ccd2d9;
   border-bottom: solid 1px #ccd2d9;
-
   padding: 0 0.2em 0.4em 0.8em;
+
   padding: 0 .2em .4em .8em;
}
}
Rad 324: Rad 163:
.infobox.geography .maptable th {
.infobox.geography .maptable th {
       border: 0;
       border: 0;
-
       padding: 0 0 0 0;
+
       padding: 0;
}
}
Rad 333: Rad 172:
       margin: 0px;
       margin: 0px;
       padding: 2px;
       padding: 2px;
-
       border: 1px solid #aaaaaa;
+
       border: 1px solid #aaa;
       text-align: center;
       text-align: center;
       border-collapse: collapse;
       border-collapse: collapse;
Rad 347: Rad 186:
}
}
div.NavPic {
div.NavPic {
-
       background-color: #ffffff;
+
       background-color: #fff;
-
       margin: 0px;
+
       margin: 0;
-
       padding: 2px;
+
       padding: .2em;
       float: left;
       float: left;
}
}
Rad 359: Rad 198:
       position:relative;
       position:relative;
}
}
-
div.NavFrame p {
+
div.NavFrame p,
-
      font-size: 100%;
+
div.NavFrame div.NavContent,
-
}
+
div.NavFrame div.NavContent p { font-size: 100%; }
-
div.NavFrame div.NavContent {
+
-
      font-size: 100%;
+
-
}
+
-
div.NavFrame div.NavContent p {
+
-
      font-size: 100%;
+
-
}
+
div.NavEnd {
div.NavEnd {
-
       margin: 0px;
+
       margin: 0;
-
       padding: 0px;
+
       padding: 0;
       line-height: 1px;
       line-height: 1px;
       clear: both;
       clear: both;
Rad 376: Rad 209:
a.NavToggle {
a.NavToggle {
       position:absolute;
       position:absolute;
-
       top:0px;
+
       top:0;
-
       right:3px;
+
       right:.25em;
       font-weight:normal;
       font-weight:normal;
       font-size:smaller;
       font-size:smaller;
}
}
 +
/* Något mindre storlek för referenslistorna. */
 +
.references { font-size: 95%; }
-
/* Vid kall görs så att listan med referenser ser mindre ut (från enwiki)*/
+
/* Öka läsbarheten när referenser och sub/sup används */
-
ol.references {
+
.reference a { font-size: 90%; }
-
  font-size: 100%;
+
sub, sup { line-height: 0; }
-
}
+
-
.references-small { font-size: 90%;}
+
/* Gör så att vald referens markeras med annan bakgrundsfärg, så att man hittar i listan.
 +
  Från enwiki. Fungerar tyvärr ej i IE. */
 +
 
 +
ol.references > li:target { background-color: #DEF; }
 +
sup.reference:target { background-color: #DEF; }
/* VALIDATOR NOTICE: the following is correct, but the W3C validator doesn't accept it */
/* VALIDATOR NOTICE: the following is correct, but the W3C validator doesn't accept it */
Rad 400: Rad 238:
}
}
-
#wikipediatext {
+
/*** Stilar för huvudsidan ***/
-
   padding-top: 0;
+
 
 +
/* Rubriker */
 +
body.page-Portal_Huvudsida #kolumn1 h2,
 +
body.page-Portal_Huvudsida #kolumn2 h2 {
 +
   font-size: 110%;
 +
  margin-bottom: .75em;
 +
  margin-top: 1em;
 +
  padding: 2px;
}
}
-
#wikipediatext img {
+
body.page-Portal_Huvudsida #kolumn1 h2 {
-
   vertical-align: top;
+
   border-bottom: 1px solid #bcd2ee;
-
   margin-top: 4px;
+
   background-color: #f0f5ff;
 +
}
 +
body.page-Portal_Huvudsida #kolumn2 h2 {
 +
  border-bottom:1px solid #fec088;
 +
  background-color:#ffe7ba;
}
}
-
/* CSS Class for displaying only in printer friendly versions */
+
/* Geografiska koordinater
-
@media screen {
+
 
-
.printonly {
+
För att visa koordinater med notationen i källkoden, lägg till detta i din Användare:Användarnamn/monobook:css:
-
display: none ! important;
+
  .geo-default { display: inline } .geo-nondefault { display: none }
 +
  .geo-dec { display: inline } .geo-dms { display: inline }
 +
 
 +
För att visa koordinater med decimalnotation, lägg till detta i din Användare:Användarnamn/monobook:css:
 +
  .geo-default { display: inline } .geo-nondefault { display: inline }
 +
  .geo-dec { display: inline } .geo-dms { display: none }
 +
 
 +
För att visa koordinater med DMS-notation, lägg till detta i din Användare:Användarnamn/monobook:css:
 +
  .geo-default { display: inline } .geo-nondefault { display: inline }
 +
  .geo-dec { display: none }  .geo-dms { display: inline }
 +
 
 +
För att visa koordinater med både decimal- och DMS-notation, lägg till detta i din Användare:Användarnamn/monobook:css:
 +
  .geo-default { display: inline } .geo-nondefault { display: inline }
 +
  .geo-dec { display: inline }  .geo-dms { display: inline }
 +
  .geo-multi-punct { display: inline }
 +
 
 +
Se [[Mall:Coord/link]] för att se hur de används.
 +
 
 +
Notera att klasserna "geo", "longitude", och "latitude" inte bara är stilar utan också används av [[en:Geo (microformat)]], så namnen bör inte ändras.
 +
 
 +
*/
 +
 
 +
.geo-default { display: inline; }
 +
.geo-nondefault { display: none; }
 +
.geo-dms { display: inline; }
 +
.geo-dec { display: inline; }
 +
.geo-multi-punct { display: none; }
 +
 
 +
.longitude .latitude {
 +
  white-space: nowrap;
}
}
 +
 +
/* Detta används för Geo, men ingen stil behövs för tillfället utom .geo-dec. */
 +
.geo { }
 +
 +
/***** slut på geografirelaterat */
 +
 +
/* 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: 1