@@ -1146,11 +1146,16 @@ mark {
|
|||||||
.code-block[data-language=mermaidjs] {
|
.code-block[data-language=mermaidjs] {
|
||||||
margin: 0.75em 0;
|
margin: 0.75em 0;
|
||||||
|
|
||||||
pre {
|
${
|
||||||
border-bottom-left-radius: 0;
|
!props.staticHTML &&
|
||||||
border-bottom-right-radius: 0;
|
css`
|
||||||
margin-bottom: -20px;
|
pre {
|
||||||
overflow: hidden;
|
border-bottom-left-radius: 0;
|
||||||
|
border-bottom-right-radius: 0;
|
||||||
|
margin-bottom: -20px;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Hide code without display none so toolbar can still be positioned against it
|
// Hide code without display none so toolbar can still be positioned against it
|
||||||
@@ -1160,7 +1165,7 @@ mark {
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
// Allows the margin to collapse correctly by moving div out of the flow
|
// Allows the margin to collapse correctly by moving div out of the flow
|
||||||
position: absolute;
|
position: ${props.staticHTML ? "relative" : "absolute"};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user