MediaWiki:Common.css: Difference between revisions

From OpenStreetMap Wiki
Jump to navigation Jump to search
m (Typo)
(Hide last hlist separator)
Line 310: Line 310:
content: " · ";
content: " · ";
font-weight: bold;
font-weight: bold;
}
.hlist-with-seps .hlist-sep:last-child:after {
content: none;
}
}



Revision as of 00:14, 22 June 2019

/* <source lang="css"> */
/* CSS placed here will be applied to all skins */
/* 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: #ccccff;     /* Level 1 color */
}
.navbox-abovebelow,
.navbox-group,
.navbox-subgroup .navbox-title {
  background: #ddddff;     /* Level 2 color */
}
.navbox-subgroup .navbox-group, .navbox-subgroup .navbox-abovebelow {
  background: #e6e6ff;     /* 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: auto;
}
.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.         */

/* Stylesheet-Ergänzung zu Standard-[[Wikipedia:Navigationsleisten|Navigationsleisten]] */
 
div.BoxenVerschmelzen,
div.NavFrame {
    margin: 0px;
    padding: 2px;
    border: 1px solid #aaaaaa;
    text-align: center;
    border-collapse: collapse;
    font-size: 95%;
    clear:both;
}
div.BoxenVerschmelzen div.NavFrame {
   border-style: none;
   border-style: hidden;
}
div.NavFrame + div.NavFrame {
   border-top-style: none;
   border-top-style: hidden;
}
div.NavPic {
   background-color: #ffffff;
    margin: 0px;
    padding: 2px;
    float: left;
 }
div.NavFrame div.NavHead {
   font-weight: bold;
   font-size: 100%;
   background-color: #efefef;
}
div.NavFrame p {
   font-size: 100%;
}
div.NavFrame div.NavContent {
   font-size: 100%;
}
div.NavFrame div.NavContent p {
   font-size: 100%;
}
div.NavEnd {
   margin: 0px;
   padding: 0px;
   line-height: 1px;
   clear: both;
}
 
/* Stylesheet fuer den 'Ausklappen'-Button an Navileisten, der in [[MediaWiki:Common.js]] implementiert wird */
.NavToggle {
    font-size: x-small;
    float:right;
}
 
/* Workaround für Internet Explorer 6 */
div.NavFrame, div.NavPic, .NavToggle {
    position:relative;
}
 
/* Abstand vor Navigationsleisten */
 
div.BoxenVerschmelzen,
div.NavFrame {
  margin-top: 1.5em;
}
div.BoxenVerschmelzen div.NavFrame {
  margin-top: 0;
}
div.NavFrame + div.NavFrame {
  margin-top: 0;
}
 
/* Navigationsleisten nicht mit ausdrucken */
 
@media print{
   .NavFrame {
       display: none;
   }
   .BoxenVerschmelzen {
       display: none;
   }
}

/* Should be removed after update to MW 1.16 */
.mw-plusminus-pos { color: #006400 }
.mw-plusminus-neg { color: #8B0000 }

/* Wikitable moved from Monobook.css */
/* define the 'wikitable' css class to make wiki table formatting easier */
TABLE.wikitable {
   border-style:solid;
   border-width:1px;
   border-color:#aaa;
   background: #f9f9f9;
   border-collapse: collapse;
   font-size: 95%;
}

TABLE.wikitable TD {
   padding:4px;
   border-style:solid;
   border-width:1px;
   border-color:#aaa;
}
TABLE.wikitable TH {
   padding:4px;
   background-color:#E9E9E9;
   border-style:solid;
   border-width:1px;
   border-color:#aaa;
}

tt { 
   font-size: 115%;
}

div.mw-geshi {
   background-color: #F9F9F9;
   border: 1px dashed #2F6FAB;
   color: black;
   line-height: 1.1em;
   padding: 1em;
   font: 1em/1.2em monospace;
   font-size: 1.2em;
}

pre {
   font-size: 1.2em;
}

/* Hide the 'Main Page' title https://www.mediawiki.org/wiki/Manual:FAQ#Method_1_.28css.29 */
body.page-Main_Page h1.firstHeading {
   display: none;
}

/* 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). */
/* TemplateStyles */
.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;
}

/* Style for horizontal lists (separator following item).
   @source mediawiki.org/wiki/Snippets/Horizontal_lists
   @revision 9 (2016-08-10)
   @author [[User:Edokter]]
 */
.hlist dl,
.hlist ol,
.hlist ul {
    margin: 0;
    padding: 0;
}
/* Display list items inline */
.hlist dd,
.hlist dt,
.hlist li {
    margin: 0;
    display: inline;
}
/* Display nested lists inline */
.hlist.inline,
.hlist.inline dl,
.hlist.inline ol,
.hlist.inline ul,
.hlist dl dl, .hlist dl ol, .hlist dl ul,
.hlist ol dl, .hlist ol ol, .hlist ol ul,
.hlist ul dl, .hlist ul ol, .hlist ul ul {
    display: inline;
}
/* Hide empty list items */
.hlist .mw-empty-li,
.hlist .mw-empty-elt {
    display: none;
}
/* Generate interpuncts */
.hlist dt:after {
    content: ": ";
}
.hlist dd:after,
.hlist li:after {
    content: " · ";
    font-weight: bold;
}
.hlist dd:last-child:after,
.hlist dt:last-child:after,
.hlist li:last-child:after {
    content: none;
}
/* Add parentheses around nested lists */
.hlist dd dd:first-child:before, .hlist dd dt:first-child:before, .hlist dd li:first-child:before,
.hlist dt dd:first-child:before, .hlist dt dt:first-child:before, .hlist dt li:first-child:before,
.hlist li dd:first-child:before, .hlist li dt:first-child:before, .hlist li li:first-child:before {
    content: " (";
    font-weight: normal;
}
.hlist dd dd:last-child:after, .hlist dd dt:last-child:after, .hlist dd li:last-child:after,
.hlist dt dd:last-child:after, .hlist dt dt:last-child:after, .hlist dt li:last-child:after,
.hlist li dd:last-child:after, .hlist li dt:last-child:after, .hlist li li:last-child:after {
    content: ")";
    font-weight: normal;
}
/* Put ordinals in front of ordered list items */
.hlist ol {
    counter-reset: listitem;
}
.hlist ol > li {
    counter-increment: listitem;
}
.hlist ol > li:before {
    content: " " counter(listitem) "\a0";
}
.hlist dd ol > li:first-child:before,
.hlist dt ol > li:first-child:before,
.hlist li ol > li:first-child:before {
    content: " (" counter(listitem) "\a0";
}

bdi, .bdi {
	unicode-bidi: embed; unicode-bidi: -webkit-isolate; unicode-bidi: isolate;
}

/* Styles for language bar */
.LanguageBar {
    margin : 0;
    background : #f9f9f9;
    border : none;
    padding : 0.5em;
    font-size : 95%;
    line-height : normal;
    text-align : justify;
}

/* Move the hlist separator from each list item to a span within. */
.hlist-with-seps li:after {
	content: none;
}
.hlist-with-seps .hlist-sep:after {
	content: " · ";
	font-weight: bold;
}
.hlist-with-seps .hlist-sep:last-child:after {
    content: none;
}

/* Hide language names where the page is unavailable, even when the link has been disabled */
.LanguageBar .new, .LanguageBar .new + .hlist-sep {
	display: none;
}
/* …but show them again when the links are usable */
.LanguageBar.showOther .new,
.LanguageBar.showOther .new + .hlist-sep {
	display: inline;
}

/* </source> */