Add $wgAllowUserCssPrefs option to disable CSS-based preferences. These are injected...
[lhc/web/wiklou.git] / skins / monobook / main.css
index 556f1d7..fedfca8 100644 (file)
@@ -17,7 +17,7 @@
 }
 #content {
        margin: 2.8em 0 0 12.2em;
-       padding: 0 1em 1.5em 1em;
+       padding: 0 1em 1em 1em;
        position: relative;
        z-index: 2;
 }
@@ -54,9 +54,6 @@ body {
        margin: 0;
        padding: 0;
 }
-.visualClear {
-       clear: both;
-}
 
 /* general styles */
 
@@ -67,6 +64,10 @@ table {
           floated tables */
        background-color: white;
 }
+fieldset table {
+       /* but keep table layouts in forms clean... */
+       background: none;
+}
 a {
        text-decoration: none;
        color: #002bb8;
@@ -85,7 +86,7 @@ a.stub {
        color: #772233;
 }
 a.new, #p-personal a.new {
-       color: #ba0000;
+       color: #cc2200;
 }
 a.new:visited, #p-personal a.new:visited {
        color: #a55858;
@@ -173,6 +174,10 @@ fieldset {
        padding: 0 1em 1em;
        line-height: 1.5em;
 }
+fieldset.nested {
+       margin: 0 0 0.5em 0;
+       padding: 0 0.5em 0.5em;
+}
 legend {
        padding: .5em;
        font-size: 95%;
@@ -252,8 +257,12 @@ span.subpages {
 #bodyContent h3, #bodyContent h4, #bodyContent h5 {
        margin-bottom: .3em;
 }
-.firstHeading {
+#firstHeading {
        margin-bottom: .1em;
+       /* These two rules hack around bug 2013 (fix for more limited bug 11325).
+          When bug 2013 is fixed properly, they should be removed. */
+       line-height: 1.2em;
+       padding-bottom: 0;
 }
 
 /* user notification thing */
@@ -269,41 +278,14 @@ span.subpages {
 #siteNotice {
        text-align: center;
        font-size: 95%;
-       padding: 0 .9em;
+       padding: 0 0.9em;
 }
 #siteNotice p {
        margin: 0;
        padding: 0;
 }
-.error {
-       color: red;
-       font-size: larger;
-}
-.errorbox, .successbox {
-       font-size: larger;
-       border: 2px solid;
-       padding: .5em 1em;
-       float: left;
-       margin-bottom: 2em;
-       color: #000;
-}
-.errorbox {
-       border-color: red;
-       background-color: #fff2f2;
-}
-.successbox {
-       border-color: green;
-       background-color: #dfd;
-}
-.errorbox h2, .successbox h2 {
-       font-size: 1em;
-       font-weight: bold;
-       display: inline;
-       margin: 0 .5em 0 0;
-       border: none;
-}
 
-#catlinks {
+.catlinks {
        border: 1px solid #aaa;
        background-color: #f9f9f9;
        padding: 5px;
@@ -494,30 +476,6 @@ table.rimage {
        padding: 5px;
        font-size: 95%;
 }
-div.townBox {
-       position: relative;
-       float: right;
-       background: white;
-       margin-left: 1em;
-       border: 1px solid gray;
-       padding: .3em;
-       width: 200px;
-       overflow: hidden;
-       clear: right;
-}
-div.townBox dl {
-       padding: 0;
-       margin: 0 0 .3em;
-       font-size: 96%;
-}
-div.townBox dl dt {
-       background: none;
-       margin: .4em 0 0;
-}
-div.townBox dl dd {
-       margin: .1em 0 0 1.1em;
-       background-color: #f3f3f3;
-}
 
 /*
 ** edit views etc
@@ -528,58 +486,42 @@ div.townBox dl dd {
        padding: 0;
 }
 
-/* Page history styling */
-/* the auto-generated edit comments */
-.autocomment {
-       color: gray;
-}
-#pagehistory span.user {
-       margin-left: 1.4em;
-       margin-right: .4em;
-}
-#pagehistory span.minor {
-       font-weight: bold;
-}
-#pagehistory li {
-       border: 1px solid white;
-}
-#pagehistory li.selected {
-       background-color: #f9f9f9;
-       border: 1px dashed #aaa;
-}
-
 /*
 ** keep the whitespace in front of the ^=, hides rule from konqueror
 ** this is css3, the validator doesn't like it when validating as css2
 */
 #bodyContent a.external,
