mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 06:03:38 +08:00
update page style
This commit is contained in:
parent
f267d4fda7
commit
c3e404f6ea
@ -1,7 +1,8 @@
|
|||||||
# 设计模式
|
# 典型页面
|
||||||
|
|
||||||
- category: 0
|
- category: 0
|
||||||
- order: 0
|
- order: 0
|
||||||
|
- disabled: true
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
9
docs/practice/bussiness.md
Normal file
9
docs/practice/bussiness.md
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
# 业务组件
|
||||||
|
|
||||||
|
- category: 1
|
||||||
|
- order: 1
|
||||||
|
- disabled: true
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
占位。
|
@ -1,4 +1,4 @@
|
|||||||
# 实践
|
# 实践案例
|
||||||
|
|
||||||
- category: 0
|
- category: 0
|
||||||
- order: 0
|
- order: 0
|
@ -1,6 +1,7 @@
|
|||||||
# 资源下载
|
# 资源下载
|
||||||
|
|
||||||
- category: 资源
|
- order: 0
|
||||||
|
- category: 0
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
8
docs/resource/reference.md
Normal file
8
docs/resource/reference.md
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
# 相关书籍
|
||||||
|
|
||||||
|
- order: 1
|
||||||
|
- category: 1
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
待补充。
|
@ -93,9 +93,13 @@ InstantClickChangeFns.push(function() {
|
|||||||
var nextLink = links[currentLinkIndex + 1];
|
var nextLink = links[currentLinkIndex + 1];
|
||||||
if (prevLink) {
|
if (prevLink) {
|
||||||
prevNextNavNode.append('<a class="prev-page" href="' + prevLink.href + '">' + prevLink.innerHTML + '</a>');
|
prevNextNavNode.append('<a class="prev-page" href="' + prevLink.href + '">' + prevLink.innerHTML + '</a>');
|
||||||
|
} else {
|
||||||
|
prevNextNavNode.append('<span class="prev-page"></span>');
|
||||||
}
|
}
|
||||||
if (nextLink) {
|
if (nextLink) {
|
||||||
prevNextNavNode.append('<a class="next-page" href="' + nextLink.href + '">' + nextLink.innerHTML + '</a>');
|
prevNextNavNode.append('<a class="next-page" href="' + nextLink.href + '">' + nextLink.innerHTML + '</a>');
|
||||||
|
} else {
|
||||||
|
prevNextNavNode.append('<span class="next-page"></span>');
|
||||||
}
|
}
|
||||||
prevNextNavNode.appendTo('.main-container');
|
prevNextNavNode.appendTo('.main-container');
|
||||||
}
|
}
|
||||||
@ -121,6 +125,9 @@ InstantClickChangeFns.push(function() {
|
|||||||
var navFunc = {
|
var navFunc = {
|
||||||
navStrArr: [],
|
navStrArr: [],
|
||||||
init: function() {
|
init: function() {
|
||||||
|
if (this.navBar) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
this.navBox = $(".nav");
|
this.navBox = $(".nav");
|
||||||
this.navBar = this.navBox.find(".bar");
|
this.navBar = this.navBox.find(".bar");
|
||||||
this.navList = this.navBox.find("ul li");
|
this.navList = this.navBox.find("ul li");
|
||||||
|
@ -214,7 +214,6 @@ a.nav-link-disabled {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.nav .bar {
|
.nav .bar {
|
||||||
width: 20%;
|
|
||||||
height: 3px;
|
height: 3px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
@ -485,16 +484,15 @@ footer ul li > a {
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
padding: 24px 0 0;
|
padding: 24px 0 0;
|
||||||
margin-bottom: 24px;
|
margin-bottom: 24px;
|
||||||
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
.main-container {
|
.main-container {
|
||||||
border-left: 1px solid #e9e9e9;
|
border-left: 1px solid #e9e9e9;
|
||||||
margin-left: 260px;
|
margin-left: 259px;
|
||||||
padding: 0 40px 120px;
|
padding: 0 40px 120px;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
min-height: 500px;
|
min-height: 500px;
|
||||||
position: relative;
|
|
||||||
left: -1px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.main-container-center {
|
.main-container-center {
|
||||||
@ -660,19 +658,21 @@ footer ul li > a {
|
|||||||
left: 0;
|
left: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
border-top: 1px solid #e9e9e9;
|
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
|
padding-left: 260px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.prev-next-nav > a {
|
.prev-next-nav > .prev-page,
|
||||||
|
.prev-next-nav > .next-page {
|
||||||
padding: 0 24px;
|
padding: 0 24px;
|
||||||
width: 50%;
|
width: 50%;
|
||||||
float: left;
|
float: left;
|
||||||
line-height: 72px;
|
line-height: 72px;
|
||||||
height: 72px;
|
height: 72px;
|
||||||
|
border-top: 1px solid #e9e9e9;
|
||||||
}
|
}
|
||||||
|
|
||||||
.prev-next-nav > .prev-page:before {
|
.prev-next-nav > a.prev-page:before {
|
||||||
font-family: 'anticon';
|
font-family: 'anticon';
|
||||||
content: '\e601';
|
content: '\e601';
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
@ -684,7 +684,7 @@ footer ul li > a {
|
|||||||
float: right;
|
float: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
.prev-next-nav > .next-page:after {
|
.prev-next-nav > a.next-page:after {
|
||||||
font-family: 'anticon';
|
font-family: 'anticon';
|
||||||
content: '\e600';
|
content: '\e600';
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
@ -697,6 +697,8 @@ footer ul li > a {
|
|||||||
right: 4%;
|
right: 4%;
|
||||||
margin-right: 24px;
|
margin-right: 24px;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
|
background: #fff;
|
||||||
|
z-index: 100;
|
||||||
}
|
}
|
||||||
|
|
||||||
.toc li > ul {
|
.toc li > ul {
|
||||||
@ -2160,20 +2162,10 @@ a.entry-link:hover .anticon-smile {
|
|||||||
.demos-anchor {
|
.demos-anchor {
|
||||||
color: #aaa;
|
color: #aaa;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 100px;
|
margin-right: 24px;
|
||||||
right: 32px;
|
top: 128px;
|
||||||
|
right: 4%;
|
||||||
z-index: 100;
|
z-index: 100;
|
||||||
transition: all 0.3s ease;
|
|
||||||
background: #fff;
|
background: #fff;
|
||||||
background: rgba(255,255,255,0.9);
|
|
||||||
padding: 8px 10px 8px 24px;
|
|
||||||
border-radius: 6px 0 0 6px;
|
|
||||||
margin: 0;
|
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
border-right: 0;
|
|
||||||
-webkit-animation: .5s ease-out 0.5s xRightMatrix;
|
|
||||||
animation: .5s ease-out 0.5s xRightMatrix;
|
|
||||||
-webkit-animation-fill-mode: forwards;
|
|
||||||
animation-fill-mode: forwards;
|
|
||||||
opacity: 0;
|
|
||||||
}
|
}
|
||||||
|
@ -67,10 +67,10 @@
|
|||||||
<a href="{{static_url('../')}}" data-no-instant>首页</a>
|
<a href="{{static_url('../')}}" data-no-instant>首页</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="{%- if post.directory|rootDirectoryIn(['docs/practice']) %}current{%- endif %}">
|
<li class="{%- if post.directory|rootDirectoryIn(['docs/practice']) %}current{%- endif %}">
|
||||||
<a href="{{static_url('../docs/practice/index')}}">实践</a>
|
<a href="{{static_url('../docs/practice/cases')}}">实践</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="{%- if post.directory|rootDirectoryIn(['docs/pattern']) %}current{%- endif %}">
|
<li class="{%- if post.directory|rootDirectoryIn(['docs/pattern']) %}current{%- endif %}">
|
||||||
<a href="{{static_url('../docs/pattern/index')}}">模式</a>
|
<a href="{{static_url('../docs/pattern/navigation')}}">模式</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="{%- if post.directory|rootDirectoryIn(['docs/spec']) %}current{%- endif %}">
|
<li class="{%- if post.directory|rootDirectoryIn(['docs/spec']) %}current{%- endif %}">
|
||||||
<a href="{{static_url('../docs/spec/introduce')}}">语言</a>
|
<a href="{{static_url('../docs/spec/introduce')}}">语言</a>
|
||||||
@ -79,7 +79,7 @@
|
|||||||
<a href="{{static_url('../docs/react/introduce')}}">组件</a>
|
<a href="{{static_url('../docs/react/introduce')}}">组件</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="{%- if post.directory|rootDirectoryIn(['docs/resource']) %}current{%- endif %}">
|
<li class="{%- if post.directory|rootDirectoryIn(['docs/resource']) %}current{%- endif %}">
|
||||||
<a href="{{static_url('../docs/resource/index')}}">资源</a>
|
<a href="{{static_url('../docs/resource/download')}}">资源</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
|
@ -84,7 +84,6 @@ module.exports = function(nico) {
|
|||||||
if (!cat) {
|
if (!cat) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
console.log(itemDirectory, item.directory, directories);
|
|
||||||
if (directories.indexOf(itemDirectory) >= 0 ||
|
if (directories.indexOf(itemDirectory) >= 0 ||
|
||||||
item.filename.indexOf('CHANGELOG') >= 0) {
|
item.filename.indexOf('CHANGELOG') >= 0) {
|
||||||
item.filename = item.filename.toLowerCase();
|
item.filename = item.filename.toLowerCase();
|
||||||
|
Loading…
Reference in New Issue
Block a user