Fix Bug #31547 - Category links need less spacing and better wrapping
[lhc/web/wiklou.git] / skins / common / shared.css
index 75df71b..ecc67e0 100644 (file)
@@ -1,17 +1,85 @@
 /**
- * CSS in this file is used by *all* skins (that have any CSS at all).  Be
+ * CSS in this file is used by *all* skins (that have any CSS at all). Be
  * careful what you put in here, since what looks good in one skin may not in
  * 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.
+ */
+.mw-content-ltr {
+       /* @noflip */
+       direction: ltr;
+}
+.mw-content-rtl {
+       /* @noflip */
+       direction: rtl;
+}
+
+/* Most input fields should be in site direction */
+.sitedir-ltr textarea,
+.sitedir-ltr input {
+       /* @noflip */
+       direction: ltr;
+}
+.sitedir-rtl textarea,
+.sitedir-rtl input {
+       /* @noflip */
+       direction: rtl;
+}
+
+/* Input types that should follow user direction, like buttons */
+/* TODO: What about buttons in wikipage content ? */
+input[type="submit"],
+input[type="button"],
+input[type="reset"],
+input[type="file"] {
+       direction: ltr;
+}
+
+/* Override default values */
+textarea[dir="ltr"],
+input[dir="ltr"] {
+       /* @noflip */
+       direction: ltr;
+}
+textarea[dir="rtl"],
+input[dir="rtl"] {
+       /* @noflip */
+       direction: rtl;
+}
+
+/* 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 */
-.mw-plusminus-null { color: #aaa; } /* gray */
+.mw-plusminus-pos {
+       color: #006400; /* dark green */
+}
+.mw-plusminus-neg {
+       color: #8b0000; /* dark red */
+}
+.mw-plusminus-null {
+       color: #aaa; /* gray */
+}
 
-/* Links to redirects appear italicized on [[Special:AllPages]], [[Special:PrefixIndex]],
-   [[Special:Watchlist/edit]] and in category listings */
-.allpagesredirect, .redirect-in-category, .watchlistredir { font-style: italic; }
+/**
+ * Links to redirects appear italicized on [[Special:AllPages]], [[Special:PrefixIndex]],
+ * [[Special:Watchlist/edit]] and in category listings.
+ */
+.allpagesredirect,
+.redirect-in-category,
+.watchlistredir {
+       font-style: italic;
+}
 
 /* Comment and username portions of RC entries */
 span.comment {
@@ -27,18 +95,30 @@ span.changedby {
        direction: ltr;
        unicode-bidi: embed;
 }
-img.tex { vertical-align: middle; }
-span.texhtml { font-family: serif; }
+img.tex {
+       vertical-align: middle;
+}
+span.texhtml {
+       font-family: serif;
+}
 
-/* add a bit of margin space between the preview and the toolbar */
-/* this replaces the ugly <p><br /></p> we used to insert into the page source */
-#wikiPreview.ontop { margin-bottom: 1em; }
+/**
+ * Add a bit of margin space between the preview and the toolbar.
+ * This replaces the ugly <p><br /></p> we used to insert into the page source
+ */
+#wikiPreview.ontop {
+       margin-bottom: 1em;
+}
 
 /* Stop floats from intruding into edit area in previews */
-#editform, #toolbar, #wpTextbox1 {
+#editform,
+#toolbar,
+#wpTextbox1 {
        clear: both;
 }
-
+#toolbar img {
+       cursor: pointer;
+}
 div#mw-js-message {
        margin: 1em 5%;
        padding: 0.5em 2.5%;
@@ -51,6 +131,25 @@ div#mw-js-message {
        float: right;
        margin-left: 5px;
 }
