MediaWiki:Common.css

From translatewiki.net

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
/************************************************
 * 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.
 ************************************************/

.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. */
/* Note: Anno 2012 many browsers don't use monospace in the textarea anymore by default, notably Chrome and Safari don't (unless the user overrides this in the preferences) */
.diff-context,
.diff-deletedline,
.diff-addedline {
    font-family: monospace, "Courier New";
    white-space: pre-wrap;
}
 
.diffchange {
    border: 1px dotted rgb( 170, 170, 170 );
}

/* 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]] */

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

/*******************
** Faciliate RTL translation
*******************/
/* @noflip */
#bodyContent .arabic a {
	padding-right:0;
	background:none;
}

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

/* Position the archive link in the top right corner of the page content area, just above the main heading bottom border. */
.archivelink {
    position:     absolute;
    right:        10px;
    margin-right: -10px;
    font-size:    85%;
    font-weight:  bold;
}

/* LiquidThreads */

/* prevent wrapping of lines in LQT TOC if not necessary */
table.lqt_toc {
	width: auto;
}

/*
Without this, LiquidThreads shows posts as RTL by default
to users who defined an RTL UI language, even though
the site's direction is LTR.

LiquidThreads posts in RTL languages can still be manually set to RTL
using HTML.
*/
/* @noflip */
.lqt_post {
	/* */ direction: ltr;
}

/*
Ensure that translation into RTL languages is convenient
even before they have their own Messages*.php file that
disignates them as RTL.
Remove codes once they have a Messages*.php file.
*/
/* @noflip */
:lang(apc),
:lang(bft),
:lang(lad-hebr),
:lang(mey),
:lang(prs) {
	direction: rtl;
}

/**
 * Indentation for subgroups in Special:LanguageStats
 *
 * The order of these rules matters!
 *
 * @maintainer Jon Harald Søby
 */
.statstable [data-depth="1"] td:first-of-type {
	padding-left: 1.5em;
}
.statstable [data-depth="2"] td:first-of-type {
	padding-left: 2.5em;
}
.statstable [data-depth="3"] td:first-of-type {
	padding-left: 3.5em;
}
.statstable [data-depth="4"] td:first-of-type {
	padding-left: 4.5em;
}