Revert "site(theme): demo block supports no inner margin configuration"

This reverts commit ee2ff25796.
This commit is contained in:
wuxh 2022-12-22 15:13:37 +08:00
parent b1db3089a0
commit 5eac19e7f2
No known key found for this signature in database
GPG Key ID: 464F03149513C20C
2 changed files with 1 additions and 5 deletions

View File

@ -355,7 +355,7 @@ createRoot(document.getElementById('container')).render(<Demo />);
let codeBox = (
<section className={codeBoxClass} id={meta.id}>
<section className="code-box-demo" data-compact={meta.compact}>
<section className="code-box-demo">
<ErrorBoundary>
<React.StrictMode>{this.liveDemo}</React.StrictMode>
</ErrorBoundary>

View File

@ -40,10 +40,6 @@ export default () => {
&,
.code-box-demo {
background-color: ${token.colorBgContainer};
&[data-compact] {
padding: 0;
}
}
.markdown {