MediaWiki:Common.js: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 1,398: Line 1,398:
           var css =
           var css =
             "@media print{" +
             "@media print{" +
             // Paragraphs inside rich text: no big UA margins, tiny rhythm
             // Paragraphs inside rich text
             "  .article-description p,.article-reflection p,.article-external-reference p,.article-quote p{margin:0 0 1.2mm!important;}" +
             "  .article-description p,.article-reflection p,.article-external-reference p,.article-quote p{margin:0 0 1.2mm!important;}" +
             "  .article-description p:last-child,.article-reflection p:last-child,.article-external-reference p:last-child,.article-quote p:last-child{margin-bottom:0!important;}" +
             "  .article-description p:last-child,.article-reflection p:last-child,.article-external-reference p:last-child,.article-quote p:last-child{margin-bottom:0!important;}" +
             // Ruled sections: keep only tiny space for the hairline
             // Ruled sections: one consistent bottom padding for the hairline
             "  .article-entry-number,.link-pdf,.article-type,.article-metadata,.article-images,.article-description,.article-reflection,.article-external-reference,.article-quote,.article-mod-line{" +
             "  .article-entry-number,.link-pdf,.article-type,.article-metadata,.article-images,.article-description,.article-reflection,.article-external-reference,.article-quote,.article-mod-line{padding-bottom:1mm!important;}" +
            "    padding-bottom:1mm!important;" +
             // Labels: zero their default margin, then add ONE spacer when following any ruled block
            "  }" +
             '  [class^="article-label-"]{margin-top:0!important;}' +
             // Labels: reset default top margin, then add ONE small spacer when following any ruled block
             // <<< NEW: spacer no matter which section precedes (handles skipped sections)
             " .article-label-description,.article-label-reflection,.article-label-external-reference,.article-label-quote,.article-label-modification-date{margin-top:0!important;}" +
            ' .article-entry-number + [class^="article-label-"],' +
             " .article-entry-number + .article-label-description," +
             ' .link-pdf + [class^="article-label-"],' +
             " .link-pdf + .article-label-description," +
             ' .article-type + [class^="article-label-"],' +
             " .article-type + .article-label-description," +
             ' .article-metadata + [class^="article-label-"],' +
             " .article-metadata + .article-label-description," +
             ' .article-images + [class^="article-label-"],' +
             " .article-images + .article-label-description," +
             ' .article-description + [class^="article-label-"],' +
             " .article-description + .article-label-reflection," +
             ' .article-reflection + [class^="article-label-"],' +
             " .article-reflection + .article-label-external-reference," +
             ' .article-external-reference + [class^="article-label-"],' +
             " .article-external-reference + .article-label-quote," +
             ' .article-quote + [class^="article-label-"],' +
             " .article-quote + .article-label-modification-date{" +
             '  .article-mod-line + [class^="article-label-"]{margin-top:0.9mm!important;}' +
             "   margin-top:0.9mm!important;" /* tweak this ONE value to taste */ +
             // No gap between any label and its own body
            "  }" +
             // No gap between a label and its own body
             "  .article-label-description + .article-description," +
             "  .article-label-description + .article-description," +
             "  .article-label-reflection + .article-reflection," +
             "  .article-label-reflection + .article-reflection," +
Line 1,424: Line 1,422:
             "  .article-label-quote + .article-quote," +
             "  .article-label-quote + .article-quote," +
             "  .article-label-modification-date + .article-modification-date{margin-top:0!important;}" +
             "  .article-label-modification-date + .article-modification-date{margin-top:0!important;}" +
            // Metadata grid: avoid bottom gap
             // Title/link row cleanup
            "  .article-metadata{margin-bottom:0!important;}" +
             // Title/link row: avoid extra gap from inner elements
             "  .article-title-link{margin:0!important;padding:0!important;}" +
             "  .article-title-link{margin:0!important;padding:0!important;}" +
             "  .article-title-link > *{margin:0!important;}" +
             "  .article-title-link > *{margin:0!important;}" +

Navigation menu