X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=skins%2Fcommon%2Fshared.css;h=3172779ef88e79de010b8e5bae9d88e72081dcb0;hb=64e9ccb8d355f89bfddb4eda6900f8039f0febac;hp=04afcce7d8d0966b6a35feaba9a08d1077df2f12;hpb=bdf825cae85274175fad12195d640f1afc8d8135;p=lhc%2Fweb%2Fwiklou.git diff --git a/skins/common/shared.css b/skins/common/shared.css index 04afcce7d8..3172779ef8 100644 --- a/skins/common/shared.css +++ b/skins/common/shared.css @@ -52,22 +52,11 @@ input[dir="rtl"] { direction: rtl; } -/* 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; + border-bottom: 1px dotted; cursor: help; } @@ -141,7 +130,6 @@ div#mw-js-message { .editsection { float: right; margin-left: 5px; - unicode-bidi: embed; } /* Correct directionality when page dir is different from site/user dir */ .mw-content-ltr .editsection, @@ -160,9 +148,9 @@ div#mw-js-message { */ div.mw-filepage-resolutioninfo { - font-size: smaller; + font-size: smaller; } - + /** * File histories */ @@ -250,7 +238,7 @@ td.mw-submit { } table.mw-htmlform-nolabel td.mw-label { - width: 0 !important; + width: 1px; } tr.mw-htmlform-vertical-label td.mw-label { @@ -260,7 +248,8 @@ tr.mw-htmlform-vertical-label td.mw-label { .mw-htmlform-invalid-input td.mw-input input { border-color: red; } -.mw-htmlform-multiselect-flatlist div.mw-htmlform-multiselect-item { + +.mw-htmlform-flatlist div.mw-htmlform-flatlist-item { display: inline; margin-right: 1em; white-space: nowrap; @@ -283,9 +272,17 @@ input#wpSummary { /** * Categories */ +#catlinks { + /** + * Overrides text justification (user preference) + * See bug 31990 + */ + text-align: left; +} .catlinks ul { display: inline; - margin: 0px; + margin: 0; + padding: 0; list-style: none; list-style-type: none; list-style-image: none; @@ -294,16 +291,16 @@ input#wpSummary { .catlinks li { display: inline-block; - line-height: 1.35em; - padding: 0 .7em; + line-height: 1.25em; border-left: 1px solid #AAA; - margin: 0.3em 0; + margin: 0.125em 0; + padding: 0 0.5em; zoom: 1; display: inline !ie; } .catlinks li:first-child { - padding-left: .4em; + padding-left: 0.25em; border-left: none; } /** @@ -333,11 +330,10 @@ p.mw-revdel-editreasons { 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; @@ -357,9 +353,7 @@ table.os-suggest-results { .os-suggest-result-hl { white-space: nowrap; background-color: white; - background-color: Window; color: black; - color: WindowText; padding: 2px; } .os-suggest-result-hl, @@ -367,13 +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; @@ -382,8 +369,8 @@ table.os-suggest-results { } .os-suggest-toggle-def { position: absolute; - top: 0px; - left: 0px; + top: 0; + left: 0; font-size: 65%; visibility: hidden; } @@ -415,8 +402,8 @@ table.os-suggest-results { /** Generic minor/bot/newpage styling (recent changes) */ .newpage, -.minor, -.bot { +.minoredit, +.botedit { font-weight: bold; } @@ -460,7 +447,7 @@ 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; } @@ -477,26 +464,30 @@ a.feedlink { 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 { +table.wikitable > tr > th, +table.wikitable > tr > td, +table.wikitable > * > tr > th, +table.wikitable > * > tr > td { border: 1px #aaa solid; padding: 0.2em; } -.wikitable th { - background: #f2f2f2; +table.wikitable > tr > th, +table.wikitable > * > tr > th { + background-color: #f2f2f2; text-align: center; } -.wikitable caption { +table.wikitable > caption { font-weight: bold; } @@ -718,13 +709,13 @@ table.mw_metadata ul.metadata-langlist { .mw-content-ltr ul, .mw-content-rtl .mw-content-ltr ul { /* @noflip */ - margin: 0.3em 0 0 1.5em; + margin: 0.3em 0 0 1.6em; padding: 0; } .mw-content-rtl ul, .mw-content-ltr .mw-content-rtl ul { /* @noflip */ - margin: 0.3em 1.5em 0 0; + margin: 0.3em 1.6em 0 0; padding: 0; } .mw-content-ltr ol, @@ -739,6 +730,18 @@ table.mw_metadata ul.metadata-langlist { margin: 0.3em 3.2em 0 0; padding: 0; } +/* @noflip */ +.mw-content-ltr dd, +.mw-content-rtl .mw-content-ltr dd { + margin-left: 1.6em; + margin-right: 0; +} +/* @noflip */ +.mw-content-rtl dd, +.mw-content-ltr .mw-content-rtl dd { + margin-right: 1.6em; + margin-left: 0; +} /* Galleries */ /* These display attributes look nonsensical, but are needed to support IE and FF2 */ @@ -750,16 +753,16 @@ li.gallerybox { display: inline-block; } -ul.gallery { - margin: 2px; - padding: 2px; - display: inline-block; -} - ul.gallery, li.gallerybox { zoom: 1; - display: inline !ie; + *display: inline; +} + +ul.gallery { + margin: 2px; + padding: 2px; + display: block; } li.gallerycaption { @@ -807,6 +810,41 @@ div.gallerytext { background-repeat: no-repeat; } +/* 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(as), +h1:lang(bh), /* Macrolanguage, used on bh.wikipedia.org, should be removed one day */ +h1:lang(bho), +h1:lang(bn), +h1:lang(gu), +h1:lang(hi), +h1:lang(kn), +h1:lang(ml), +h1:lang(mr), +h1:lang(or), +h1:lang(pa), +h1:lang(sa), +h1:lang(ta), +h1:lang(te) { + line-height: 1.5em !important; +} +h2:lang(as), h3:lang(as), h4:lang(as), h5:lang(as), h6:lang(as), +h2:lang(bho), h3:lang(bho), h4:lang(bho), h5:lang(bho), h6:lang(bho), +h2:lang(bh), h3:lang(bh), h4:lang(bh), h5:lang(bh), h6:lang(bh), +h2:lang(bn), h3:lang(bn), h4:lang(bn), h5:lang(bn), h6:lang(bn), +h2:lang(gu), h3:lang(gu), h4:lang(gu), h5:lang(gu), h6:lang(gu), +h2:lang(hi), h3:lang(hi), h4:lang(hi), h5:lang(hi), h6:lang(hi), +h2:lang(kn), h3:lang(kn), h4:lang(kn), h5:lang(kn), h6:lang(kn), +h2:lang(ml), h3:lang(ml), h4:lang(ml), h5:lang(ml), h6:lang(ml), +h2:lang(mr), h3:lang(mr), h4:lang(mr), h5:lang(mr), h6:lang(mr), +h2:lang(or), h3:lang(or), h4:lang(or), h5:lang(or), h6:lang(or), +h2:lang(pa), h3:lang(pa), h4:lang(pa), h5:lang(pa), h6:lang(pa), +h2:lang(sa), h3:lang(sa), h4:lang(sa), h5:lang(sa), h6:lang(sa), +h2:lang(ta), h3:lang(ta), h4:lang(ta), h5:lang(ta), h6:lang(ta), +h2:lang(te), h3:lang(te), h4:lang(te), h5:lang(te), h6:lang(te) { + line-height: 1.2em; +} + /* Localised ordered list numbering for some languages */ ol:lang(bcc) li, ol:lang(bqi) li, @@ -823,6 +861,12 @@ ol:lang(ckb) li { list-style-type: arabic-indic; } +ol:lang(hi) li, +ol:lang(mr) li { + list-style-type: -moz-devanagari; + list-style-type: devanagari; +} + ol:lang(as) li, ol:lang(bn) li { list-style-type: -moz-bengali; @@ -864,12 +908,19 @@ ol:lang(or) li { margin: 0 2em 0 0; } +#toc #toctitle, +.toc #toctitle, +#toc .toctitle, +.toc .toctitle { + direction: ltr; +} + /* tooltip styles */ .mw-help-field-hint { display: none; margin-left: 2px; margin-bottom: -8px; - padding: 0px 0px 0px 15px; + padding: 0 0 0 15px; /* @embed */ background-image: url('images/help-question.gif'); background-position: left center; @@ -917,27 +968,6 @@ ol:lang(or) li { right: 10px; background-position: 0% 100%; } -/* Table Sorting */ -th.headerSort { - background-image: url(images/sort_both.gif); - cursor: pointer; - background-repeat: no-repeat; - background-position: center right; - padding-right: 21px; -} -th.headerSortUp { - background-image: url(images/sort_up.gif); -} -th.headerSortDown { - background-image: url(images/sort_down.gif); -} - -/* LTR content in RTL layout */ -.ltr { - /* @noflip */ - direction: ltr; - unicode-bidi: embed; -} #mw-clearyourcache, #mw-sitecsspreview, @@ -970,8 +1000,10 @@ th.headerSortDown { } #mw-revision-info, +#mw-revision-info-current, #mw-revision-nav { direction: ltr; + display: inline; } /* Images */ @@ -999,3 +1031,29 @@ table.floatleft { #mw-credits a { unicode-bidi: embed; } + +/* Accessibility */ +.mw-jump, +#jump-to-nav { + overflow: hidden; + height: 0; + zoom: 1; /* http://webaim.org/techniques/skipnav/#iequirk */ +} + +/* Print footer should be hidden by default in screen. */ +.printfooter { + display: none; +} + +/* For developpers */ +.xdebug-error { + position: absolute; + z-index: 99; +} + +.editsection, .toctoggle { + -moz-user-select: none; + -webkit-user-select: none; + -ms-user-select: none; + user-select: none; +}