Skip to content

Commit

Permalink
v1.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
xugaoyi committed Dec 21, 2020
1 parent c09e4f0 commit b410bf5
Show file tree
Hide file tree
Showing 10 changed files with 30 additions and 148 deletions.
2 changes: 1 addition & 1 deletion docs/.vuepress/config/themeConfig/htmlModules.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module.exports = {
homeSidebarB:
`<!-- 纵向自适应 -->
<ins class="adsbygoogle"
style="display:block"
style="display:block;padding: 0.95rem;"
data-ad-client="ca-pub-7828333725993554"
data-ad-slot="7802654582"
data-ad-format="auto"
Expand Down
2 changes: 1 addition & 1 deletion docs/.vuepress/config/themeConfig/nav.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = [
text: '前端文章',
items: [
{ text: 'JavaScript', link: '/pages/8143cc480faf9a11/' },
{ text: 'Vue', link: '/pages/802a1ca6f7b71c59/' },
{ text: 'Vue', link: '/pages/5d463fbdb172d43b/' },
],
},
{
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
title: Vue CLi3 修改webpack配置
date: 2020-02-22 15:00:36
permalink: /pages/5d463fbdb172d43b
categories:
categories:
- 前端
- Vue文章
tags:
tags:
- null
author:
author:
name: xugaoyi
link: https://github.com/xugaoyi
---
Expand Down Expand Up @@ -127,4 +127,3 @@ module.exports = {
}
}
```

2 changes: 1 addition & 1 deletion docs/06.收藏夹/02.资源.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ article: false
> 待整理
## Vue
- [Vuesax](https://lusaxweb.github.io/vuesax/) 一个优质的vue的组件库
- [Vuesax](https://vuesax.com/) 一个优质的vue的组件库

## 移动端
- [fastclick](https://github.com/ftlabs/fastclick) 解决移动端点击延迟300ms问题
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"vuepress-plugin-one-click-copy": "^1.0.2",
"vuepress-plugin-thirdparty-search": "^1.0.2",
"vuepress-plugin-zooming": "^1.1.7",
"vuepress-theme-vdoing": "^1.7.0",
"vuepress-theme-vdoing": "^1.7.1",
"yamljs": "^0.3.0"
},
"dependencies": {
Expand Down
63 changes: 9 additions & 54 deletions theme-vdoing/components/ArchivesPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@
<ul>
<template v-for="(item, index) in postsList">
<li
v-if="(year = getYear(index)) !== getYear(index-1)"
class="year"
v-if="(year = getYear(index)) !== getYear(index-1)"
:key="index+$sortPostsByDate.length"
>
<h2>{{year}}</h2>
</li>
<li :key="index">
<router-link :to="item.path">
<i>{{ getDate(item) }}</i>
<span>{{ getDate(item) }}</span>
{{item.title}}
</router-link>
</li>
Expand Down Expand Up @@ -111,77 +111,32 @@ export default {
&.year
position sticky
top $navbarHeight
background var(--mainBg)
z-index 1
width: 80px
&+ li
position relative
&::before
content ''
display block
width .5rem
height .5rem
border-radius 50%
border 1px solid $accentColor
position absolute
left 4.25rem
top -2.1rem
a
position relative
&::after
content ''
display block
width 1px
height 1.5rem
background $accentColor
position absolute
left -1px
top -1.5rem
&.year:not(:first-child)
margin-top 3.5rem
h2
margin-top 0
margin-bottom 0.5rem
margin-bottom 0.8rem
font-weight 400
padding 0.5rem 0
border none
display inline-block
background var(--mainBg)
color $accentColor
a
display block
color var(--textColor)
transition padding 0.3s
padding 0.4rem 1.2rem
margin-left 4.5rem
border-left 1px solid $accentColor
padding 0.5rem 2rem
line-height 1.2rem
position: relative
&:hover
padding-left 1.5rem
color $activeColor
padding-left 2.5rem
color $accentColor
background #f9f9f9
&::before
transform scale(2)
background $activeColor
&::before
content ''
display block
width .3rem
height .3rem
border-radius 50%
background $accentColor
position: absolute;
top .9rem
left -0.18rem
transition all .5s
@media (max-width $contentWidth + 80)
padding 0.5rem 1rem
font-weight normal
&:hover
padding-left 1.5rem
i
span
opacity 0.6
font-size 0.9rem
font-size 0.85rem
font-weight 400
margin-right 0.3rem
.loadmore
Expand Down
4 changes: 2 additions & 2 deletions theme-vdoing/components/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -499,8 +499,8 @@ export default {
padding-bottom 2rem
.main-right
.custom-html-box
padding-left .95rem
padding-right .95rem
padding: 0;
overflow: hidden;
@keyframes heart
from
transform translate(0, 0)
Expand Down
2 changes: 1 addition & 1 deletion theme-vdoing/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vuepress-theme-vdoing",
"version": "1.7.0",
"version": "1.7.1",
"description": "Vdoing theme for VuePress. 一个基于VuePress的知识管理兼博客主题。",
"author": {
"name": "gaoyi(Evan) Xu"
Expand Down
12 changes: 11 additions & 1 deletion theme-vdoing/styles/code-theme.styl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ codeThemeLight()
pre[class*="language-"] {
color: black;
background: none;
// text-shadow: 0 1px white;
text-shadow: 0 1px white;
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
font-size: 1em;
text-align: left;
Expand Down Expand Up @@ -134,6 +134,16 @@ codeThemeLight()
cursor: help;
}

// 行高亮颜色
div[class*="language-"]
.highlight-lines
.highlighted
background-color rgba(200, 200, 200, 40%)
&.line-numbers-mode
.highlight-lines .highlighted
&:before
background-color rgba(200, 200, 200, 40%)


// 适合深色背景 // @import '~prismjs/themes/prism-tomorrow.css'
codeThemeDark()
Expand Down

0 comments on commit b410bf5

Please sign in to comment.