Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
计算机应用开发
前端
Vuepress
提交
adc130ba
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,发现更多精彩内容 >>
提交
adc130ba
编写于
4月 09, 2018
作者:
E
Evan You
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
style updates
上级
2dcbdeaa
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
56 addition
and
47 deletion
+56
-47
lib/default-theme/Index.vue
lib/default-theme/Index.vue
+0
-6
lib/default-theme/Layout.vue
lib/default-theme/Layout.vue
+2
-4
lib/default-theme/Page.vue
lib/default-theme/Page.vue
+3
-0
lib/default-theme/SidebarLink.vue
lib/default-theme/SidebarLink.vue
+2
-0
lib/default-theme/styles/code.stylus
lib/default-theme/styles/code.stylus
+3
-0
lib/default-theme/styles/mobile.stylus
lib/default-theme/styles/mobile.stylus
+38
-0
lib/default-theme/styles/theme.stylus
lib/default-theme/styles/theme.stylus
+8
-37
未找到文件。
lib/default-theme/Index.vue
已删除
100644 → 0
浏览文件 @
2dcbdeaa
<
template
>
<div
class=
"index"
>
<h1>
This is the Index
</h1>
<Content/>
</div>
</
template
>
lib/default-theme/Layout.vue
浏览文件 @
adc130ba
<
template
>
<div
class=
"theme-container"
>
<Sidebar/>
<Index
v-if=
"$page.path === '/index'"
/>
<Page
v-else
/>
<Page/>
</div>
</
template
>
<
script
>
import
nprogress
from
'
nprogress
'
import
Index
from
'
./Index.vue
'
import
Page
from
'
./Page.vue
'
import
Sidebar
from
'
./Sidebar.vue
'
export
default
{
components
:
{
Index
,
Page
,
Sidebar
},
components
:
{
Page
,
Sidebar
},
mounted
()
{
nprogress
.
configure
({
showSpinner
:
false
})
...
...
lib/default-theme/Page.vue
浏览文件 @
adc130ba
...
...
@@ -39,7 +39,10 @@ export default {
@import './styles/config.stylus'
.page-nav.content
padding-top 0
min-height 2.2rem
p
margin 0
border-top 1px solid $borderColor
padding-top 1rem
.next
...
...
lib/default-theme/SidebarLink.vue
浏览文件 @
adc130ba
...
...
@@ -51,4 +51,6 @@ a.sidebar-link
font-weight 600
color $accentColor
border-left-color $accentColor
.sidebar-group &
padding-left 2rem
</
style
>
lib/default-theme/styles/code.stylus
浏览文件 @
adc130ba
...
...
@@ -81,3 +81,6 @@ pre[class="language-java"]:before
pre[class="language-c"]:before
content "c"
pre[class="language-bash"]:before
content "sh"
lib/default-theme/styles/mobile.stylus
0 → 100644
浏览文件 @
adc130ba
@import './config.stylus'
$mobileSidebarWidth = $sidebarWidth * 0.82
// narrow desktop / iPad
@media (max-width: 959px)
body
font-size 15px
.sidebar
font-size 14px
width $mobileSidebarWidth
.page
padding-left $mobileSidebarWidth
.content
margin 2rem auto
padding 0 2rem
// wide mobile
@media (max-width: 719px)
.sidebar
transform translateX(-100%)
.page
padding-left 0
.theme-container
transition transform .2s ease
&.sidebar-open
transform translateX($mobileSidebarWidth)
// narrow mobile
@media (max-width: 419px)
pre, pre[class*="language-"]
margin 0 -1.5rem
border-radius 0
.content
margin 1.5rem auto
padding 0 1.5rem
.page-nav
font-size 14px
lib/default-theme/styles/theme.stylus
浏览文件 @
adc130ba
...
...
@@ -20,6 +20,7 @@ body
.sidebar
font-size 15px
background-color #fff
width $sidebarWidth
position fixed
margin 0
...
...
@@ -33,10 +34,13 @@ body
.content
max-width $contentWidth
margin
2rem auto 3rem
padding
0
2.5rem
margin
0 auto
padding
2rem
2.5rem
a:hover
text-decoration underline
h1, h2, h3, h4, h5, h6
&:first-child
margin-top 0
a
font-weight 500
...
...
@@ -48,7 +52,7 @@ p a code
color $accentColor
blockquote
font-size 1.2
5
rem
font-size 1.2rem
color #999
border-left .25rem solid #dfe2e5
margin-left 0
...
...
@@ -101,37 +105,4 @@ p
border 1px solid #ddd
border-radius 4px
$mobileSidebarWidth = $sidebarWidth * 0.82
// narrow desktop / iPad
@media (max-width: 959px)
body
font-size 15px
.sidebar
font-size 14px
width $mobileSidebarWidth
.page
padding-left $mobileSidebarWidth
.content
margin 2rem auto
padding 0 2rem
// wide mobile
@media (max-width: 719px)
body
font-size 15px
.sidebar
font-size 14px
width $mobileSidebarWidth
display none
.page
padding-left 0
// narrow mobile
@media (max-width: 419px)
pre, pre[class*="language-"]
margin 0 -1.5rem
border-radius 0
.content
margin 1.5rem auto
padding 0 1.5rem
@import './mobile.stylus'
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录