Skip to content

Commit af20ac7

Browse files
author
reco_luan
committed
fix: code style & default color var
1 parent c9b7ff3 commit af20ac7

File tree

5 files changed

+25
-1
lines changed

5 files changed

+25
-1
lines changed

components/Mode/modeOptions.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
const modeOptions = {
22
light: {
3+
'--default-color-10': 'rgba(255, 255, 255, 1)',
4+
'--default-color-9': 'rgba(255, 255, 255, .9)',
5+
'--default-color-8': 'rgba(255, 255, 255, .8)',
6+
'--default-color-7': 'rgba(255, 255, 255, .7)',
7+
'--default-color-6': 'rgba(255, 255, 255, .6)',
8+
'--default-color-5': 'rgba(255, 255, 255, .5)',
9+
'--default-color-4': 'rgba(255, 255, 255, .4)',
10+
'--default-color-3': 'rgba(255, 255, 255, .3)',
11+
'--default-color-2': 'rgba(255, 255, 255, .2)',
12+
'--default-color-1': 'rgba(255, 255, 255, .1)',
313
'--background-color': '#fff',
414
'--box-shadow': '0 1px 6px 0 rgba(0, 0, 0, 0.2)',
515
'--box-shadow-hover': '0 2px 16px 0 rgba(0, 0, 0, 0.2)',
@@ -9,6 +19,16 @@ const modeOptions = {
919
'--mask-color': '#888'
1020
},
1121
dark: {
22+
'--default-color-10': 'rgba(0, 0, 0, 1)',
23+
'--default-color-9': 'rgba(0, 0, 0, .9)',
24+
'--default-color-8': 'rgba(0, 0, 0, .8)',
25+
'--default-color-7': 'rgba(0, 0, 0, .7)',
26+
'--default-color-6': 'rgba(0, 0, 0, .6)',
27+
'--default-color-5': 'rgba(0, 0, 0, .5)',
28+
'--default-color-4': 'rgba(0, 0, 0, .4)',
29+
'--default-color-3': 'rgba(0, 0, 0, .3)',
30+
'--default-color-2': 'rgba(0, 0, 0, .2)',
31+
'--default-color-1': 'rgba(0, 0, 0, .1)',
1232
'--background-color': '#25272a',
1333
'--box-shadow': '0 1px 6px 0 rgba(0, 0, 0, .9)',
1434
'--box-shadow-hover': '0 2px 26px 0 rgba(0, 0, 0, .9)',

example/docs/.vuepress/config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module.exports = {
1111
themeConfig: {
1212
nav: [
1313
{ text: 'Home', link: '/', icon: 'reco-home' },
14-
{ text: 'TimeLine', link: '/timeLine/', icon: 'reco-date' },
14+
{ text: 'TimeLine', link: '/timeline/', icon: 'reco-date' },
1515
{ text: 'Contact',
1616
icon: 'reco-message',
1717
items: [
@@ -37,6 +37,7 @@ module.exports = {
3737
}
3838
},
3939
logo: '/head.png',
40+
authorAvatar: '/head.png',
4041
// 搜索设置
4142
search: true,
4243
searchMaxSuggestions: 10,

layouts/Category.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ export default {
107107

108108
<style src="../styles/theme.styl" lang="stylus"></style>
109109

110+
<style src="prismjs/themes/prism-tomorrow.css"></style>
110111
<style lang="stylus" scoped>
111112
@require '../styles/mode.styl'
112113
.categories-wrapper

layouts/Tag.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ export default {
9999

100100
<style src="../styles/theme.styl" lang="stylus"></style>
101101

102+
<style src="prismjs/themes/prism-tomorrow.css"></style>
102103
<style lang="stylus" scoped>
103104
@require '../styles/mode.styl'
104105
.tag-wrapper

layouts/Tags.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ export default {
8787
}
8888
</script>
8989

90+
<style src="prismjs/themes/prism-tomorrow.css"></style>
9091
<style src="../styles/theme.styl" lang="stylus"></style>
9192

9293
<style lang="stylus" scoped>

0 commit comments

Comments
 (0)