-#bodyContent a[href ^="gopher://"] {
+#bodyContent a.external[href ^="gopher://"] {
        background: url(external.png) center right no-repeat;
-       padding-right: 13px;
+       padding: 0 13px;
 }
-#bodyContent a[href ^="https://"],
+.rtl #bodyContent a.external,
+.rtl #bodyContent a.external[href ^="gopher://"] {
+       background-image: url(external-rtl.png);
+}
+#bodyContent a.external[href ^="https://"],
 .link-https {
        background: url(lock_icon.gif) center right no-repeat;
-       padding-right: 16px;
+       padding: 0 16px;
 }
-#bodyContent a[href ^="mailto:"],
+#bodyContent a.external[href ^="mailto:"],
 .link-mailto {
        background: url(mail_icon.gif) center right no-repeat;
-       padding-right: 18px;
+       padding: 0 18px;
 }
-#bodyContent a[href ^="news://"] {
+#bodyContent a.external[href ^="news://"] {
        background: url(news_icon.png) center right no-repeat;
-       padding-right: 18px;
+       padding: 0 18px;
 }
-#bodyContent a[href ^="ftp://"],
+#bodyContent a.external[href ^="ftp://"],
 .link-ftp {
        background: url(file_icon.gif) center right no-repeat;
-       padding-right: 18px;
+       padding: 0 18px;
 }
-#bodyContent a[href ^="irc://"],
+#bodyContent a.external[href ^="irc://"],
 .link-irc {
        background: url(discussionitem_icon.gif) center right no-repeat;
-       padding-right: 18px;
+       padding: 0 18px;
 }
 #bodyContent a.external[href $=".ogg"], #bodyContent a.external[href $=".OGG"],
 #bodyContent a.external[href $=".mid"], #bodyContent a.external[href $=".MID"],
@@ -589,7 +531,7 @@ div.townBox dl dd {
 #bodyContent a.external[href $=".wma"], #bodyContent a.external[href $=".WMA"],
 .link-audio {
        background: url("audio.png") center right no-repeat;
-       padding-right: 13px;
+       padding: 0 13px;
 }
 #bodyContent a.external[href $=".ogm"], #bodyContent a.external[href $=".OGM"],
 #bodyContent a.external[href $=".avi"], #bodyContent a.external[href $=".AVI"],
@@ -597,32 +539,40 @@ div.townBox dl dd {
 #bodyContent a.external[href $=".mpg"], #bodyContent a.external[href $=".MPG"],
 .link-video {
        background: url("video.png") center right no-repeat;
-       padding-right: 13px;
+       padding: 0 13px;
 }
 #bodyContent a.external[href $=".pdf"], #bodyContent a.external[href $=".PDF"],
 #bodyContent a.external[href *=".pdf#"], #bodyContent a.external[href *=".PDF#"],
 #bodyContent a.external[href *=".pdf?"], #bodyContent a.external[href *=".PDF?"],
 .link-document {
        background: url("document.png") center right no-repeat;
-       padding-right: 12px;
+       padding: 0 12px;
+}
+
+/* for rtl wikis */
+.rtl #bodyContent a.external {
+       background-position: left;
+       padding-right: 0;
+}
+.rtl a.feedlink {
+       background-position: right;
+       padding-right: 16px;
+       padding-left: 0;
+}
+
+/* correction for ltr wikis */
+.ltr #bodyContent a.external {
+       padding-left: 0;
 }
 
 /* disable interwiki styling */
 #bodyContent a.extiw,
 #bodyContent a.extiw:active {
        color: #36b;
