Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
易企天创
zui
提交
5e7e7e7d
Z
zui
项目概览
易企天创
/
zui
大约 1 年 前同步成功
通知
6
Star
0
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
37
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Z
zui
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
37
Issue
37
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
5e7e7e7d
编写于
4月 23, 2015
作者:
C
Catouse
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
* add external link tip to section card heading.
上级
0b38c496
变更
5
展开全部
隐藏空白更改
内联
并排
Showing
5 changed file
with
161 addition
and
22 deletion
+161
-22
docs/2/css/doc.css
docs/2/css/doc.css
+118
-0
docs/2/css/doc.css.map
docs/2/css/doc.css.map
+1
-1
docs/2/css/doc.min.css
docs/2/css/doc.min.css
+1
-1
src/js/doc.js
src/js/doc.js
+24
-20
src/less/doc.less
src/less/doc.less
+17
-0
未找到文件。
docs/2/css/doc.css
浏览文件 @
5e7e7e7d
...
@@ -490,6 +490,12 @@ body {
...
@@ -490,6 +490,12 @@ body {
-o-transition
:
right
.1s
cubic-bezier
(
.175
,
.885
,
.32
,
1
);
-o-transition
:
right
.1s
cubic-bezier
(
.175
,
.885
,
.32
,
1
);
transition
:
right
.1s
cubic-bezier
(
.175
,
.885
,
.32
,
1
);
transition
:
right
.1s
cubic-bezier
(
.175
,
.885
,
.32
,
1
);
}
}
#grid
.card
[
data-target
=
"external"
]
.choosed
:before
{
content
:
'按Enter键在新窗口中打开'
;
}
#grid
.card
[
data-target
=
""
]
.choosed
:before
{
display
:
none
;
}
#grid
.card
:hover
,
#grid
.card
:hover
,
#grid
.card.open
{
#grid
.card.open
{
border-color
:
#e5e5e5
;
border-color
:
#e5e5e5
;
...
@@ -847,6 +853,22 @@ body {
...
@@ -847,6 +853,22 @@ body {
#grid
.chapter
[
data-accent
=
"blue"
]
.color-accent
{
#grid
.chapter
[
data-accent
=
"blue"
]
.color-accent
{
color
:
#00acc1
;
color
:
#00acc1
;
}
}
#grid
.chapter
[
data-accent
=
"blue"
]
.card
[
data-target
=
"external"
]
>
.card-heading.hover
>
h5
>
a
:after
{
display
:
inline-block
;
margin-left
:
5px
;
font-family
:
ZenIcon
;
font-size
:
14px
;
font-style
:
normal
;
font-weight
:
normal
;
font-variant
:
normal
;
line-height
:
1
;
text-transform
:
none
;
content
:
'\e684'
;
speak
:
none
;
-webkit-font-smoothing
:
antialiased
;
-moz-osx-font-smoothing
:
grayscale
;
}
#grid
.chapter
[
data-accent
=
"primary"
]
.chapter-heading
{
#grid
.chapter
[
data-accent
=
"primary"
]
.chapter-heading
{
color
:
#3280fc
;
color
:
#3280fc
;
}
}
...
@@ -907,6 +929,22 @@ body {
...
@@ -907,6 +929,22 @@ body {
#grid
.chapter
[
data-accent
=
"primary"
]
.color-accent
{
#grid
.chapter
[
data-accent
=
"primary"
]
.color-accent
{
color
:
#3280fc
;
color
:
#3280fc
;
}
}
#grid
.chapter
[
data-accent
=
"primary"
]
.card
[
data-target
=
"external"
]
>
.card-heading.hover
>
h5
>
a
:after
{
display
:
inline-block
;
margin-left
:
5px
;
font-family
:
ZenIcon
;
font-size
:
14px
;
font-style
:
normal
;
font-weight
:
normal
;
font-variant
:
normal
;
line-height
:
1
;
text-transform
:
none
;
content
:
'\e684'
;
speak
:
none
;
-webkit-font-smoothing
:
antialiased
;
-moz-osx-font-smoothing
:
grayscale
;
}
#grid
.chapter
[
data-accent
=
"yellow"
]
.chapter-heading
{
#grid
.chapter
[
data-accent
=
"yellow"
]
.chapter-heading
{
color
:
#fd9927
;
color
:
#fd9927
;
}
}
...
@@ -967,6 +1005,22 @@ body {
...
@@ -967,6 +1005,22 @@ body {
#grid
.chapter
[
data-accent
=
"yellow"
]
.color-accent
{
#grid
.chapter
[
data-accent
=
"yellow"
]
.color-accent
{
color
:
#fd9927
;
color
:
#fd9927
;
}
}
#grid
.chapter
[
data-accent
=
"yellow"
]
.card
[
data-target
=
"external"
]
>
.card-heading.hover
>
h5
>
a
:after
{
display
:
inline-block
;
margin-left
:
5px
;
font-family
:
ZenIcon
;
font-size
:
14px
;
font-style
:
normal
;
font-weight
:
normal
;
font-variant
:
normal
;
line-height
:
1
;
text-transform
:
none
;
content
:
'\e684'
;
speak
:
none
;
-webkit-font-smoothing
:
antialiased
;
-moz-osx-font-smoothing
:
grayscale
;
}
#grid
.chapter
[
data-accent
=
"green"
]
.chapter-heading
{
#grid
.chapter
[
data-accent
=
"green"
]
.chapter-heading
{
color
:
#2fb936
;
color
:
#2fb936
;
}
}
...
@@ -1027,6 +1081,22 @@ body {
...
@@ -1027,6 +1081,22 @@ body {
#grid
.chapter
[
data-accent
=
"green"
]
.color-accent
{
#grid
.chapter
[
data-accent
=
"green"
]
.color-accent
{
color
:
#2fb936
;
color
:
#2fb936
;
}
}
#grid
.chapter
[
data-accent
=
"green"
]
.card
[
data-target
=
"external"
]
>
.card-heading.hover
>
h5
>
a
:after
{
display
:
inline-block
;
margin-left
:
5px
;
font-family
:
ZenIcon
;
font-size
:
14px
;
font-style
:
normal
;
font-weight
:
normal
;
font-variant
:
normal
;
line-height
:
1
;
text-transform
:
none
;
content
:
'\e684'
;
speak
:
none
;
-webkit-font-smoothing
:
antialiased
;
-moz-osx-font-smoothing
:
grayscale
;
}
#grid
.chapter
[
data-accent
=
"red"
]
.chapter-heading
{
#grid
.chapter
[
data-accent
=
"red"
]
.chapter-heading
{
color
:
#ee4e2f
;
color
:
#ee4e2f
;
}
}
...
@@ -1087,6 +1157,22 @@ body {
...
@@ -1087,6 +1157,22 @@ body {
#grid
.chapter
[
data-accent
=
"red"
]
.color-accent
{
#grid
.chapter
[
data-accent
=
"red"
]
.color-accent
{
color
:
#ee4e2f
;
color
:
#ee4e2f
;
}
}
#grid
.chapter
[
data-accent
=
"red"
]
.card
[
data-target
=
"external"
]
>
.card-heading.hover
>
h5
>
a
:after
{
display
:
inline-block
;
margin-left
:
5px
;
font-family
:
ZenIcon
;
font-size
:
14px
;
font-style
:
normal
;
font-weight
:
normal
;
font-variant
:
normal
;
line-height
:
1
;
text-transform
:
none
;
content
:
'\e684'
;
speak
:
none
;
-webkit-font-smoothing
:
antialiased
;
-moz-osx-font-smoothing
:
grayscale
;
}
#grid
.chapter
[
data-accent
=
"brown"
]
.chapter-heading
{
#grid
.chapter
[
data-accent
=
"brown"
]
.chapter-heading
{
color
:
#bd7b46
;
color
:
#bd7b46
;
}
}
...
@@ -1147,6 +1233,22 @@ body {
...
@@ -1147,6 +1233,22 @@ body {
#grid
.chapter
[
data-accent
=
"brown"
]
.color-accent
{
#grid
.chapter
[
data-accent
=
"brown"
]
.color-accent
{
color
:
#bd7b46
;
color
:
#bd7b46
;
}
}
#grid
.chapter
[
data-accent
=
"brown"
]
.card
[
data-target
=
"external"
]
>
.card-heading.hover
>
h5
>
a
:after
{
display
:
inline-block
;
margin-left
:
5px
;
font-family
:
ZenIcon
;
font-size
:
14px
;
font-style
:
normal
;
font-weight
:
normal
;
font-variant
:
normal
;
line-height
:
1
;
text-transform
:
none
;
content
:
'\e684'
;
speak
:
none
;
-webkit-font-smoothing
:
antialiased
;
-moz-osx-font-smoothing
:
grayscale
;
}
#grid
.chapter
[
data-accent
=
"purple"
]
.chapter-heading
{
#grid
.chapter
[
data-accent
=
"purple"
]
.chapter-heading
{
color
:
#8666b8
;
color
:
#8666b8
;
}
}
...
@@ -1207,6 +1309,22 @@ body {
...
@@ -1207,6 +1309,22 @@ body {
#grid
.chapter
[
data-accent
=
"purple"
]
.color-accent
{
#grid
.chapter
[
data-accent
=
"purple"
]
.color-accent
{
color
:
#8666b8
;
color
:
#8666b8
;
}
}
#grid
.chapter
[
data-accent
=
"purple"
]
.card
[
data-target
=
"external"
]
>
.card-heading.hover
>
h5
>
a
:after
{
display
:
inline-block
;
margin-left
:
5px
;
font-family
:
ZenIcon
;
font-size
:
14px
;
font-style
:
normal
;
font-weight
:
normal
;
font-variant
:
normal
;
line-height
:
1
;
text-transform
:
none
;
content
:
'\e684'
;
speak
:
none
;
-webkit-font-smoothing
:
antialiased
;
-moz-osx-font-smoothing
:
grayscale
;
}
body
.input-query-focus
#grid
.card.choosed
:before
{
body
.input-query-focus
#grid
.card.choosed
:before
{
right
:
0
;
right
:
0
;
}
}
...
...
docs/2/css/doc.css.map
浏览文件 @
5e7e7e7d
此差异已折叠。
点击以展开。
docs/2/css/doc.min.css
浏览文件 @
5e7e7e7d
此差异已折叠。
点击以展开。
src/js/doc.js
浏览文件 @
5e7e7e7d
...
@@ -198,13 +198,26 @@
...
@@ -198,13 +198,26 @@
var
chapterName
=
chapter
.
id
;
var
chapterName
=
chapter
.
id
;
section
.
chapter
=
chapterName
;
section
.
chapter
=
chapterName
;
section
.
chapterName
=
chapter
.
name
;
section
.
chapterName
=
chapter
.
name
;
var
url
=
section
.
url
;
if
(
typeof
url
===
'
undefined
'
)
{
section
.
url
=
'
part/
'
+
section
.
chapter
+
'
-
'
+
section
.
id
+
'
.html
'
;
section
.
target
=
'
page
'
;
}
else
if
(
url
&&
(
url
.
toLowerCase
().
startsWith
(
'
http://
'
)
||
url
.
toLowerCase
().
startsWith
(
'
https://
'
)))
{
section
.
target
=
'
external
'
;
}
else
{
section
.
target
=
''
;
}
var
id
=
chapterName
+
'
-
'
+
section
.
id
;
var
id
=
chapterName
+
'
-
'
+
section
.
id
;
var
$tpl
=
$sectionTemplate
.
clone
().
attr
(
'
id
'
,
'
section-
'
+
id
).
data
(
'
section
'
,
section
);
var
$tpl
=
$sectionTemplate
.
clone
().
data
(
'
section
'
,
section
);
$tpl
.
attr
({
$tpl
.
attr
({
'
id
'
:
'
section-
'
+
id
,
'
data-id
'
:
section
.
id
,
'
data-id
'
:
section
.
id
,
'
data-chapter
'
:
chapterName
,
'
data-chapter
'
:
chapterName
,
'
data-order
'
:
order
++
,
'
data-order
'
:
order
++
,
'
data-accent
'
:
chapter
.
accent
'
data-accent
'
:
chapter
.
accent
,
'
data-target
'
:
section
.
target
});
});
var
$head
=
$tpl
.
children
(
'
.card-heading
'
);
var
$head
=
$tpl
.
children
(
'
.card-heading
'
);
var
sectionUrl
=
'
#
'
+
chapterName
+
'
/
'
+
section
.
id
;
var
sectionUrl
=
'
#
'
+
chapterName
+
'
/
'
+
section
.
id
;
...
@@ -833,7 +846,6 @@
...
@@ -833,7 +846,6 @@
// Send ga data
// Send ga data
var
pageUrl
=
'
#
'
+
section
.
chapter
+
'
/
'
+
section
.
id
;
var
pageUrl
=
'
#
'
+
section
.
chapter
+
'
/
'
+
section
.
id
;
if
(
topic
)
pageUrl
+=
'
/
'
+
topic
;
if
(
topic
)
pageUrl
+=
'
/
'
+
topic
;
console
.
log
(
section
);
window
.
document
.
title
=
section
.
chapterName
+
'
>
'
+
section
.
name
+
'
-
'
+
documentTitle
;
window
.
document
.
title
=
section
.
chapterName
+
'
>
'
+
section
.
name
+
'
-
'
+
documentTitle
;
window
.
location
.
hash
=
pageUrl
;
window
.
location
.
hash
=
pageUrl
;
if
(
$
.
isFunction
(
ga
))
ga
(
'
send
'
,
'
pageview
'
,
window
.
location
.
pathname
+
pageUrl
);
if
(
$
.
isFunction
(
ga
))
ga
(
'
send
'
,
'
pageview
'
,
window
.
location
.
pathname
+
pageUrl
);
...
@@ -928,23 +940,15 @@
...
@@ -928,23 +940,15 @@
$section
=
$temp
;
$section
=
$temp
;
}
}
var
url
=
section
.
url
;
switch
(
section
.
target
)
{
case
'
external
'
:
if
(
url
===
null
)
{
window
.
open
(
section
.
url
,
'
_blank
'
);
if
(
debug
)
console
.
error
(
"
Open section stop by null url.
"
);
break
;
return
;
case
'
page
'
:
}
openPage
(
$section
,
section
,
topic
);
break
;
if
(
!
url
)
{
default
:
url
=
'
part/
'
+
section
.
chapter
+
'
-
'
+
section
.
id
+
'
.html
'
;
if
(
debug
)
console
.
error
(
"
Open section failed: unknown target.
"
);
section
.
url
=
url
;
}
url
=
url
.
toLowerCase
();
if
(
url
.
startsWith
(
'
http://
'
)
||
url
.
startsWith
(
'
https://
'
)
)
{
window
.
open
(
url
,
'
_blank
'
);
}
else
{
openPage
(
$section
,
section
,
topic
);
}
}
};
};
...
...
src/less/doc.less
浏览文件 @
5e7e7e7d
...
@@ -88,6 +88,15 @@
...
@@ -88,6 +88,15 @@
.color-accent {
.color-accent {
color: @color;
color: @color;
}
}
.card[data-target="external"] > .card-heading.hover {
> h5 > a:after {
display: inline-block;
margin-left: 5px;
.icon-zenicon();
content: @icon-external-link;
}
}
}
}
.page-accent(@color; @pale) {
.page-accent(@color; @pale) {
...
@@ -674,6 +683,14 @@ body {
...
@@ -674,6 +683,14 @@ body {
}
}
}
}
&[data-target="external"].choosed:before {
content: '按Enter键在新窗口中打开';
}
&[data-target=""].choosed:before {
display: none;
}
&:hover, &.open {
&:hover, &.open {
border-color: @color-gray-lighter;
border-color: @color-gray-lighter;
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录