Skip to content

Commit

Permalink
notice: fix code in markdown alerts, take II #906
Browse files Browse the repository at this point in the history
  • Loading branch information
McShelby committed Sep 11, 2024
1 parent f696f60 commit 5d7bdfc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions static/css/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -722,11 +722,13 @@ div.box > .box-content {
padding-right: 1rem;
}
/* remove margin if only a single code block is contained in the tab */
#R-body .box-content:has(> div.highlight:only-of-type){
#R-body .box-content:not(:has(> p)):has(> div[class*="highlight"]:only-of-type),
#R-body .box-content:has(> p:empty):has(> div[class*="highlight"]:only-of-type){
padding: 0;
}
/* remove border from a code block if single */
#R-body .box-content > div.highlight:only-of-type > pre{
#R-body .box-content:not(:has(> p)) > div[class*="highlight"]:only-of-type > pre,
#R-body .box-content:has(> p:empty) > div[class*="highlight"]:only-of-type > pre{
border: 0;
}

Expand Down

0 comments on commit 5d7bdfc

Please sign in to comment.