From 187860bdedce8b591a3999e8ceee5389b6cbaf5e Mon Sep 17 00:00:00 2001 From: Beowulf Date: Tue, 11 Jun 2024 03:34:21 +0000 Subject: [PATCH] Fix margin above headline in rendered org-mode (#4076) This Fixes #3962 by adding `!important` to the margin of the heading in the rendered markdown. In the current behaviour, the margin-top was always overridden by a global css-rule. This is prevented by this change. Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/4076 Reviewed-by: 0ko <0ko@noreply.codeberg.org> Co-authored-by: Beowulf Co-committed-by: Beowulf --- release-notes/7.0.4/fix/4076.md | 1 + web_src/css/markup/content.css | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 release-notes/7.0.4/fix/4076.md diff --git a/release-notes/7.0.4/fix/4076.md b/release-notes/7.0.4/fix/4076.md new file mode 100644 index 000000000..f84425df5 --- /dev/null +++ b/release-notes/7.0.4/fix/4076.md @@ -0,0 +1 @@ +Fixed: headlines in rendered org-mode do not have a margin on the top diff --git a/web_src/css/markup/content.css b/web_src/css/markup/content.css index cb7823c05..947480a7e 100644 --- a/web_src/css/markup/content.css +++ b/web_src/css/markup/content.css @@ -72,7 +72,7 @@ .markup h4, .markup h5, .markup h6 { - margin-top: 24px; + margin-top: 24px !important; margin-bottom: 16px; font-weight: var(--font-weight-semibold); line-height: 1.25;