Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
wanjj_1210
ant-design
提交
a2730cd9
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,发现更多精彩内容 >>
提交
a2730cd9
编写于
3月 06, 2016
作者:
A
afc163
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Improve site style in small screan
上级
5386afaf
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
75 addition
and
22 deletion
+75
-22
scripts/demo.js
scripts/demo.js
+5
-1
site/static/style.less
site/static/style.less
+54
-20
site/templates/home.html
site/templates/home.html
+15
-0
site/templates/layout.html
site/templates/layout.html
+1
-1
未找到文件。
scripts/demo.js
浏览文件 @
a2730cd9
...
...
@@ -378,7 +378,11 @@ InstantClickChangeFns.push(function() {
}
$
(
'
.nav-phone-icon
'
).
click
(
function
()
{
$
(
this
).
prev
().
toggle
();
var
navMenu
=
$
(
this
).
prev
();
navMenu
.
removeClass
(
'
nav-hide
'
).
addClass
(
'
nav-show
'
).
focus
();
navMenu
.
one
(
'
blur
'
,
function
()
{
navMenu
.
removeClass
(
'
nav-show
'
).
addClass
(
'
nav-hide
'
);
});
});
$
.
easing
[
'
jswing
'
]
=
$
.
easing
[
'
swing
'
];
...
...
site/static/style.less
浏览文件 @
a2730cd9
...
...
@@ -1448,7 +1448,8 @@ a.entry-link:hover .anticon-smile {
}
@media only screen and (min-width: 320px) and (max-width: 767px) {
.nav, .search {
#list,
.search {
display: none;
}
...
...
@@ -1465,17 +1466,27 @@ a.entry-link:hover .anticon-smile {
}
.nav {
position:
absolute
;
position:
fixed
;
z-index: 1000;
top:
50px
;
top:
0
;
right: 0;
background: #fff;
overflow: hidden;
height: auto;
line-height: 50px;
line-height: 60px;
margin-right: 0;
border: 1px solid #e9e9e9;
width: 50%;
width: 44%;
height: 100%;
box-shadow: -10px 0 12px rgba(0,0,0,0.1);
opacity: 0;
transform: translateX(100%);
}
.nav.nav-show {
animation: moveRight .2s ease-in forwards;
}
.nav.nav-hide {
animation: moveRightOut .2s ease-in forwards;
}
.nav .bar {
...
...
@@ -1492,26 +1503,23 @@ a.entry-link:hover .anticon-smile {
.nav-phone-icon {
display: block;
width: 49px;
height: 49px;
float: right;
width: 18px;
height: 50px;
position: absolute;
right: 30px;
top: 30px;
cursor: pointer;
background: #BEC4C8;
}
.nav-phone-icon:before,
.nav-phone-icon:after {
.nav-phone-icon:before {
content: "";
display: block;
border-radius: 1px;
width: 1
5
px;
width: 1
8
px;
height: 2px;
background: #EBEDEE;
margin: 20px 0 0 18px;
}
.nav-phone-icon:after {
margin-top: 5px;
background: #666;
box-shadow: 0 7px 0 0 #666, 0 14px 0 0 #666;
position: absolute;
}
.main {
...
...
@@ -1521,6 +1529,9 @@ a.entry-link:hover .anticon-smile {
.aside-container {
float: none;
width: auto;
padding-bottom: 30px;
border-bottom: 1px solid #e9e9e9;
margin-bottom: 30px;
}
.main-container {
...
...
@@ -1533,6 +1544,7 @@ a.entry-link:hover .anticon-smile {
.main-wrapper {
width: 100%;
border-radius: 0;
}
.main-container {
...
...
@@ -1553,3 +1565,25 @@ a.entry-link:hover .anticon-smile {
width: auto;
}
}
@keyframes moveRight {
0% {
transform: translateX(100%);
opacity: 0;
}
100% {
transform: translateX(0px);
opacity: 1;
}
}
@keyframes moveRightOut {
0% {
transform: translateX(0px);
opacity: 1;
}
100% {
transform: translateX(100%);
opacity: 0;
}
}
site/templates/home.html
浏览文件 @
a2730cd9
...
...
@@ -39,6 +39,17 @@
color
:
#eee
;
}
@media
only
screen
and
(
min-width
:
320px
)
and
(
max-width
:
767px
)
{
header
.nav
ul
li
a
{
color
:
#666
;
}
}
.nav-phone-icon
:before
{
background
:
#eee
;
box-shadow
:
0
7px
0
0
#eee
,
0
14px
0
0
#eee
;
}
.nav
ul
li
a
{
transition
:
color
0.5s
cubic-bezier
(
0.455
,
0.03
,
0.515
,
0.955
);
}
...
...
@@ -76,6 +87,10 @@
border-left-color
:
#EBEDEE
;
}
.home-nav-bottom
.nav
{
background
:
#fff
;
}
.home-nav-bottom
.nav
a
{
color
:
#666
;
}
...
...
site/templates/layout.html
浏览文件 @
a2730cd9
...
...
@@ -56,7 +56,7 @@
<div
class=
"search"
>
<div
id=
"autoComplete"
></div>
</div>
<nav
class=
"nav"
>
<nav
class=
"nav"
tabindex=
"-1"
>
<span
class=
"bar"
></span>
<ul>
<li
class=
"{%- if post.meta.filepath === 'README.md' %}current{%- endif %}"
>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录