🎬 update card demo

This commit is contained in:
afc163 2020-05-28 15:49:35 +08:00
parent 56c42e496b
commit e3ac222fd3
2 changed files with 0 additions and 21 deletions

View File

@ -340,11 +340,6 @@ exports[`renders ./components/card/demo/inner.md correctly 1`] = `
<div
class="ant-card-body"
>
<p
class="site-card-demo-inner-p"
>
Group title
</p>
<div
class="ant-card ant-card-bordered ant-card-type-inner"
>

View File

@ -18,7 +18,6 @@ import { Card } from 'antd';
ReactDOM.render(
<Card title="Card title">
<p className="site-card-demo-inner-p">Group title</p>
<Card type="inner" title="Inner Card title" extra={<a href="#">More</a>}>
Inner Card content
</Card>
@ -34,18 +33,3 @@ ReactDOM.render(
mountNode,
);
```
```css
.site-card-demo-inner-p {
font-size: 14px;
color: rgba(0, 0, 0, 0.85);
margin-bottom: 16px;
font-weight: 500;
}
```
<style>
[data-theme="dark"] .site-card-demo-inner-p {
color: rgba(255,255,255,.85);
}
</style>