4,456
edits
No edit summary |
No edit summary |
||
Line 1,398: | Line 1,398: | ||
var css = | var css = | ||
"@media print{" + | "@media print{" + | ||
// Paragraphs inside rich text | // 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: | // 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;}" + | ||
// Labels: zero their default margin, then add ONE spacer when following any ruled block | |||
' [class^="article-label-"]{margin-top:0!important;}' + | |||
// Labels: | // <<< NEW: spacer no matter which section precedes (handles skipped sections) | ||
" | ' .article-entry-number + [class^="article-label-"],' + | ||
' .link-pdf + [class^="article-label-"],' + | |||
' .article-type + [class^="article-label-"],' + | |||
' .article-metadata + [class^="article-label-"],' + | |||
' .article-images + [class^="article-label-"],' + | |||
' .article-description + [class^="article-label-"],' + | |||
' .article-reflection + [class^="article-label-"],' + | |||
' .article-external-reference + [class^="article-label-"],' + | |||
' .article-quote + [class^="article-label-"],' + | |||
' .article-mod-line + [class^="article-label-"]{margin-top:0.9mm!important;}' + | |||
" | // No gap between any label and its own body | ||
// No gap between | |||
" .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;}" + | ||
// Title/link row cleanup | |||
// Title/link row | |||
" .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;}" + |