MediaWiki:Common.css: Difference between revisions

From Wikimedia Foundation Governance Wiki
Content deleted Content added
Amire80 (talk | contribs)
toc direction is set automatically in MW 1.18
Amire80 (talk | contribs)
editsection links are moved to the right side automatically in MW 1.18
Line 23: Line 23:
background:none;
background:none;
padding-right:0;
padding-right:0;
}

.persian .editsection, .rtl .editsection {
float:left;
}
}

Revision as of 21:55, 27 October 2011

/* CSS placed here will be applied to all skins */

/* To facilitate rtl translations */
.table-FA {
font-family: Tahoma;
}

#bodyContent .table-RTL a{
background:none;
padding-right:0;
}

#bodyContent .table-RTL UL{
margin-right:10px;
display:table;
}

.persian {
    font-family: Tahoma;
}
 
#bodyContent .persian a, #bodyContent .persian a.external, #bodyContent .rtl a, #bodyContent .rtl a.external {
background:none;
padding-right:0;
}
 
/* To make redirects show up in italics on [[Special:Allpages]]. */
.allpagesredirect a, .watchlistredir a {
font-style:italic;
}

/* Default style for PrettyTextBox and InformationBox class of templates */
 .InformationBox {
   width: 80%; 
   border: solid #999999 1px; 
   background: #F8F8F8; 
   margin: 0.5em auto; 
   clear: both; 
   color: #000000; 
   padding: 3px;
 }

/* Language navigation links (moved from monobook.css */

.divlang {
    background: #F9F9F9;
    border: 1px solid #E9E9E9;
    font-size: 0.85em;
    margin: 0 0 1em 0;
    padding: 0.5em 1em;
    text-align: left;
}

.divlang ul {
    display: inline;
    margin-left: 0;
    padding-left: 0;
}

.divlang ul li {
    border-left: 1px solid #E4E4E4;
    display: inline;
    list-style: none;
    margin-left: 0;
    padding: 0 0.5em;
}

.divlang ul li.firstlang {
    border-left: none;
    display: inline;
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}

/* For the show/hide link; see also [[MediaWiki:Common.js]] and [[w:Wikipedia:NAVFRAME]] */
.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;
}

/* Hide "Try Beta" link */
li#pt-optin-try { display: none !important; }

/* Protected pages have text area in light red, to prevent
   accidental editing by admins who didn't notice the header
*/
.mw-textarea-protected, .ns-8 textarea {
  background: #FFDBDB;
}

/* Put a checkered background behind images, only visible if they have transparency */
.gallerybox .thumb img,
.filehistory a img,
#file img {
    background: white url("http://upload.wikimedia.org/wikipedia/commons/5/5d/Checker-16x16.png") repeat;
}

/* 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. Shamelessly stolen from enWiki common.css ( http://en.wikipedia.org/w/index.php?title=MediaWiki:Common.css&oldid=376491996 )
 */
.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; }