User:Barto/common.css

/** * Fixing whitespace using css instead of double blank lines. * Empty paragraphs are deleted using User:Barto/common.js * - */ /** topmargin of H2 on Proof, Axiom and Definition namespaces: * 1em default * 1em p lineheight * 2x 7px p vertical margin */ .action-view.ns-0 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 on Proof, Axiom and Definition namespaces: * 0.225em default * 1em p lineheight * 2x 7px p vertical margin */ .action-view.ns-0 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-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 on Proof, Axiom and Definition namespaces: * 0.188em default * 1em p lineheight * 2x 7px p vertical margin */ .action-view.ns-0 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-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; }