2016-08-03 10:39:20 +08:00
|
|
|
## zh-CN
|
2015-12-17 12:33:34 +08:00
|
|
|
|
2015-12-17 13:44:04 +08:00
|
|
|
用于容器顶部,需要一点额外的样式覆盖。
|
2015-12-17 12:33:34 +08:00
|
|
|
|
2016-08-03 10:39:20 +08:00
|
|
|
## en-US
|
|
|
|
|
|
|
|
Should be used at the top of container, needs to override styles.
|
|
|
|
|
2019-05-07 14:57:32 +08:00
|
|
|
```css
|
2020-04-28 11:16:01 +08:00
|
|
|
.card-container p {
|
|
|
|
margin: 0;
|
|
|
|
}
|
2020-05-30 18:28:25 +08:00
|
|
|
.card-container > .ant-tabs-card .ant-tabs-content {
|
2015-12-17 12:33:34 +08:00
|
|
|
height: 120px;
|
|
|
|
margin-top: -16px;
|
|
|
|
}
|
2020-05-30 18:28:25 +08:00
|
|
|
.card-container > .ant-tabs-card .ant-tabs-content > .ant-tabs-tabpane {
|
2016-09-18 10:12:21 +08:00
|
|
|
padding: 16px;
|
2021-01-30 19:39:02 +08:00
|
|
|
background: #fff;
|
2016-09-18 10:12:21 +08:00
|
|
|
}
|
2020-05-30 18:28:25 +08:00
|
|
|
.card-container > .ant-tabs-card > .ant-tabs-nav::before {
|
|
|
|
display: none;
|
2017-06-26 20:20:57 +08:00
|
|
|
}
|
2022-04-07 22:07:18 +08:00
|
|
|
.card-container > .ant-tabs-card .ant-tabs-nav-list > .ant-tabs-tab,
|
|
|
|
[data-theme='compact'] .card-container > .ant-tabs-card .ant-tabs-nav-list > .ant-tabs-tab {
|
2017-06-26 20:20:57 +08:00
|
|
|
background: transparent;
|
2021-01-30 19:39:02 +08:00
|
|
|
border-color: transparent;
|
2016-06-17 15:45:48 +08:00
|
|
|
}
|
2022-04-07 22:07:18 +08:00
|
|
|
.card-container > .ant-tabs-card .ant-tabs-nav-list > .ant-tabs-tab-active,
|
|
|
|
[data-theme='compact'] .card-container > .ant-tabs-card .ant-tabs-nav-list > .ant-tabs-tab-active {
|
2017-06-26 20:20:57 +08:00
|
|
|
background: #fff;
|
2021-01-30 19:39:02 +08:00
|
|
|
border-color: #fff;
|
2015-12-17 12:33:34 +08:00
|
|
|
}
|
2017-06-26 20:20:57 +08:00
|
|
|
#components-tabs-demo-card-top .code-box-demo {
|
|
|
|
padding: 24px;
|
2021-01-30 19:39:02 +08:00
|
|
|
overflow: hidden;
|
|
|
|
background: #f5f5f5;
|
2017-06-26 20:20:57 +08:00
|
|
|
}
|
2020-05-30 18:28:25 +08:00
|
|
|
[data-theme='compact'] .card-container > .ant-tabs-card .ant-tabs-content {
|
|
|
|
height: 120px;
|
|
|
|
margin-top: -8px;
|
|
|
|
}
|
2020-06-12 23:17:45 +08:00
|
|
|
[data-theme='dark'] .card-container > .ant-tabs-card .ant-tabs-tab {
|
2019-12-25 17:16:53 +08:00
|
|
|
background: transparent;
|
2021-01-30 19:39:02 +08:00
|
|
|
border-color: transparent;
|
2019-12-25 17:16:53 +08:00
|
|
|
}
|
2020-06-12 23:17:45 +08:00
|
|
|
[data-theme='dark'] #components-tabs-demo-card-top .code-box-demo {
|
2019-12-24 20:58:42 +08:00
|
|
|
background: #000;
|
|
|
|
}
|
2020-06-12 23:17:45 +08:00
|
|
|
[data-theme='dark'] .card-container > .ant-tabs-card .ant-tabs-content > .ant-tabs-tabpane {
|
2019-12-24 20:58:42 +08:00
|
|
|
background: #141414;
|
|
|
|
}
|
2020-06-12 23:17:45 +08:00
|
|
|
[data-theme='dark'] .card-container > .ant-tabs-card .ant-tabs-tab-active {
|
2019-12-24 20:58:42 +08:00
|
|
|
background: #141414;
|
2021-01-30 19:39:02 +08:00
|
|
|
border-color: #141414;
|
2019-12-24 20:58:42 +08:00
|
|
|
}
|
2020-06-12 23:17:45 +08:00
|
|
|
```
|