+/* Correct directionality when page dir is different from site/user dir */
+.mw-content-ltr .editsection,
+.mw-content-rtl .mw-content-ltr .editsection {
+       /* @noflip */
+       float: right;
+}
+.mw-content-rtl .editsection,
+.mw-content-ltr .mw-content-rtl .editsection {
+       /* @noflip */
+       float: left;
+}
+
+/**
+ * File description page
+ */
+
+div.mw-filepage-resolutioninfo {
+       font-size: smaller;
+}
 
 /**
  * File histories
@@ -75,10 +174,21 @@ table.filehistory td.filehistory-selected {
        font-weight: bold;
 }
 
-/*
+/**
+ * Add a checkered background image on hover for file
+ * description pages. (bug 26470)
+ */
+.filehistory a img,
+#file img:hover {
+       /* @embed */
+       background: white url(images/Checker-16x16.png) repeat;
+}
+
+/**
  * rev_deleted stuff
  */
-li span.deleted, span.history-deleted {
+li span.deleted,
+span.history-deleted {
        text-decoration: line-through;
        color: #888;
        font-style: italic;
@@ -104,14 +214,28 @@ div.patrollink {
 /**
  * Forms
  */
-td.mw-label { text-align: right; }
-td.mw-input { text-align: left; }
-td.mw-submit { text-align: left; }
+td.mw-label {
+       text-align: right;
+}
+td.mw-input {
+       text-align: left;
+}
+td.mw-submit {
+       text-align: left;
+}
 
-td.mw-label { vertical-align: top; }
-.prefsection td.mw-label { width: 20%; }
-.prefsection table { width: 100%; }
-td.mw-submit { white-space: nowrap; }
+td.mw-label {
+       vertical-align: top;
+}
+.prefsection td.mw-label {
+       width: 20%;
+}
+.prefsection table {
+       width: 100%;
+}
+td.mw-submit {
+       white-space: nowrap;
+}
 
 table.mw-htmlform-nolabel td.mw-label {
        width: 0 !important;
@@ -121,6 +245,16 @@ tr.mw-htmlform-vertical-label td.mw-label {
        text-align: left !important;
 }
 
+.mw-htmlform-invalid-input td.mw-input input {
+       border-color: red;
+}
+.mw-htmlform-radio-flatlist div.mw-htmlform-radio-item,
+.mw-htmlform-multiselect-flatlist div.mw-htmlform-multiselect-item {
+       display: inline;
+       margin-right: 1em;
+       white-space: nowrap;
+}
+
 input#wpSummary {
        width: 80%;
 }
@@ -128,242 +262,78 @@ input#wpSummary {
 /**
  * Image captions
  */
-.thumbcaption { text-align: left; }
-.magnify { float: right; }
-
-/**
- * Hidden categories
- */
-.mw-hidden-cats-hidden { display: none; }
-.catlinks-allhidden { display: none; }
-
-/* Convenience links to edit block, delete and protect reasons */
-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;
-}
-
-/* Search results */
-.searchresults {
-}
-
-.searchresults p {
-       margin-left: 0.4em;
-       margin-top: 1em;
-       margin-bottom: 1.2em;
+.thumbcaption {
+       text-align: left;
 }
-
-div.searchresult {
-       font-size: 95%;
-       width: 38em;
+.magnify {
+       float: right;
 }
 
-.mw-search-results {
-       margin-left: 0.4em;
+/**
+ * Categories
+ */
+#catlinks {
+       /**
+        * Overrides text justification (user preference)
+        * See bug 31990
+        */
+       text-align: left;
 }
-
-.mw-search-results li {
-       padding-bottom: 1em;
+.catlinks ul {
+       display: inline;
+       margin: 0;
+       padding: 0;
        list-style: none;
+       list-style-type: none;
        list-style-image: none;
-}
-.mw-search-results li a {
-       font-size: 108%;
+       vertical-align: middle !ie;
 }
 
-.mw-search-result-data {
-       color: green;
-       font-size: 97%;
+.catlinks li {
+       display: inline-block;
+       line-height: 1.25em;
+       border-left: 1px solid #AAA;
+       margin: 0.125em 0;
+       padding: 0 0.5em;
+       zoom: 1;
+       display: inline !ie;
 }
 
-.mw-search-formheader {
-       background-color: #f3f3f3;
-       margin-top: 1em;
-       border: 1px solid silver;
-}
-.mw-search-formheader div.search-types {
-       float: left;
+.catlinks li:first-child {
        padding-left: 0.25em;
+       border-left: none;
 }
-.mw-search-formheader div.search-types ul {
-       margin: 0 !important;
-       padding: 0 !important;
-       list-style: none !important;
-}
-.mw-search-formheader div.search-types ul li {
-       float: left;
-       margin: 0;
-       padding: 0;
-}
-.mw-search-formheader div.search-types ul li a {
-       display: block;
-       padding: 0.5em;
-}
-.mw-search-formheader div.search-types ul li.current a {
-       color: #333333;
-       cursor: default;
-}
-.mw-search-formheader div.search-types ul li.current a:hover {
-       text-decoration: none;
-}
-.mw-search-formheader div.results-info {
-       float: right;
-       padding: 0.5em;
-       padding-right: 0.75em;
-}
-.mw-search-formheader div.results-info ul {
-       margin: 0 !important;
-       padding: 0 !important;
-       list-style: none !important;
-}
-.mw-search-formheader div.results-info ul li {
-       float: right;
-       margin: 0;
-       padding: 0;
-}
-fieldset#mw-searchoptions {
-       margin: 0;
-       padding-left: 0.75em !important;
-       padding-right: 0.75em !important;
-       padding-bottom: 0.5em !important;
-       padding-top: 0.5em !important;
-       border: none;
-       background-color: #f9f9f9;
-       border: 1px solid silver !important;
-       border-top-width: 0 !important;
-}
-fieldset#mw-searchoptions legend {
+/**
+ * Hidden categories
+ */
+.mw-hidden-cats-hidden {
        display: none;
 }
-fieldset#mw-searchoptions h4 {
-       padding: 0;
-       margin: 0;
-       float: left;
-}
-fieldset#mw-searchoptions div#mw-search-togglebox {
-       float: right;
-}
-
-fieldset#mw-searchoptions div#mw-search-togglebox label {
-       margin-right: 0.25em;
-}
-fieldset#mw-searchoptions div#mw-search-togglebox input {
-       margin-left: 0.25em;
-}
-fieldset#mw-searchoptions table {
-       float: left;
-       margin-right: 3em;
-}
-fieldset#mw-searchoptions table td {
-       padding-right: 1em;
-}
-fieldset#mw-searchoptions div.divider {
-       clear: both;
-       border-bottom: 1px solid #DDDDDD;
-       padding-top: 0.5em;
-       margin-bottom: 0.5em;
-}
-
-td#mw-search-menu {
-       padding-left:6em;
-       font-size:85%;
-}
-
-div#mw-search-interwiki {
-       float: right;
-       width: 18em;
-       border-style: solid;
-       border-color: #AAAAAA;
-       border-width: 1px;
-       margin-top: 2ex;
-}
-
-div#mw-search-interwiki li {
-       font-size: 95%;
+.catlinks-allhidden {
+       display: none;
 }
 
