mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 11:10:01 +08:00
site(theme): demo block supports no inner margin configuration
ref: https://d.umijs.org/guide/write-demo#%E4%B8%8D%E9%9C%80%E8%A6%81%E5%86%85%E8%BE%B9%E8%B7%9D
This commit is contained in:
parent
665a738328
commit
ee2ff25796
@ -355,7 +355,7 @@ createRoot(document.getElementById('container')).render(<Demo />);
|
||||
|
||||
let codeBox = (
|
||||
<section className={codeBoxClass} id={meta.id}>
|
||||
<section className="code-box-demo">
|
||||
<section className="code-box-demo" data-compact={meta.compact}>
|
||||
<ErrorBoundary>
|
||||
<React.StrictMode>{this.liveDemo}</React.StrictMode>
|
||||
</ErrorBoundary>
|
||||
|
@ -40,6 +40,10 @@ export default () => {
|
||||
&,
|
||||
.code-box-demo {
|
||||
background-color: ${token.colorBgContainer};
|
||||
|
||||
&[data-compact] {
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.markdown {
|
||||
|
Loading…
Reference in New Issue
Block a user