Selfrevert r91759. Messed up working-copy
[lhc/web/wiklou.git] / skins / common / shared.css
index d9f9179..3f9d419 100644 (file)
@@ -4,6 +4,35 @@
  * another, but don't ignore the poor pre-Monobook users either.
  */
 
+/* GENERAL CLASSES FOR DIRECTIONALITY SUPPORT */
+/* These classes should be used for text depending on the content direction.
+Content stuff like editsection, ul/ol and TOC depend on this. */
+ /* @noflip */.mw-content-ltr { direction: ltr; }
+/* @noflip */.mw-content-rtl { direction: rtl; }
+/* Most input fields should be in site direction */
+/* @noflip */.sitedir-ltr textarea, .sitedir-ltr input { direction: ltr; }
+/* @noflip */.sitedir-rtl textarea, .sitedir-rtl input { direction: rtl; }
+/* Input types that should follow user direction, like buttons */
+input[type="submit"], input[type="button"], input[type="reset"], input[type="file"] { direction: ltr; }
+/* Override default values */
+/* @noflip */textarea[dir="ltr"], input[dir="ltr"] { direction: ltr; }
+/* @noflip */textarea[dir="rtl"], input[dir="rtl"] { direction: rtl; }
+
+.mw-float-start { float: left; }
+.mw-float-end { float: right; }
+
+/* The scripts of these languages are very hard to read with underlines */
+[lang="ar"] a, [lang="ckb"] a, [lang="fa"] a, [lang="kk-arab"] a,
+[lang="mzn"] a, [lang="ps"] a, [lang="ur"] a {
+       text-decoration: none;
+}
+
+/* Default style for semantic tags */
+abbr, acronym, .explain {
+       border-bottom: 1px dotted black;
+       cursor: help;
+}
+
 /* Colored watchlist and recent changes numbers */
 .mw-plusminus-pos { color: #006400; } /* dark green */
 .mw-plusminus-neg { color: #8b0000; } /* dark red */
@@ -15,6 +44,7 @@
        font-style: italic;
 }
 
+
 /* Comment and username portions of RC entries */
 span.comment {
        font-style: italic;
@@ -55,7 +85,9 @@ div#mw-js-message {
        float: right;
        margin-left: 5px;
 }
-
+/* Correct directionality when page dir is different from site/user dir */
+/* @noflip */.mw-content-ltr .editsection, .mw-content-rtl .mw-content-ltr .editsection { float: right; }
+/* @noflip */.mw-content-rtl .editsection, .mw-content-ltr .mw-content-rtl .editsection { float: left; }
 /**
  * File histories
  */
@@ -63,6 +95,15 @@ h2#filehistory {
        clear: both;
 }
 