-.mw-search-interwiki-more {
-       float: right;
+/* Convenience links to edit block, delete and protect reasons */
+p.mw-ipb-conveniencelinks,
+p.mw-protect-editreasons,
+p.mw-filedelete-editreasons,
+p.mw-delete-editreasons,
+p.mw-revdel-editreasons {
        font-size: 90%;
-}
-
-div#mw-search-interwiki-caption {
-       text-align: center;
-       font-weight: bold;
-       font-size: 95%;
-}
-
-.mw-search-interwiki-project {
-       font-size: 97%;
-       text-align: left;
-       padding-left: 0.2em;
-       padding-right: 0.15em;
-       padding-bottom: 0.2em;
-       padding-top: 0.15em;
-       background-color: #ececec;
-       border-top: 1px solid #BBBBBB;
-}
-
-span.searchalttitle {
-       font-size: 95%;
-}
-
-div.searchdidyoumean {
-       font-size: 127%;
-       margin-top: 0.8em;
-       /* Note that this color won't affect the link, as desired. */
-       color: #c00;
-}
-
-div.searchdidyoumean em {
-       font-weight: bold;
-}
-
-.searchmatch {
-       font-weight: bold;
-}
-
-
-/*
- * Advanced PowerSearch box
- */
-td#mw-search-togglebox {
        text-align: right;
 }
 
