Merge pull request #66 from vuepress-reco/feature/reco

Feature/reco
This commit is contained in:
reco_luan 2019-10-20 15:50:40 +08:00 committed by GitHub
commit d17dba533a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 48 additions and 47 deletions

View File

@ -197,7 +197,7 @@ export default {
.comments-wrapper .comments-wrapper
padding-left 2rem padding-left 2rem
.comments-wrapper .comments-wrapper
padding-left: 16.4rem; padding-left: 18.4rem;
@media (max-width: $MQMobile) @media (max-width: $MQMobile)
.comments-wrapper .comments-wrapper
padding-left: 2rem padding-left: 2rem

View File

@ -1,8 +1,7 @@
<template> <template>
<div> <div>
<Common> <Common>
<Home v-if="$frontmatter.home && $themeConfig.type !== 'blog'"/> <component v-if="$frontmatter.home" :is="homeCom"></component>
<HomeBlog v-else-if="$frontmatter.home && $themeConfig.type === 'blog'"/>
<Page <Page
v-else v-else
:sidebar-items="sidebarItems"> :sidebar-items="sidebarItems">
@ -35,6 +34,13 @@ export default {
this.$site, this.$site,
this.$localePath this.$localePath
) )
},
homeCom () {
const { type } = this.$themeConfig
if (type !== undefined) {
return type == 'blog' ? 'HomeBlog': type
}
return 'Home'
} }
} }
} }

View File

@ -1,6 +1,6 @@
<template> <template>
<div class="tags-wrapper" :class="recoShow?'reco-show': 'reco-hide'"> <div class="tags-wrapper" :class="recoShow?'reco-show': 'reco-hide'">
<Common :sidebar="false" :isComment="false"></Common> <Common :sidebar="false" :isComment="false">
<TagList :currentTag="currentTag" @getCurrentTag="tagClick"></TagList> <TagList :currentTag="currentTag" @getCurrentTag="tagClick"></TagList>
<note-abstract <note-abstract
class="list" class="list"
@ -14,6 +14,7 @@
:total="posts.length" :total="posts.length"
:currentPage="currentPage" :currentPage="currentPage"
@getCurrentPage="getCurrentPage"></pagation> @getCurrentPage="getCurrentPage"></pagation>
</Common>
</div> </div>
</template> </template>

View File

@ -1,6 +1,6 @@
<template> <template>
<div> <div>
<Common :sidebar="false" :isComment="false"></Common> <Common :sidebar="false" :isComment="false">
<ul class="timeline-wrapper"> <ul class="timeline-wrapper">
<li class="desc">Yesterday Once More!</li> <li class="desc">Yesterday Once More!</li>
<li v-for="(item, index) in formatPagesArr" :key="index"> <li v-for="(item, index) in formatPagesArr" :key="index">
@ -13,6 +13,7 @@
</ul> </ul>
</li> </li>
</ul> </ul>
</Common>
</div> </div>
</template> </template>

View File

@ -1,6 +1,6 @@
{ {
"name": "vuepress-theme-reco", "name": "vuepress-theme-reco",
"version": "1.0.9-alpha.15", "version": "1.0.9-alpha.17",
"description": "this is a vuepress theme", "description": "this is a vuepress theme",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
@ -31,7 +31,7 @@
"@vuepress-reco/vuepress-plugin-pagation": "^1.0.3", "@vuepress-reco/vuepress-plugin-pagation": "^1.0.3",
"@vuepress-reco/vuepress-plugin-screenfull": "^1.0.0", "@vuepress-reco/vuepress-plugin-screenfull": "^1.0.0",
"@vuepress-reco/vuepress-plugin-ga": "^1.0.2", "@vuepress-reco/vuepress-plugin-ga": "^1.0.2",
"@vuepress-reco/vuepress-plugin-comments": "1.0.1", "@vuepress-reco/vuepress-plugin-comments": "^1.0.2",
"@vuepress/plugin-medium-zoom": "1.2.0", "@vuepress/plugin-medium-zoom": "1.2.0",
"@vuepress/plugin-blog": "1.3.0", "@vuepress/plugin-blog": "1.3.0",
"leancloud-storage": "3.13.2", "leancloud-storage": "3.13.2",

View File

@ -1,6 +1,6 @@
$boxShadow = 0 1px 6px 0 rgba(0, 0, 0, 0.2) $boxShadow = 0 1px 6px 0 rgba(0, 0, 0, 0.2)
$boxShadowHover = 0 2px 16px 0 rgba(0, 0, 0, 0.2) $boxShadowHover = 0 2px 16px 0 rgba(0, 0, 0, 0.2)
$textShadow = 0 2px 4px rgba(0, 0, 0, 0.2); $textShadow = 0 2px 4px rgba(0, 0, 0, 0.1);
$borderRadius = .25rem $borderRadius = .25rem
$themePicker = { $themePicker = {

View File

@ -244,8 +244,8 @@ th, td
.valine-wrapper .valine-wrapper
#valine.v #valine.v
.vwrap .vwrap
background: #f2f2f2 background: #f0f2f4
box-shadow: $boxShadow // box-shadow: $boxShadow
.vcontrol .vcontrol
.vsubmit .vsubmit
background: #fff background: #fff
@ -264,22 +264,21 @@ th, td
.vsys .vsys
box-shadow: $boxShadow box-shadow: $boxShadow
.vmeta .vmeta
margin-bottom: 1rem
.vat .vat
background: #f2f2f2 margin-right: .3rem
background: #f0f2f4
box-shadow: $boxShadow box-shadow: $boxShadow
border-radius: $borderRadius border-radius: $borderRadius
padding: 0 .4rem padding: 0 .4rem
color: #313131 color: #313131
border: 1px solid #ededed border: 1px solid #ededed
.vcontent .vcontent
background: #f2f2f2 background: #f0f2f4
box-shadow: $boxShadow box-shadow: $boxShadow
border-radius: $borderRadius border-radius: $borderRadius
margin-right: 3.6rem margin: 0 .3rem
padding-top: .1rem padding: .1rem .6rem .05rem .6rem
padding-left: .6rem
padding-right: .6rem
padding-bottom: 0.05rem
p .at p .at
color: #1abc9c color: #1abc9c
.info .info
@ -295,9 +294,3 @@ th, td
.search-box input .search-box input
border-radius: $borderRadius border-radius: $borderRadius
/************** **************/
.back-to-ceiling
box-shadow: 0 9px 17px 0 rgba(0,0,0,0.2)!important
background-color: transparent!important