-       background: none;
-       padding: 0;
 }
 #bodyContent a.external {
        color: #36b;
 }
-/* this can be used in the content area to switch off
-special external link styling */
-#bodyContent .plainlinks a {
-       background: none !important;
-       padding: 0 !important;
-}
 /*
 ** Structural Elements
 */
@@ -742,7 +692,10 @@ input.searchButton {
        padding: .5em .4em .4em .4em;
        text-align: center;
 }
-
+#p-search #searchform div div {
+       margin-top: .4em;
+       font-size: 95%;
+}
 /*
 ** the personal toolbar
 */
@@ -919,15 +872,19 @@ li#ca-watch, li#ca-unwatch, li#ca-varlang-0, li#ca-print {
        text-transform: lowercase;
 }
 
-/*
-** the remaining portlets
-*/
-#p-tbx,
 #p-lang {
        position: relative;
        z-index: 3;
 }
 
+/* Override text-transform on languages where capitalization is significant */
+.capitalize-all-nouns .portlet h5,
+.capitalize-all-nouns .portlet h6,
+.capitalize-all-nouns #p-personal ul,
+.capitalize-all-nouns #p-cactions ul li a {
+       text-transform: none;
+}
+
 /* TODO: #t-iscite is only used by the Cite extension, come up with some
  * system which allows extensions to add to this file on the fly
  */
@@ -964,6 +921,13 @@ li#ca-watch, li#ca-unwatch, li#ca-varlang-0, li#ca-print {
        height: 1%;
 }
 
+.mw-htmlform-submit {
+       font-weight: bold;
+       padding-left: .3em;
+       padding-right: .3em;
+       margin-right: 2em;
+}
+
 /* js pref toc */
 #preftoc {
        margin: 0;
@@ -1013,10 +977,6 @@ li#ca-watch, li#ca-unwatch, li#ca-varlang-0, li#ca-print {
        cursor: default;
        text-decoration: none;
 }
-#prefcontrol {
-       padding-top: 2em;
-       clear: both;
-}
 #preferences {
        margin: 0;
        border: 1px solid #aaa;
@@ -1029,11 +989,7 @@ li#ca-watch, li#ca-unwatch, li#ca-varlang-0, li#ca-print {
        padding: 0;
        margin: 0;
 }
-.prefsection fieldset {
-       border: 1px solid #aaa;
-       float: left;
-       margin-right: 2em;
-}
+
 .prefsection legend {
        font-weight: bold;   
 }
@@ -1043,16 +999,11 @@ li#ca-watch, li#ca-unwatch, li#ca-varlang-0, li#ca-print {
 .mainLegend {
        display: none;
 }
-div.prefsectiontip {
+td.htmlform-tip {
        font-size: x-small;
        padding: .2em 2em;
        color: #666;
 }
-.btnSavePrefs {
-       font-weight: bold;
-       padding-left: .3em;
-       padding-right: .3em;
-}
 
 .preferences-login {
        clear: both;
@@ -1073,6 +1024,10 @@ div#userlogin form#userlogin2 {
        background-color: #f9f9f9;
        float: left;
 }
+.rtl div#userloginForm form,
+.rtl div#userlogin form#userlogin2 {
+       float: right;
+}
 
 div#userloginForm table,
 div#userlogin form#userlogin2 table {
@@ -1091,6 +1046,9 @@ div#userloginForm .captcha {
        background-color: white;
 }
 
+#loginend, #signupend {
+       clear: both;
+}
 
 #userloginprompt, #languagelinks {
        font-size: 85%;
@@ -1163,24 +1121,11 @@ div#userloginForm .captcha {
        display: none;
 }
 