-table#mw-search-powertable {
-       width: 100%;
-}
-
-form#powersearch {
-       clear: both;
-}
-
-/*
- * UserRights stuff
- */
-.mw-userrights-disabled {
-       color: #888;
-}
-
-table.mw-userrights-groups * td,table.mw-userrights-groups * th {
-       padding-right: 1.5em;
-}
-
-/*
+/**
  * OpenSearch ajax suggestions
  */
 .os-suggest {
        overflow: auto;
        overflow-x: hidden;
        position: absolute;
-       top: 0px;
-       left: 0px;
-       width: 0px;
+       top: 0;
+       left: 0;
+       width: 0;
        background-color: white;
-       background-color: Window;
        border-style: solid;
        border-color: #AAAAAA;
        border-width: 1px;
@@ -379,12 +349,11 @@ table.os-suggest-results {
        width: 100%;
 }
 
-.os-suggest-result, .os-suggest-result-hl {
+.os-suggest-result,
+.os-suggest-result-hl {
        white-space: nowrap;
        background-color: white;
-       background-color: Window;
        color: black;
-       color: WindowText;
        padding: 2px;
 }
 .os-suggest-result-hl,
@@ -392,12 +361,6 @@ table.os-suggest-results {
        background-color: #4C59A6;
        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;
-}
 
 .os-suggest-toggle {
        position: relative;
@@ -406,15 +369,18 @@ table.os-suggest-results {
 }
 .os-suggest-toggle-def {
        position: absolute;
-       top: 0px;
-       left: 0px;
+       top: 0;
+       left: 0;
        font-size: 65%;
        visibility: hidden;
 }
 
 /* Page history styling */
-/* the auto-generated edit comments */
-.autocomment { color: gray; }
+
+/* The auto-generated edit comments */
+.autocomment {
+       color: gray;
+}
 #pagehistory .history-user {
        margin-left: 0.4em;
        margin-right: 0.2em;
@@ -430,79 +396,23 @@ table.os-suggest-results {
        border: 1px dashed #aaa;
 }
 
-/** Generic minor/bot/newpage styling */
-.newpage, .minor, .bot {
-       font-weight: bold;
+.mw-history-revisiondelete-button, #mw-fileduplicatesearch-icon {
+       float: right;
 }
 
-/* Special:Contributions styling */
-.mw-uctop {
+/** Generic minor/bot/newpage styling (recent changes) */
+.newpage,
+.minoredit,
+.botedit {
        font-weight: bold;
 }
 
-/* Special:ListGroupRights styling */
-table.mw-listgrouprights-table tr {
-       vertical-align: top;
-}
-.listgrouprights-revoked {
-       text-decoration: line-through;
-}
-
-/* Special:Statistics styling */
-td.mw-statistics-numbers {
-       text-align: right;
-}
-
-#shared-image-dup, #shared-image-conflict {
+#shared-image-dup,
+#shared-image-conflict {
        font-style: italic;
 }
 
-/* Special:EmailUser styling */
-table.mw-emailuser-table {
-       width: 98%;
-}
-td#mw-emailuser-sender, td#mw-emailuser-recipient {
-       font-weight: bold;
-}
-
-/* Special:Allpages styling */
-table.mw-allpages-table-form, table.mw-allpages-table-chunk {
-       width: 100%;
-}
-td.mw-allpages-alphaindexline {
-       text-align: right;
-}
-td.mw-allpages-nav, p.mw-allpages-nav {
-       text-align: right;
-       font-size: smaller;
-       margin-bottom: 1em;
-}
-table.mw-allpages-table-form tr {
-       vertical-align: top;
-}
-
-/* Special:Prefixindex styling */
-table#mw-prefixindex-list-table,
-table#mw-prefixindex-nav-table {
-       width: 98%;
-}
-td#mw-prefixindex-nav-form {
-       font-size: smaller;
-       margin-bottom: 1em;
-       text-align: right;
-       vertical-align: top;
-}
-
-/* Special:Specialpages style */
-.mw-specialpagecached{
-       font-style:italic;
-}
-
-.mw-specialpagerestricted{
-       font-weight:bold;
-}
-
-/*
+/**
  * Recreating deleted page warning
  * Reupload file warning
  * Page protection warning
@@ -528,7 +438,8 @@ input.mw-revdelundel-hidden {
        visibility: hidden;
 }
 
-td.mw-revdel-checkbox, th.mw-revdel-checkbox {
+td.mw-revdel-checkbox,
+th.mw-revdel-checkbox {
        padding-right: 10px;
        text-align: center;
 }
@@ -536,7 +447,7 @@ td.mw-revdel-checkbox, th.mw-revdel-checkbox {
 /* feed links */
 a.feedlink {
        /* @embed */
-       background: url("images/feed-icon.png") center left no-repeat;
+       background: url(images/feed-icon.png) center left no-repeat;
        padding-left: 16px;
 }
 
