mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-30 12:28:33 +08:00
bde7d1c624
* create english index file * tanslated the index * tanslated aside.md * adjust code format * translated aside-collapse.md * translated ceiling.md * translated top.md * translated top-aside.md
88 lines
1.8 KiB
Markdown
88 lines
1.8 KiB
Markdown
---
|
||
order: 3
|
||
title:
|
||
zh-CN: 吊顶规范
|
||
en-US: Ceiling
|
||
---
|
||
## zh-CN
|
||
|
||
吊顶一般用于跨系统/应用场景,可以放置统一的登录/帮助信息。
|
||
|
||
吊顶背景深色,高度 `30px`,和浅色调的主导航配合使用。
|
||
|
||
## en-US
|
||
|
||
Generally, ceiling is used for cross system/application, you can put uniform login/help information in it.
|
||
|
||
Background color of a ceiling is a deep color, height is `30px`, generally to be used with a light color mainnav.
|
||
|
||
````__react
|
||
import { Menu, Breadcrumb } from 'antd';
|
||
import BrowserDemo from 'site/theme/template/BrowserDemo';
|
||
|
||
ReactDOM.render(
|
||
<BrowserDemo>
|
||
<div className="layout-ceiling-demo">
|
||
<div className="layout-ceiling">
|
||
<div className="layout-wrapper">
|
||
<ul className="right">
|
||
<li>xxx@example.com</li>
|
||
<li>|</li>
|
||
<li>Help Center</li>
|
||
<li>|</li>
|
||
<li>Custom Service/Complaint Center phone:400-826-7710</li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
<div className="layout-header">
|
||
<div className="layout-wrapper">
|
||
<div className="layout-logo"></div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</BrowserDemo>
|
||
, mountNode);
|
||
````
|
||
|
||
````css
|
||
.layout-ceiling-demo {
|
||
height: 100%;
|
||
}
|
||
|
||
.layout-ceiling {
|
||
font-size: 12px;
|
||
height: 30px;
|
||
line-height: 30px;
|
||
background-color: #242736;
|
||
color: #ddd;
|
||
}
|
||
|
||
.layout-ceiling .right {
|
||
float: right;
|
||
}
|
||
|
||
.layout-ceiling ul li {
|
||
display: inline-block;
|
||
margin: 0 4px;
|
||
}
|
||
|
||
.layout-ceiling-demo .layout-wrapper {
|
||
padding: 0 50px;
|
||
}
|
||
|
||
.layout-ceiling-demo .layout-header {
|
||
background: #fff;
|
||
height: 64px;
|
||
border-bottom: 1px solid #e9e9e9;
|
||
}
|
||
|
||
.layout-ceiling-demo .layout-logo {
|
||
width: 120px;
|
||
height: 32px;
|
||
background: #eee;
|
||
border-radius: 4px;
|
||
margin: 16px 24px 16px 0;
|
||
float: left;
|
||
}
|
||
````
|