Difference between revisions of "MediaWiki:Common.css"

From translatewiki.net
Jump to navigation Jump to search
Line 284: Line 284:
 
direction:rtl;
 
direction:rtl;
 
}
 
}
.persian, *[lang='fa']{
+
.persian, *[lang="fa"], html[lang="fa"] > body {
font-family:Tahoma,'DejaVu Sans',sans-serif;
+
font-family: Tahoma,'DejaVu Sans',sans-serif;
 
}
 
}
   

Revision as of 20:20, 6 July 2011

Information about message (contribute)
NoteThis is an optional message. Do not translate it, if it would remain unchanged in your language.

CSS applied to all users.

Message definition (MediaWiki core)
/* CSS placed here will be applied to all skins */
/************************************************
 * COMMON CSS
 *
 * Any CSS placed in this page will be used on 
 * all skins, please think carefully about if it
 * belongs here (and not in one of the skin CSS
 * pages) before adding it. Thanks.
 ************************************************/

/* <table class="highlighthovertable"> */
table.highlighthovertable tr:hover,
table.highlighthovertable tr:hover td,
table.mw-ext-translate-groupstatistics tr:hover,
table.mw-ext-translate-groupstatistics tr:hover td {
 background-color: white;
}


/* Babel wrapper layout. */
/* XXX: This is either redundant or should be in-core */
/* @noflip */table.mw-babel-wrapper {
	width:        238px;
	float:        right;
	clear:        right;
	margin:       1em;
	border-style: solid;
	border-width: 1px;
	border-color: #99B3FF;
}

/* Babel box layout. */
/* @noflip */div.mw-babel-box {
	float:  left;
	clear:  left;
	margin: 1px;
}

div.mw-babel-box table {
	width: 238px;
}

div.mw-babel-box table th {
	width:       238px;
	width:       45px;
	height:      45px;
	font-size:   14pt;
	font-family: monospace;
}

div.mw-babel-box table td {
	font-size:   8pt;
	padding:     4pt;
	line-height: 1.25em;
}

/* Babel box colours. */
div.mw-babel-box-0 {
	border: solid #B7B7B7 1px;
}

div.mw-babel-box-1 {
	border: solid #C0C8FF 1px;
}

div.mw-babel-box-2 {
	border: solid #77E0E8 1px;
}

div.mw-babel-box-3 {
	border: solid #99B3FF 1px;
}

div.mw-babel-box-4 {
	border: solid #CCCC00 1px;
}

div.mw-babel-box-5 {
	border: solid #F99C99 1px;
}

div.mw-babel-box-N {
	border: solid #6EF7A7 1px;
}

div.mw-babel-box-0 table th {
	background-color: #B7B7B7;
}

div.mw-babel-box-1 table th {
	background-color: #C0C8FF;
}

div.mw-babel-box-2 table th {
	background-color: #77E0E8;
}

div.mw-babel-box-3 table th {
	background-color: #99B3FF;
}

div.mw-babel-box-4 table th {
	background-color: #CCCC00;
}

div.mw-babel-box-5 table th {
	background-color: #F99C99;
}

div.mw-babel-box-N table th{
	background-color: #6EF7A7;
}

div.mw-babel-box-0 table {
	background-color: #E8E8E8;
}

div.mw-babel-box-1 table {
	background-color: #F0F8FF;
}

div.mw-babel-box-2 table {
	background-color: #D0F8FF;
}

div.mw-babel-box-3 table {
	background-color: #E0E8FF;
}

div.mw-babel-box-4 table {
	background-color: #FFFF99;
}

div.mw-babel-box-5 table {
	background-color: #F9CBC9;
}

div.mw-babel-box-N table {
	background-color: #C5FCDC;
}

.babel-box td.babel-footer {
	text-align: center;
}

/* Styling for portals. */
div.table {
    display:        table;
    vertical-align: top;
    width:          100%;
}

div.table-row {
    display:        table-row;
    vertical-align: top;
}

div.table-cell {
    display:        table-cell;
    vertical-align: top;
}

body.ns-100 table.mw-babel-wrapper {
    border:           solid 1px #bbbbbb;
    background-color: #f0f0f0;
    margin-left:      1em;
}

.graytext {
    color: #aaa;
}

/* On [[Special:RecentChanges]] and [[Special:Watchlist]] make the new pages symbol bold green and the minor edit symbol gray. */
.newpage {
    color:       green;
    font-weight: bold
}

.minoredit,
.minor {
    color: gray;
}

/* Monospace diffs, this makes more sense since diffs show what would be seen in the edit box. */
.diff-context,
.diff-deletedline,
.diff-addedline {
    font-family: monospace;
/* Just guess does the stupid wikidiff2 extensions add extra whitespace around..... */
    white-space: -moz-pre-wrap;
    white-space: pre-wrap;
}
 
