Skip to content

Commit

Permalink
Fix #3704 — remove harmful reST styles for paragraphs
Browse files Browse the repository at this point in the history
  • Loading branch information
Kwpolska committed Aug 5, 2023
1 parent 65f362e commit 2b10e99
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Features
Bugfixes
--------

* Fix margins of paragraphs at the end of sections (Issue #3704)
* Ignore ``.DS_Store`` files in listing indexes (Issue #3698)
* Fix baguetteBox.js invoking in the base theme (Issue #3687)

Expand Down
3 changes: 2 additions & 1 deletion nikola/data/themes/base/assets/css/rst_base.css
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,11 @@ span.problematic {
margin-top: 0;
margin-bottom: 0;
}
/* Nested Paragraphs */
/* Nested Paragraphs
p:first-child { margin-top: 0; }
p:last-child { margin-bottom: 0; }
details > p:last-child { margin-bottom: 1em; }
*/

/* Table of Contents */
.contents ul.auto-toc { /* section numbers present */
Expand Down

0 comments on commit 2b10e99

Please sign in to comment.