Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
wanjj_1210
ant-design
提交
937a7603
A
ant-design
项目概览
wanjj_1210
/
ant-design
与 Fork 源项目一致
从无法访问的项目Fork
通知
10
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
A
ant-design
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
937a7603
编写于
5月 16, 2015
作者:
A
afc163
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
toggle code snipple
上级
41f7a0e3
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
24 addition
and
13 deletion
+24
-13
static/code.jsx
static/code.jsx
+1
-1
static/script.js
static/script.js
+3
-1
static/style.css
static/style.css
+15
-9
theme/templates/layout.html
theme/templates/layout.html
+5
-2
未找到文件。
static/code.jsx
浏览文件 @
937a7603
...
...
@@ -19,7 +19,7 @@ var CodeBox = React.createClass({
if
(
!
$
(
e
.
target
).
hasClass
(
'
collapse
'
))
{
return
;
}
$
(
e
.
target
).
parent
().
parent
().
find
(
'
.highlight
'
).
toggle
(
);
$
(
e
.
target
).
parent
().
parent
().
find
(
'
.highlight
'
).
slideToggle
(
150
);
},
render
:
function
()
{
var
html
=
this
.
state
.
html
;
...
...
static/script.js
浏览文件 @
937a7603
$
(
function
()
{
// code here
$
(
'
.component-demos .icon-all
'
).
on
(
'
click
'
,
function
()
{
$
(
'
.code-box
'
).
find
(
'
.highlight
'
).
slideToggle
(
150
);
});
});
static/style.css
浏览文件 @
937a7603
...
...
@@ -36,8 +36,7 @@ li {
a
{
color
:
#6EB4E0
;
text-decoration
:
none
;
transition
:
color
.3s
cubic-bezier
(
0.075
,
0.82
,
0.165
,
1
);
-webkit-transition
:
color
.3s
cubic-bezier
(
0.075
,
0.82
,
0.165
,
1
);
transition
:
color
.3s
ease
;
}
a
:hover
{
color
:
#6EB4E0
;
...
...
@@ -61,7 +60,6 @@ header {
height
:
46px
;
margin
:
20px
30px
;
transition
:
margin
.3s
cubic-bezier
(
0.075
,
0.82
,
0.165
,
1
),
width
.3s
cubic-bezier
(
0.075
,
0.82
,
0.165
,
1
),
height
.3s
cubic-bezier
(
0.075
,
0.82
,
0.165
,
1
);
-webkit-transition
:
margin
.3s
cubic-bezier
(
0.075
,
0.82
,
0.165
,
1
),
width
.3s
cubic-bezier
(
0.075
,
0.82
,
0.165
,
1
),
height
.3s
cubic-bezier
(
0.075
,
0.82
,
0.165
,
1
);
}
.search
{
float
:
left
;
...
...
@@ -78,7 +76,6 @@ header {
height
:
22px
;
padding
:
0
0
0
20px
;
color
:
#999
;
-webkit-transition
:
padding
.3s
cubic-bezier
(
0.075
,
0.82
,
0.165
,
1
);
transition
:
padding
.3s
cubic-bezier
(
0.075
,
0.82
,
0.165
,
1
);
font-size
:
14px
;
}
...
...
@@ -107,7 +104,6 @@ header {
left
:
30px
;
cursor
:
pointer
;
transition
:
left
.3s
cubic-bezier
(
0.075
,
0.82
,
0.165
,
1
);
-webkit-transition
:
left
.3s
cubic-bezier
(
0.075
,
0.82
,
0.165
,
1
);
}
.search
button
:before
,
.search
button
:after
{
...
...
@@ -158,8 +154,6 @@ header {
width
:
100%
;
height
:
100%
;
display
:
block
;
-webkit-transition
:
color
.3s
cubic-bezier
(
0.075
,
0.82
,
0.165
,
1
);
transition
:
color
.3s
cubic-bezier
(
0.075
,
0.82
,
0.165
,
1
);
}
.nav
ul
li
.current
a
{
color
:
#71B5DE
;
...
...
@@ -176,7 +170,6 @@ header {
left
:
0
;
background
:
#6EB4E0
;
transition
:
left
.3s
cubic-bezier
(
0.075
,
0.82
,
0.165
,
1
);
-webkit-transition
:
left
.3s
cubic-bezier
(
0.075
,
0.82
,
0.165
,
1
);
}
.nav-phone-icon
{
display
:
none
;
...
...
@@ -203,7 +196,6 @@ header {
min-height
:
calc
(
100%
-
217px
);
-webkit-transform-style
:
preserve-3d
;
transform-style
:
preserve-3d
;
-webkit-transition
:
-webkit-transform
.6s
cubic-bezier
(
0.785
,
0.135
,
0.15
,
0.86
),
height
.5s
ease-out
;
transition
:
transform
.6s
cubic-bezier
(
0.785
,
0.135
,
0.15
,
0.86
),
height
.5s
ease-out
;
}
.banner-box
{
...
...
@@ -971,6 +963,20 @@ footer ul li > a {
font-weight
:
normal
;
}
.component-demos
.icon-all
{
cursor
:
pointer
;
font-size
:
16px
;
color
:
#9199AC
;
margin-left
:
5px
;
vertical-align
:
text-bottom
;
opacity
:
0.8
;
transition
:
all
0.3s
ease
;
}
.component-demos
.icon-all
:hover
{
opacity
:
1
;
}
.code-boxes
{
-webkit-column-count
:
2
;
-moz-column-count
:
2
;
...
...
theme/templates/layout.html
浏览文件 @
937a7603
...
...
@@ -9,7 +9,7 @@
<title>
{% block title %}Ant Design{% endblock %}
</title>
<link
rel=
"stylesheet"
href=
"/static/normalize.css"
>
<link
rel=
"stylesheet"
href=
"/static/style.css"
>
<link
rel=
"stylesheet"
href=
"//at.alicdn.com/t/font_1431763
241_3066776
.css"
>
<link
rel=
"stylesheet"
href=
"//at.alicdn.com/t/font_1431763
644_2809389
.css"
>
<link
rel=
"stylesheet"
href=
"/static/tomorrow.css"
>
<script
src=
"https://a.alipayobjects.com/jquery/jquery/1.11.1/jquery.js"
></script>
<script
src=
"/static/script.js"
></script>
...
...
@@ -91,7 +91,10 @@
</h1>
{{ post.html }}
{%- if post.meta.template === 'component' %}
<h2>
组件演示
</h2>
<h2
class=
"component-demos"
>
组件演示
<i
class=
"iconfont icon-all"
title=
"展开全部代码"
></i>
</h2>
<div
id=
"code-boxes"
>
代码加载中...
</div>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录