User:Barto/common.css

/** * Fixing whitespace using css instead of double blank lines. * Empty paragraphs are deleted using $\href{common.js}{\text{user:barto/common.js}}$ * Done only on namespaces Main, ProofWiki, Help, Axiom, Definition * - */ /** topmargin of H2 * 1em default * 1em p lineheight * 2x 7px p vertical margin */ .action-view.ns-0 h2:not(:first-of-type), .action-view.ns-4 h2:not(:first-of-type), .action-view.ns-12 h2:not(:first-of-type), .action-view.ns-100 h2:not(:first-of-type), .action-view.ns-102 h2:not(:first-of-type) { margin-top: 2.625em; }

/** topmargin of H3 * 0.225em default * 1em p lineheight * 2x 7px p vertical margin */ .action-view.ns-0 h3, .action-view.ns-4 h3, .action-view.ns-12 h3, .action-view.ns-100 h3, .action-view.ns-102 h3 { margin-top: 1.850em; } /* Small margin if the h3 directly follows a h2 */ .action-view.ns-0 h2 + h3, .action-view.ns-4 h2 + h3, .action-view.ns-12 h2 + h3, .action-view.ns-100 h2 + h3, .action-view.ns-102 h2 + h3 { margin-top: 0.225em; } /** Small margin if they are transcluded definitions on an equivalence proof page. * Needs JQuery. See User:Bart/common.js. Since it does, maybe it's a convention to abandon. */ /** topmargin of H4 * 0.188em default * 1em p lineheight * 2x 7px p vertical margin */ .action-view.ns-0 h4, .action-view.ns-4 h4, .action-view.ns-12 h4, .action-view.ns-100 h4, .action-view.ns-102 h4 { margin-top: 1.813em; } /* But not if the h3 directly follows a h2 or h3 */ .action-view.ns-0 h2 + h4, .action-view.ns-0 h3 + h4, .action-view.ns-4 h2 + h4, .action-view.ns-4 h3 + h4, .action-view.ns-12 h2 + h4, .action-view.ns-12 h3 + h4, .action-view.ns-100 h2 + h4, .action-view.ns-100 h3 + h4, .action-view.ns-102 h2 + h4, .action-view.ns-102 h3 + h4 { margin-top: 0.188em; }