@@ -546,22 +457,31 @@ 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
+/**
+ * wikitable class for skinning normal tables
+ * keep in sync with commonPrint.css
  */
 table.wikitable {
        margin: 1em 1em 1em 0;
-       background: #f9f9f9;
+       background-color: #f9f9f9;
        border: 1px #aaa solid;
        border-collapse: collapse;
+       color: black;
 }
-.wikitable th, .wikitable td {
+.wikitable th,
+.wikitable td {
        border: 1px #aaa solid;
        padding: 0.2em;
 }
 .wikitable th {
-       background: #f2f2f2;
+       background-color: #f2f2f2;
        text-align: center;
 }
 .wikitable caption {
@@ -578,11 +498,17 @@ table.collapsed tr.collapsable {
        color: green;
        font-size: larger;
 }
+.warning {
+       color: #FFA500; /* orange */
+       font-size: larger;
+}
 .error {
        color: red;
        font-size: larger;
 }
-.errorbox, .successbox {
+.errorbox,
+.warningbox,
+.successbox {
        font-size: larger;
        border: 2px solid;
        padding: .5em 1em;
@@ -594,11 +520,17 @@ table.collapsed tr.collapsable {
        border-color: red;
        background-color: #fff2f2;
 }
+.warningbox {
+       border-color: #FF8C00; /* darkorange */
+       background-color: #FFFFC0;
+}
 .successbox {
        border-color: green;
        background-color: #dfd;
 }
-.errorbox h2, .successbox h2 {
+.errorbox h2,
+.warningbox h2,
+.successbox h2 {
        font-size: 1em;
        font-weight: bold;
        display: inline;
@@ -606,6 +538,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;
@@ -627,36 +577,52 @@ table.collapsed tr.collapsable {
        padding: 0.2em;
 }
 
-/*
-       Table pager (e.g. Special:ListFiles)
-       - remove underlines from the navigation link
-       - collapse borders
-       - set the borders to outsets (similar to Special:AllMessages)
-       - remove line wrapping for all td and th, set background color
-       - restore line wrapping for the last two table cells (description and size)
-*/
-.TablePager {
-       min-width: 80%;
+/**
+ * Data table style
+ *
+ * Transparent table with suddle borders
+ * and blue row-highlighting.
+ */
+.mw-datatable {
        border-collapse: collapse;
 }
-.TablePager_nav a {
-       text-decoration: none;
-}
-.TablePager, .TablePager td, .TablePager th {
+.mw-datatable,
+.mw-datatable td,
+.mw-datatable th {
        border: 1px solid #aaaaaa;
        padding: 0 0.15em 0 0.15em;
 }
-.TablePager th {
-       background-color: #eeeeff;
+.mw-datatable th {
+       background-color: #ddddff;
 }
-.TablePager td {
+.mw-datatable td {
        background-color: #ffffff;
 }
-.TablePager tr:hover td {
+.mw-datatable tr:hover td {
        background-color: #eeeeff;
 }
 
-.imagelist td, .imagelist th {
+
+/**
+ * TablePager tables generated by the TablePager PHP class
+ * in MediaWiki (e.g. Special:ListFiles).
+ */
+.TablePager {
+       min-width: 80%;
+}
+.TablePager_nav {
+       margin: 0 auto;
+}
+.TablePager_nav td {
+       padding: 3px;
+       text-align: center;
+}
+.TablePager_nav a {
+       text-decoration: none;
+}
+
+.imagelist td,
+.imagelist th {
        white-space: nowrap;
 }
 .imagelist .TablePager_col_links {
@@ -669,23 +635,6 @@ table.collapsed tr.collapsable {
        background-color: #ccccff;
 }
 
-/* Allmessages table */
-#mw-allmessagestable .allmessages-customised td.am_default {
-       background-color: #fcffc4;
-}
-
-#mw-allmessagestable tr.allmessages-customised:hover td.am_default {
-       background-color: #faff90;
-}
-
-#mw-allmessagestable td.am_actual {
-       background-color: #e2ffe2;
-}
-
-#mw-allmessagestable tr.allmessages-customised:hover + tr.allmessages-customised td.am_actual {
-       background-color: #b1ffb1;
-}
-
 /* filetoc */
 ul#filetoc {
        text-align: center;
@@ -709,7 +658,7 @@ table.mw_metadata {
        font-size: 0.8em;
        margin-left: 0.5em;
        margin-bottom: 0.5em;
-       width: 300px;
+       width: 400px;
 }
 
 table.mw_metadata caption {
@@ -729,11 +678,12 @@ table.mw_metadata {
        border-collapse: collapse;
 }
 
-table.mw_metadata td, table.mw_metadata th {
+table.mw_metadata td,
+table.mw_metadata th {
        text-align: center;
        border: 1px solid #aaaaaa;
-       padding-left: 0.1em;
-       padding-right: 0.1em;
+       padding-left: 5px;
+       padding-right: 5px;
 }
 
 table.mw_metadata th {
@@ -744,26 +694,60 @@ table.mw_metadata td {
        background-color: #fcfcfc;
 }
 
+table.mw_metadata ul.metadata-langlist {
+       list-style-type: none;
+       list-style-image: none;
+       padding-right: 5px;
+       padding-left: 5px;
+       margin: 0;
+}
+
+/* Correct directionality when page dir is different from site/user dir */
+.mw-content-ltr ul,
+.mw-content-rtl .mw-content-ltr ul {
+       /* @noflip */
+       margin: 0.3em 0 0 1.5em;
+       padding: 0;
+}
+.mw-content-rtl ul,
+.mw-content-ltr .mw-content-rtl ul {
+       /* @noflip */
+       margin: 0.3em 1.5em 0 0;
+       padding: 0;
+}
+.mw-content-ltr ol,
+.mw-content-rtl .mw-content-ltr ol {
+       /* @noflip */
+       margin: 0.3em 0 0 3.2em;
+       padding: 0;
+}
+.mw-content-rtl ol,
+.mw-content-ltr .mw-content-rtl ol {
+       /* @noflip */
+       margin: 0.3em 3.2em 0 0;
+       padding: 0;
+}
+
 /* Galleries */
 /* These display attributes look nonsensical, but are needed to support IE and FF2 */
 /* Don't forget to update commonPrint.css */
 li.gallerybox {
        vertical-align: top;
-       background-color: #f9f9f9;
        border: solid 2px white;
        display: -moz-inline-box;
        display: inline-block;
 }
 
-ul.gallery, li.gallerybox {
-       zoom: 1;
-       *display: inline;
-}
-
 ul.gallery {
        margin: 2px;
        padding: 2px;
-       display: block;
+       display: inline-block;
+}
+
+ul.gallery,
+li.gallerybox {
+       zoom: 1;
+       display: inline !ie;
 }
 
 li.gallerycaption {
@@ -776,9 +760,15 @@ li.gallerycaption {
 li.gallerybox div.thumb {
        text-align: center;
        border: 1px solid #ccc;
+       background-color: #f9f9f9;
        margin: 2px;
 }
 
+li.gallerybox div.thumb img {
+       display: block;
+       margin: 0 auto;
+}
+
 div.gallerytext {
        overflow: hidden;
        font-size: 94%;
@@ -786,32 +776,6 @@ div.gallerytext {
        word-wrap: break-word;
 }
 
-#mw-addcategory-prompt {
-       display: inline;
-       margin-left: 1em;
-}
-
-#mw-addcategory-prompt input {
-       margin-left: 0.5em;
-       margin-right: 0.5em;
-}
-
-.mw-remove-category {
-       padding: 8px;
-       /* @embed */
-       background-image: url(images/remove.png);
-       background-position: center center;
-       background-repeat: no-repeat;
-}
-
-.mw-ajax-addcategory {
-       padding-left: 20px;
-       /* @embed */
-       background-image: url(images/add.png);
-       background-position: left center;
-       background-repeat: no-repeat;
-}
-
 .mw-ajax-loader {
        /* @embed */
        background-image: url(images/ajax-loader.gif);
@@ -831,9 +795,23 @@ div.gallerytext {
        background-repeat: no-repeat;
 }
 
-/* Sort arrows added by SortableTables */
-a.sortheader {
-       margin: 0 0.3em;
+/* Language specific height correction for titles. Ref Bug 29405 and Bug 30809 */
+/* Languages like hi or ml require slightly more vertical space to show diacritics properly */
+h1:lang(hi),
+h1:lang(ml) {
+       line-height: 1.5em;
+}
+h2:lang(hi),
+h2:lang(ml),
+h3:lang(hi),
+h3:lang(ml),
+h4:lang(hi),
+h4:lang(ml),
+h5:lang(hi),
+h5:lang(ml),
+h6:lang(hi),
+h6:lang(ml) {
+       line-height: 1.2em;
 }
 
 /* Localised ordered list numbering for some languages */
@@ -852,26 +830,68 @@ ol:lang(ckb) li {
        list-style-type: arabic-indic;
 }
 
+ol:lang(as) li,
 ol:lang(bn) li {
        list-style-type: -moz-bengali;
        list-style-type: bengali;
 }
 
+ol:lang(or) li {
+       list-style-type: -moz-oriya;
+       list-style-type: oriya;
+}
+
+#toc ul, .toc ul {
+       margin: .3em 0;
+}
+
+/* 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;
+}
+/* @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;
+}
+/* @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;
+}
+
+#toc #toctitle,
+.toc #toctitle,
+#toc .toctitle,
+.toc .toctitle {
+       direction: ltr;
+}
+
 /* tooltip styles */
 .mw-help-field-hint {
        display: none;
-       padding: 0px;
-       padding-left: 15px;
        margin-left: 2px;
        margin-bottom: -8px;
+       padding: 0 0 0 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 */
@@ -902,7 +922,7 @@ ol:lang(bn) li {
 .tipsy-arrow {
        position: absolute;
        /* @embed */
-       background: url( 'images/tipsy-arrow.gif' ) no-repeat top left;
+       background: url(images/tipsy-arrow.gif) no-repeat top left;
        width: 13px;
        height: 13px;
 }
@@ -911,3 +931,79 @@ ol:lang(bn) li {
        right: 10px;
        background-position: 0% 100%;
 }
+
+/* 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;
+}
+
+/* bug 12205 */
+#mw-credits a {
+       unicode-bidi: embed;
+}
+
+/* Accessibility */
+.mw-jump {
+       overflow: hidden;
+       height: 0;
+       zoom: 1; /* http://webaim.org/techniques/skipnav/#iequirk */
+}
+