.diffchange {
    border: 1px dotted rgb( 170, 170, 170 );
}

/* It is unclear what the following CSS does, please add comments if you can clarify. */

.scrollme {
    overflow: scroll;
    width:    100%;
    height:   400px;
}

/* Pad Google AdSense box in portlet in sidebar */
#p-googleadsense .pBody {
    padding-top: 5px;
    text-align:  center;
}

/* Standard Navigationsleisten, aka box hiding thingy from .de.  Documentation at [[Wikipedia:NavFrame]]. */
div.Boxmerge, div.NavFrame { margin: 0; padding: 4px; border-collapse: collapse;}
div.Boxmerge div.NavFrame { border-style: none; border-style: hidden; }
div.NavFrame + div.NavFrame { border-top-style: none; border-top-style: hidden; }
div.NavFrame div.NavHead { height: 1.6em; position:relative; }
div.NavEnd { margin: 0; padding: 0; line-height: 1px; clear: both; }
a.NavToggle { position: absolute; top: 0; right: 5px; }
.note-flaggedrevs * a.NavToggle { right: 12px; } /* For [[Template:Flagged Revs]] */

/* Template:Languages */
.bw-languages {
    border:          1px solid #aaaaaa;
    padding:         0.2em;
    border-collapse: collapse;
    line-height:     1.2;
    font-size:       95%;
    margin:          1px 1px;
}
.bw-languages-title {
    width:        180px;
    border:       1px solid #aaaaaa;
    background:   #EEF3E2;
    padding:      0.5em;
    font-weight:  bold;
}
.bw-languages-links { padding:0.5em; background:#F6F9ED; }

/* Senseless in this project */
#editpage-copywarn { display: none; }

/* New main page stuff */
.page-Main_Page #firstHeading,
.page-Main_Page_draft #firstHeading { display: none; }

/* Hide warnings about bad links on MediaWiki:Common.css */
.page-MediaWiki_Common_css .mw-translate-messagechecks { display: none; }

.page-Main_Page_draft #contentSub { display: none; }
.mainpage-more {
  margin-left:1em;
  white-space:nowrap;
}

.startnow {
  margin: 1em auto;
  text-align: center;
  font-size: 300%;
  line-height: 1.3em;
}

.startnow a {
text-decoration: none!important;
}

/* http://monc.se/kitchen/59/scalable-css-buttons-using-png-and-background-colors */
.btn { display: block; position: relative; background: #aaa; padding: 5px; color: #fff; text-decoration: none; cursor: pointer; }
.btn * { font-style: normal; background-image: url('http://bits.translatewiki.net/static/btn2.png'); background-repeat: no-repeat; display: block; position: relative; }
.btn i { background-position: top left; position: absolute; margin-bottom: -5px; top: 0; left: 0; width: 5px; height: 5px; }
.btn span { background-position: bottom left; left: -5px; padding: 0 0 5px 10px; margin-bottom: -5px; }
.btn span i { background-position: bottom right; margin-bottom: 0; position: absolute; left: 100%; width: 10px; height: 100%; top: 0; }
.btn span span { background-position: top right; position: absolute; right: -10px; margin-left: 10px; top: -5px; height: 0; }

.btn.blue { background: #2ae; }
.btn.green { background: #9d4; }
.btn.pink { background: #e1a; }
.btn:hover { background-color: #a00; }
.btn:active { background-color: #444; }
.btn[class] { background-image: url('http://bits.translatewiki.net/static/shade.png'); background-position: bottom; }

/*******************
** Faciliate RTL translation
*******************/
.persian {
	direction:rtl;
}
.persian, *[lang="fa"], html[lang="fa"] > body {
	font-family: Tahoma,'DejaVu Sans',sans-serif;
}

#bodyContent .persian a, #bodyContent .persian a.external {
	padding-right:0;
	background:none;
}
 
.persian #toctitle {
	direction:ltr;
}
 
.persian .toclevel-1, .persian .toclevel-2, .persian .toclevel-3, .persian .toclevel-4 {
	text-align:right;
}
 
.persian .toclevel-2 {
	margin-right:10px;
}
 
.persian .toclevel-3 {
	margin-right:20px;
}
 
.persian .toclevel-4 {
	margin-right:30px;
}
 
.persian .editsection {
	float:left;
}

.persian ol {
	list-style-type:-moz-persian;
	list-style-type:persian;
}

.persian ul {
	margin-right:2em;
	margin-left:0;

}

.persian ol {
	margin-right:3em;
	margin-left:0;
}
 
#bodyContent .arabic a {
	padding-right:0;
	background:none;
}


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

.bw-languages {
 direction: ltr;
}