MediaWiki:Common.css

From translatewiki.net
Jump to navigation Jump to search

Note: After saving, 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: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files.
/************************************************
 * 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.
 ************************************************/

/* Fix size of our non-square site logo */
.mw-wiki-logo {
        background-size: 135px 135px;
}

/* 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. */
/* 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";
/* 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. */
/* The box which is 400px high and if its content is longer, it gets the scrollbar */
.scrollme {
    overflow: scroll;
    width:    100%;
    height:   400px;
}

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

/* Hide warnings about bad links on MediaWiki:Common.css */
.page-MediaWiki_Common_css .mw-translate-messagechecks { 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;
}

.bw-languages {
 direction: ltr;
}

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

/* qqq visibility, [[Thread:Support/Suggestion: Add this CSS to MediaWiki:Common.css]] */
 
.mw-sp-translate-edit-info .mw-content-ltr {
  background-position:left center;
  padding-left:45px;
}
fieldset.mw-sp-translate-edit-info .mw-centent-rtl {
  background-position:right center;
  padding-right:45px;
}

/* Semantic MediaWiki - make special properties easier to identify */

.smwbuiltin a,
.smwbuiltin a.new {
	color: #FF8000;
}