Skip to content

Commit

Permalink
hide empty p before container
Browse files Browse the repository at this point in the history
  • Loading branch information
silverwind committed Apr 2, 2024
1 parent 8ae1fc7 commit ab87eef
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions web_src/css/markup/codepreview.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@
margin: 0; /* override ".markup table {margin}" */
}

/* workaround to hide empty p before container - https://github.com/go-gitea/gitea/pull/30234#issuecomment-2032521488 */
.markup p:empty:has(+ .code-preview-container) {
display: none;
}

/* override the polluted styles from the content.css: ".markup table ..." */
.markup .code-preview-container table tr {
border: 0 !important;
Expand Down

0 comments on commit ab87eef

Please sign in to comment.