+/*
+* Add a checkered background image on hover for file description pages. Bug 26470
+*/
+.filehistory a img:hover,
+#file img:hover {
+    /* @embed */
+    background: white url(images/Checker-16x16.png) repeat;
+}
+
 table.filehistory th,
 table.filehistory td {
        vertical-align: top;
@@ -87,9 +128,6 @@ li span.deleted, span.history-deleted {
        color: #888;
        font-style: italic;
 }
-li span.deleted a, span.history-deleted a {
-       color: #888;
-}
 
 /**
  * Patrol stuff
@@ -158,67 +196,31 @@ p.mw-ipb-conveniencelinks, p.mw-protect-editreasons,
 p.mw-filedelete-editreasons, p.mw-delete-editreasons,
 p.mw-revdel-editreasons {
        font-size: 90%;
-       float: right;
+       text-align: right;
 }
 
 /*
  * OpenSearch ajax suggestions
  */
-.os-suggest {
-       overflow: auto;
-       overflow-x: hidden;
-       position: absolute;
-       top: 0px;
-       left: 0px;
-       width: 0px;
-       background-color: white;
-       background-color: Window;
-       border-style: solid;
-       border-color: #AAAAAA;
-       border-width: 1px;
-       z-index:99;
-       font-size:95%;
-}
-
-table.os-suggest-results {
+.open-search-suggestions .ui-autocomplete {
        font-size: 95%;
-       cursor: pointer;
-       border: 0;
-       border-collapse: collapse;
-       width: 100%;
-}
-
-.os-suggest-result, .os-suggest-result-hl {
-       white-space: nowrap;
-       background-color: white;
-       background-color: Window;
-       color: black;
-       color: WindowText;
-       padding: 2px;
+       border: 1px solid #AAA!important;
+       overflow: auto;
+       height: 100px;
+       background: #FFF;
+       background: Window;
 }
-.os-suggest-result-hl,
-.os-suggest-result-hl-webkit {
-       background-color: #4C59A6;
+.open-search-suggestions .ui-autocomplete #ui-active-menuitem {
+       background: #4C59A6;
+       background: Highlight;
        color: white;
-}
-.os-suggest-result-hl {
-       /* System colors are misimplemented in Safari 3.0 and earlier,
-          making highlighted text illegible... */
-       background-color: Highlight;
        color: HighlightText;
+       border-color: #4C59A6;
+       border-color: Highlight;
 }
-
-.os-suggest-toggle {
-       position: relative;
-       left: 1ex;
-       font-size: 65%;
-}
-.os-suggest-toggle-def {
-       position: absolute;
-       top: 0px;
-       left: 0px;
-       font-size: 65%;
-       visibility: hidden;
+.open-search-suggestions .ui-autocomplete .ui-menu-item a{
+       line-height: 1.1!important;
+       font-size: 95%;
 }
 
 /* Page history styling */
@@ -292,6 +294,11 @@ a.feedlink {
        background: none !important;
        padding: 0 !important;
 }
+/* External URLs should always be treated as LTR (bug 4330) */
+/* @noflip */ .rtl a.external.free, .rtl a.external.autonumber {
+       direction: ltr;
+       unicode-bidi: embed;
+}
 
 /* wikitable class for skinning normal tables
  * keep on sync with commonPrint.css
@@ -326,7 +333,7 @@ table.collapsed tr.collapsable {
        font-size: larger;
 }
 .warning {
-       color: yellow;
+       color: #FFA500; /* orange */
        font-size: larger;
 }
 .error {
@@ -346,8 +353,8 @@ table.collapsed tr.collapsable {
        background-color: #fff2f2;
 }
 .warningbox {
-       border-color: yellow;
-       background-color: #ffd;
+       border-color: #FF8C00; /* darkorange */
+       background-color: #FFFFC0;
 }
 .successbox {
        border-color: green;
@@ -361,6 +368,24 @@ table.collapsed tr.collapsable {
        border: none;
 }
 
+/* general info/warning box for SP */
+.mw-infobox {
+       border: 2px solid #ff7f00;
+       margin: 0.5em;
+       clear: left;
+       overflow: hidden;
+}
+
+.mw-infobox-left {
+       margin: 7px;
+       float: left;
+       width: 35px;
+}
+
+.mw-infobox-right {
+       margin: 0.5em 0.5em 0.5em 49px;
+}
+
 /* Note on preview page */
 .previewnote {
        color: #c00;
@@ -393,7 +418,6 @@ table.collapsed tr.collapsable {
 .TablePager {
        min-width: 80%;
        border-collapse: collapse;
-       margin: 0 auto;
 }
 .TablePager_nav {
        margin: 0 auto;
@@ -533,6 +557,11 @@ li.gallerybox div.thumb {
        margin: 2px;
 }
 
+li.gallerybox div.thumb img {
+       display: block;
+       margin: 0 auto;
+}
+
 div.gallerytext {
        overflow: hidden;
        font-size: 94%;
@@ -585,6 +614,15 @@ div.gallerytext {
        background-repeat: no-repeat;
 }
 
+/* Correct directionality when page dir is different from site/user dir */
+/* @noflip */.mw-content-ltr ul, .mw-content-ltr ol,
+.mw-content-rtl .mw-content-ltr ul, .mw-content-rtl .mw-content-ltr ol {
+       margin: .3em 0 0 1.5em;
+}
+/* @noflip */.mw-content-rtl ul, .mw-content-rtl ol,
+.mw-content-ltr .mw-content-rtl ul, .mw-content-ltr .mw-content-rtl ol {
+       margin: .3em 1.5em 0 0;
+}
 /* Localised ordered list numbering for some languages */
 ol:lang(bcc) li,
 ol:lang(bqi) li,
@@ -611,21 +649,40 @@ ol:lang(or) li {
        list-style-type: oriya;
 }
 
+/* Correct directionality when page dir is different from site/user dir */
+/* @noflip */.mw-content-ltr .toc ul, .mw-content-ltr #toc ul,
+.mw-content-rtl .mw-content-ltr .toc ul, .mw-content-rtl .mw-content-ltr #toc ul {
+       text-align: left;
+       margin-left: 0;
+}
+/* @noflip */.mw-content-rtl .toc ul, .mw-content-rtl #toc ul,
+.mw-content-ltr .mw-content-rtl .toc ul, .mw-content-ltr .mw-content-rtl #toc ul {
+       text-align: right;
+       margin-right: 0;
+}
+/* @noflip */.mw-content-ltr .toc ul ul, .mw-content-ltr #toc ul ul,
+.mw-content-rtl .mw-content-ltr .toc ul ul, .mw-content-rtl .mw-content-ltr #toc ul ul {
+       margin: 0 0 0 2em;
+}
+/* @noflip */.mw-content-rtl .toc ul ul, .mw-content-rtl #toc ul ul,
+.mw-content-ltr .mw-content-rtl .toc ul ul, .mw-content-ltr .mw-content-rtl #toc ul ul {
+       margin: 0 2em 0 0;
+}
+
 /* tooltip styles */
 .mw-help-field-hint {
        display: none;
-       padding: 0px;
-       padding-left: 15px;
        margin-left: 2px;
        margin-bottom: -8px;
+       padding: 0px 0px 0px 15px;
        /* @embed */
        background-image: url('images/help-question.gif');
        background-position: left center;
        background-repeat: no-repeat;
-       color: #0645ad;
-       text-decoration: underline;
        cursor: pointer;
        font-size: .8em;
+       text-decoration: underline;
+       color: #0645ad;
 }
 .mw-help-field-hint:hover {
        /* @embed */
@@ -680,9 +737,49 @@ th.headerSortDown {
        background-image: url(images/sort_down.gif); 
 }
 
-/* Special:Version */
-#sv-software td {
-       /* version numbers are always ltr (and otherwise an RLE can be inserted) */
+/* LTR content in RTL layout */
+.ltr {
        /* @noflip */
        direction: ltr;
+       unicode-bidi: embed;
+}
+
+#mw-clearyourcache, #mw-sitecsspreview, #mw-sitejspreview, #mw-usercsspreview, #mw-userjspreview {
+       direction: ltr;
+       unicode-bidi: embed;
+}
+
+/* Correct user & content directionality when viewing a diff */
+.diff-currentversion-title, .diff {
+       direction: ltr;
+       unicode-bidi: embed;
+}
+/* @noflip */ .diff-contentalign-right td {
+       direction: rtl;
+       unicode-bidi: embed;
+}
+/* @noflip */ .diff-contentalign-left td {
+       direction: ltr;
+       unicode-bidi: embed;
+}
+.diff-otitle, .diff-ntitle, .diff-lineno {
+       direction: ltr !important;
+       unicode-bidi: embed;
+}
+
+#mw-revision-info, #mw-revision-nav {
+       direction: ltr;
 }
+
+/* Images */
+/* @noflip */div.tright, div.floatright, table.floatright {
+       clear: right;
+       float: right;
+}
+/* @noflip */div.tleft, div.floatleft, table.floatleft {
+       float: left;
+       clear: left;
+}
+div.floatright, table.floatright, div.floatleft, table.floatleft {
+       position: relative;
+}
\ No newline at end of file