notice: fix code in markdown alerts, take II #906

This commit is contained in:
Sören Weber 2024-09-11 21:01:56 +02:00
parent f696f60f4e
commit 5d7bdfcb33
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D

View file

@ -722,11 +722,13 @@ div.box > .box-content {
padding-right: 1rem; padding-right: 1rem;
} }
/* remove margin if only a single code block is contained in the tab */ /* 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; padding: 0;
} }
/* remove border from a code block if single */ /* 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; border: 0;
} }