ant-design/docs/spec/layout/demo/ceiling.md

79 lines
1.5 KiB
Markdown
Raw Normal View History

2016-03-31 09:40:55 +08:00
---
order: 3
title: 吊顶规范
---
2015-12-11 23:28:30 +08:00
吊顶一般用于跨系统/应用场景,可以放置统一的登录/帮助信息。
吊顶背景深色,高度 `30px`,和浅色调的主导航配合使用。
2017-01-19 15:19:03 +08:00
````__react
2015-12-11 23:28:30 +08:00
import { Menu, Breadcrumb } from 'antd';
import BrowserDemo from 'site/theme/template/BrowserDemo';
2015-12-11 23:28:30 +08:00
ReactDOM.render(
<BrowserDemo>
2016-12-23 17:58:37 +08:00
<div className="layout-ceiling-demo">
<div className="layout-ceiling">
<div className="layout-wrapper">
2015-12-11 23:28:30 +08:00
<ul className="right">
<li>xxx@example.com</li>
<li>|</li>
<li>帮助中心</li>
<li>|</li>
<li>客服/投诉电话400-826-7710</li>
</ul>
</div>
</div>
2016-12-23 17:58:37 +08:00
<div className="layout-header">
<div className="layout-wrapper">
<div className="layout-logo"></div>
2015-12-11 23:28:30 +08:00
</div>
</div>
</div>
</BrowserDemo>
2016-01-08 18:10:58 +08:00
, mountNode);
2015-12-11 23:28:30 +08:00
````
````css
2016-12-23 17:58:37 +08:00
.layout-ceiling-demo {
2015-12-11 23:28:30 +08:00
height: 100%;
}
2016-12-23 17:58:37 +08:00
.layout-ceiling {
2015-12-11 23:28:30 +08:00
font-size: 12px;
height: 30px;
line-height: 30px;
background-color: #242736;
color: #ddd;
}
2016-12-23 17:58:37 +08:00
.layout-ceiling .right {
2015-12-11 23:28:30 +08:00
float: right;
}
2016-12-23 17:58:37 +08:00
.layout-ceiling ul li {
2015-12-11 23:28:30 +08:00
display: inline-block;
margin: 0 4px;
}
2016-12-23 17:58:37 +08:00
.layout-ceiling-demo .layout-wrapper {
2015-12-11 23:28:30 +08:00
padding: 0 50px;
}
2016-12-23 17:58:37 +08:00
.layout-ceiling-demo .layout-header {
2015-12-11 23:28:30 +08:00
background: #fff;
height: 64px;
2016-12-23 17:58:37 +08:00
border-bottom: 1px solid #e9e9e9;
2015-12-11 23:28:30 +08:00
}
2016-12-23 17:58:37 +08:00
.layout-ceiling-demo .layout-logo {
2015-12-11 23:28:30 +08:00
width: 120px;
height: 32px;
background: #eee;
2016-12-23 17:58:37 +08:00
border-radius: 4px;
margin: 16px 24px 16px 0;
2015-12-11 23:28:30 +08:00
float: left;
}
````