-.not-patrolled {
-       background-color: #ffa;
-}
+
 div.patrollink {
-       font-size: 75%;
-       text-align: right;
-}
-span.newpage, span.minor, span.searchmatch, span.bot {
-       font-weight: bold;
-}
-span.unpatrolled {
-       font-weight: bold;
-       color: red;
+       clear: both;
 }
 
-span.searchmatch {
-       color: red;
-}
 .sharedUploadNotice {
        font-style: italic;
 }
@@ -1190,66 +1135,14 @@ span.updatedmarker {
        background-color: #0f0;
 }
 
-table.gallery {
-       border: 1px solid #ccc;
-       margin: 2px;
-       padding: 2px;
-       background-color: white;
-}
-
-table.gallery tr {
-       vertical-align: top;
-}
-
-table.gallery td {
-       vertical-align: top;
-       background-color: #f9f9f9;
-       border: solid 2px white;
-}
-/* Keep this temporarily so that cached pages will display right */
-table.gallery td.galleryheader {
-    text-align: center;
-       font-weight: bold;
-}
-table.gallery caption {
-       font-weight: bold;
-}
-
-div.gallerybox {
-       margin: 2px;
-}
-
-div.gallerybox div.thumb {
-       text-align: center;
-       border: 1px solid #ccc;
-       margin: 2px;
-}
-
-div.gallerytext {
-       overflow: hidden;
-       font-size: 94%;
-       padding: 2px 4px;
-}
-
-span.comment {
-       font-style: italic;
-}
-
-span.changedby {
-       font-size: 95%;
-}
-
 .previewnote {
-       text-indent: 3em;
        color: #c00;
-       border-bottom: 1px solid #aaa;
-       padding-bottom: 1em;
        margin-bottom: 1em;
 }
 
 .previewnote p {
-       margin: 0;
-       padding: 0;
+       text-indent: 3em;
+       margin: 0.8em 0;
 }
 
 .editExternally {
@@ -1271,69 +1164,6 @@ span.changedby {
        text-indent: -2em;
 }
 
-/* Classes for EXIF data display */
-table.mw_metadata {
-       font-size: 0.8em;
-       margin-left: 0.5em;
-       margin-bottom: 0.5em;
-       width: 300px;
-}
-
-table.mw_metadata caption {
-       font-weight: bold;
-}
-
-table.mw_metadata th {
-       font-weight: normal;
-}
-
-table.mw_metadata td {
-       padding: 0.1em;
-}
-
-table.mw_metadata {
-       border: none;
-       border-collapse: collapse;
-}
-
-table.mw_metadata td, table.mw_metadata th {
-       text-align: center;
-       border: 1px solid #aaaaaa;
-       padding-left: 0.1em;
-       padding-right: 0.1em;
-}
-
-table.mw_metadata th {
-       background-color: #f9f9f9;
-}
-
-table.mw_metadata td {
-       background-color: #fcfcfc;
-}
-
-table.collapsed tr.collapsable {
-       display: none;
-}
-
-
-/* filetoc */
-ul#filetoc {
-       text-align: center;
-       border: 1px solid #aaaaaa;
-       background-color: #f9f9f9;
-       padding: 5px;
-       font-size: 95%;
-       margin-bottom: 0.5em;
-       margin-left: 0;
-       margin-right: 0;
-}
-
-#filetoc li {
-       display: inline;
-       list-style-type: none;
-       padding-right: 2em;
-}
-
 input#wpSummary {
        width: 80%;
 }
@@ -1343,10 +1173,6 @@ input#wpSave, input#wpDiff {
        margin-right: 0.33em;
 }
 
-#editform .editOptions {
-       display: inline;
-}
-
 #wpSave {
        font-weight: bold;
 }
@@ -1375,32 +1201,6 @@ p.revision_saved {
        font-weight:bold;
 }
 
