Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
计算机应用开发
前端
Vuepress
提交
35707025
V
Vuepress
项目概览
计算机应用开发
/
前端
/
Vuepress
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
Vuepress
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
35707025
编写于
4月 11, 2018
作者:
E
Evan You
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
tweak edit link style
上级
3fccd1f2
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
19 addition
and
12 deletion
+19
-12
lib/default-theme/NavLinks.vue
lib/default-theme/NavLinks.vue
+3
-9
lib/default-theme/OutboundLink.vue
lib/default-theme/OutboundLink.vue
+12
-0
lib/default-theme/Page.vue
lib/default-theme/Page.vue
+4
-3
未找到文件。
lib/default-theme/NavLinks.vue
浏览文件 @
35707025
...
...
@@ -13,18 +13,17 @@
class=
"github-link"
target=
"_blank"
>
Github
<svg
class=
"icon"
xmlns=
"http://www.w3.org/2000/svg"
aria-hidden=
"true"
x=
"0px"
y=
"0px"
viewBox=
"0 0 100 100"
width=
"15"
height=
"15"
>
<path
fill=
"currentColor"
d=
"M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"
></path>
<polygon
fill=
"currentColor"
points=
"45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"
></polygon>
</svg>
<OutboundLink/>
</a>
</div>
</
template
>
<
script
>
import
OutboundLink
from
'
./OutboundLink.vue
'
import
{
isActive
,
ensureExt
}
from
'
./util
'
export
default
{
components
:
{
OutboundLink
},
computed
:
{
userLinks
()
{
return
(
this
.
$site
.
themeConfig
.
nav
||
[]).
map
(
item
=>
({
...
...
@@ -58,9 +57,4 @@ export default {
&:hover, &.active
margin-bottom -2px
border-bottom 2px solid lighten($accentColor, 10%)
.github-link .icon
color #aaa
display inline-block
position relative
top .1rem
</
style
>
lib/default-theme/OutboundLink.vue
0 → 100644
浏览文件 @
35707025
<
template
functional
>
<svg
class=
"icon outbound"
xmlns=
"http://www.w3.org/2000/svg"
aria-hidden=
"true"
x=
"0px"
y=
"0px"
viewBox=
"0 0 100 100"
width=
"15"
height=
"15"
>
<path
fill=
"currentColor"
d=
"M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"
></path>
<polygon
fill=
"currentColor"
points=
"45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"
></polygon>
</svg>
</
template
>
<
style
lang=
"stylus"
>
.icon.outbound
color #aaa
display inline-block
</
style
>
lib/default-theme/Page.vue
浏览文件 @
35707025
...
...
@@ -3,6 +3,7 @@
<Content
:custom=
"false"
/>
<div
class=
"content edit-link"
v-if=
"editLink"
>
<a
:href=
"editLink"
target=
"_blank"
>
Edit this page
</a>
<OutboundLink/>
</div>
<div
class=
"content page-nav"
v-if=
"prev || next"
>
<p
class=
"inner"
>
...
...
@@ -22,9 +23,11 @@
</
template
>
<
script
>
import
OutboundLink
from
'
./OutboundLink.vue
'
import
{
resolvePage
,
normalize
,
outboundRE
,
endingSlashRE
}
from
'
./util
'
export
default
{
components
:
{
OutboundLink
},
computed
:
{
prev
()
{
const
prev
=
this
.
$page
.
frontmatter
.
prev
...
...
@@ -63,9 +66,7 @@ export default {
padding-bottom 0 !important
a
color lighten($textColor, 25%)
text-decoration underline
&:hover
color $accentColor
margin-right 0.25rem
.page-nav.content
min-height 2.2rem
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录