mirror of
https://github.com/ant-design/ant-design.git
synced 2025-08-01 05:06:53 +08:00
update ant-design page style
This commit is contained in:
parent
0b8c71663f
commit
ef17365889
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
## 图标列表
|
## 图标列表
|
||||||
|
|
||||||
### 一:方向性图标
|
### 一. 方向性图标
|
||||||
<ul class="row anticons-list fn-clear">
|
<ul class="row anticons-list fn-clear">
|
||||||
<li>
|
<li>
|
||||||
<span class="anticon anticon-step-backward"></span>
|
<span class="anticon anticon-step-backward"></span>
|
||||||
@ -125,7 +125,7 @@
|
|||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
### 二:提示建议性图标
|
### 二. 提示建议性图标
|
||||||
|
|
||||||
<ul class="anticons-list fn-clear">
|
<ul class="anticons-list fn-clear">
|
||||||
<li>
|
<li>
|
||||||
@ -234,7 +234,7 @@
|
|||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
### 三:网站通用图标
|
### 三. 网站通用图标
|
||||||
|
|
||||||
<ul class="anticons-list fn-clear">
|
<ul class="anticons-list fn-clear">
|
||||||
<li>
|
<li>
|
||||||
@ -482,9 +482,10 @@ ul.anticons-list {
|
|||||||
}
|
}
|
||||||
ul.anticons-list li {
|
ul.anticons-list li {
|
||||||
float: left;
|
float: left;
|
||||||
margin: 5px;
|
margin: 10px 5px;
|
||||||
padding-bottom: 10px;
|
padding-bottom: 10px;
|
||||||
width: 160px;
|
width: 150px;
|
||||||
|
height: 120px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
list-style: none;
|
list-style: none;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
@ -493,13 +494,13 @@ ul.anticons-list li {
|
|||||||
transition: all 0.2s ease;
|
transition: all 0.2s ease;
|
||||||
}
|
}
|
||||||
ul.anticons-list li:hover {
|
ul.anticons-list li:hover {
|
||||||
background-color: #6EB4E0;
|
background-color: #4BB8FF;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
}
|
}
|
||||||
.anticon {
|
.anticon {
|
||||||
font-size: 32px;
|
font-size: 24px;
|
||||||
line-height: 64px;
|
margin: 18px 0 16px;
|
||||||
}
|
}
|
||||||
.anticon-class {
|
.anticon-class {
|
||||||
display: block;
|
display: block;
|
||||||
|
@ -22,10 +22,16 @@ $(function() {
|
|||||||
|
|
||||||
$('.code-boxes').on('click', '.collapse', function() {
|
$('.code-boxes').on('click', '.collapse', function() {
|
||||||
var highlightBox = $(this).parent().parent().find('.highlight');
|
var highlightBox = $(this).parent().parent().find('.highlight');
|
||||||
|
var codeVisible = highlightBox.is(':visible');
|
||||||
highlightBox.animate({
|
highlightBox.animate({
|
||||||
height: highlightBox.is(':visible') ? 'hide' : 'show',
|
height: codeVisible ? 'hide' : 'show',
|
||||||
opacity: highlightBox.is(':visible') ? 0 : 1
|
opacity: codeVisible ? 0 : 1
|
||||||
}, 150);
|
}, 150);
|
||||||
|
if (codeVisible) {
|
||||||
|
$(this).parent().parent().removeClass('expand');
|
||||||
|
} else {
|
||||||
|
$(this).parent().parent().addClass('expand');
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
var navFunc = {
|
var navFunc = {
|
||||||
|
@ -248,6 +248,7 @@ header {
|
|||||||
|
|
||||||
.nav ul li.current a {
|
.nav ul li.current a {
|
||||||
color: #71B5DE;
|
color: #71B5DE;
|
||||||
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav ul li a:hover,
|
.nav ul li a:hover,
|
||||||
@ -451,7 +452,6 @@ footer ul li > a {
|
|||||||
|
|
||||||
.aside-container li>ul {
|
.aside-container li>ul {
|
||||||
display: none;
|
display: none;
|
||||||
background: #f4f4f4;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.aside-container li>ul li {
|
.aside-container li>ul li {
|
||||||
@ -516,6 +516,10 @@ footer ul li > a {
|
|||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.markdown h1 {
|
||||||
|
color: #5C6B77;
|
||||||
|
}
|
||||||
|
|
||||||
.markdown h2,
|
.markdown h2,
|
||||||
.markdown h3,
|
.markdown h3,
|
||||||
.markdown h4,
|
.markdown h4,
|
||||||
@ -539,7 +543,7 @@ footer ul li > a {
|
|||||||
.markdown pre code {
|
.markdown pre code {
|
||||||
background: rgba(0, 0, 0, 0.03);
|
background: rgba(0, 0, 0, 0.03);
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 0;
|
border-radius: 6px;
|
||||||
padding: 12px 20px;
|
padding: 12px 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1664,8 +1668,7 @@ footer ul li > a {
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
top: -14px;
|
top: -14px;
|
||||||
padding: 1px 1.1em;
|
padding: 1px 1.1em;
|
||||||
color: #888;
|
color: #777;
|
||||||
font-weight: bold;
|
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
background: #fafafa;
|
background: #fafafa;
|
||||||
box-shadow: 0 -1.2px 0 #e9e9e9;
|
box-shadow: 0 -1.2px 0 #e9e9e9;
|
||||||
@ -1678,7 +1681,7 @@ footer ul li > a {
|
|||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
line-height: 22px;
|
line-height: 22px;
|
||||||
position: relative;
|
position: relative;
|
||||||
margin-right: 6px;
|
margin-right: 8px;
|
||||||
top: -1px;
|
top: -1px;
|
||||||
color: #ccc;
|
color: #ccc;
|
||||||
}
|
}
|
||||||
@ -1696,19 +1699,29 @@ footer ul li > a {
|
|||||||
border: 1px solid #999;
|
border: 1px solid #999;
|
||||||
width: 20px;
|
width: 20px;
|
||||||
height: 20px;
|
height: 20px;
|
||||||
line-height: 17px;
|
line-height: 20px;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
text-indent: 3px;
|
|
||||||
border-radius: 100%;
|
border-radius: 100%;
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
transform: rotate(90deg);
|
|
||||||
margin-top: -10px;
|
margin-top: -10px;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.code-box .collapse:hover {
|
.code-box .collapse:hover {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.code-box .collapse:before {
|
||||||
|
transform: rotate(90deg);
|
||||||
|
transform-origin: 50% 50%;
|
||||||
|
display: inline-block;
|
||||||
|
transition: transform 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.code-box.expand .collapse:before {
|
||||||
|
transform: rotate(270deg);
|
||||||
|
}
|
||||||
|
|
||||||
.code-box .highlight {
|
.code-box .highlight {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
display: none;
|
display: none;
|
||||||
@ -1776,3 +1789,4 @@ a.entry-link:hover .icon-lego {
|
|||||||
-webkit-animation: rotateCircle 0.5s 1 ease-in-out;
|
-webkit-animation: rotateCircle 0.5s 1 ease-in-out;
|
||||||
animation: rotateCircle 0.5s 1 ease-in-out;
|
animation: rotateCircle 0.5s 1 ease-in-out;
|
||||||
}
|
}
|
||||||
|
transform: rotate();
|
||||||
|
Loading…
Reference in New Issue
Block a user