-#mw_trackbacks {
-       border: solid 1px #bbbbff;
-       background-color: #eeeeff;
-       padding: 0.2em;
-}
-
-
-/* Allmessages table */
-
-#allmessagestable th {
-       background-color: #b2b2ff;
-}
-
-#allmessagestable tr.orig {
-       background-color: #ffe2e2;
-}
-
-#allmessagestable tr.new {
-       background-color: #e2ffe2;
-}
-
-#allmessagestable tr.def {
-       background-color: #f0f0ff;
-}
-
-
 /* noarticletext */
 div.noarticletext {
        border: 1px solid #ccc;
@@ -1435,15 +1235,18 @@ div#searchTarget ul li:before {
 div#searchTargetHide {
        float:right;
        border:solid 1px black;
-       background:gainsboro;
+       background:#DCDCDC;
        padding:2px;
 }
 
+#powersearch p {
+       margin-top:0px;
+}
+
 div.multipageimagenavbox {
    border: solid 1px silver;
    padding: 4px;
    margin: 1em;
-   -moz-border-radius: 6px;
    background: #f0f0f0;
 }
 
@@ -1461,64 +1264,12 @@ table.multipageimage td {
    text-align: center;
 }
 
-/** Special:Version */
-
-table#sv-ext, table#sv-hooks, table#sv-software {
-       margin: 1em;
-       padding:0em;
-}
-
-#sv-ext td, #sv-hooks td, #sv-software td,
-#sv-ext th, #sv-hooks th, #sv-software th {
-       border: 1px solid #A0A0A0;
-       padding: 0 0.15em 0 0.15em;
-}
-#sv-ext th, #sv-hooks th, #sv-software th {
-       background-color: #F0F0F0;
-       color: black;
-       padding: 0 0.15em 0 0.15em;
-}
-tr.sv-space{
-       height: 0.8em;
-       border:none;
-}
-tr.sv-space td { display: none; }
-
-/*
-  Table pager (e.g. Special:Imagelist)
-  - 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_nav a { text-decoration: none; }
-.TablePager { border-collapse: collapse; }
-.TablePager, .TablePager td, .TablePager th { 
-       border: 1px solid #aaaaaa;
-       padding: 0 0.15em 0 0.15em;
-}
-.TablePager th { background-color: #eeeeff }
-.TablePager td { background-color: #ffffff }
-.TablePager tr:hover td { background-color: #eeeeff }
-
-.imagelist td, .imagelist th { white-space: nowrap }
-.imagelist .TablePager_col_links { background-color: #eeeeff }
-.imagelist .TablePager_col_img_description { white-space: normal }
-.imagelist th.TablePager_sort { background-color: #ccccff }
-
 .templatesUsed { margin-top: 1.5em; }
 
 .mw-summary-preview {
        margin: 0.1em 0;
 }
 
-/* Convenience links on Special:Ipblocklist */
-p.mw-ipb-conveniencelinks {
-       font-size: 90%;
-       float: right;
-}
-
 /* Friendlier slave lag warnings */
 div.mw-lag-warn-normal,
 div.mw-lag-warn-high {
@@ -1536,17 +1287,6 @@ div.mw-lag-warn-high {
        background-color: #FFCCCC;
 }
 
-/* Recreating-deleted-page/reupload file warning and log entries */
-div#mw-upload-deleted-warn,
-div#mw-recreate-deleted-warn {
-       padding: 3px;
-       margin-bottom: 3px;
-       border: 2px solid #2F6FAB;
-}
-div#mw-upload-deleted-warn ul li,
-div#mw-recreate-deleted-warn ul li {
-       font-size: 90%;
-}
 .MediaTransformError {
        background-color: #ccc;
        padding: 0.1em;
@@ -1556,3 +1296,13 @@ div#mw-recreate-deleted-warn ul li {
        vertical-align: middle;
        font-size: 90%;
 }
+
+/* God-damned hack for the crappy layout */
+.os-suggest {
+       font-size: 127%;
+}
+
+/* Sometimes people don't want personal tools to be lowercase! */
+.no-text-transform {
+       text-transform: none;
+}