diff --git a/.gitignore b/.gitignore index 9d69756..1ff0b86 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ node_modules yarn-error.log .idea +.DS_Store diff --git a/packages/vuepress-theme-reco/components/SidebarLink.vue b/packages/vuepress-theme-reco/components/SidebarLink.vue index 2fae571..ff0ac93 100644 --- a/packages/vuepress-theme-reco/components/SidebarLink.vue +++ b/packages/vuepress-theme-reco/components/SidebarLink.vue @@ -92,7 +92,7 @@ a.sidebar-link display block!important color var(--text-color) padding 0.35rem 1rem 0.35rem 2.25rem - line-height 1.4 + line-height 1.7 background var(--background-color) // margin 0 0 0 1.5rem box-sizing: border-box diff --git a/packages/vuepress-theme-reco/enhanceApp.js b/packages/vuepress-theme-reco/enhanceApp.js index cd60d30..0c8d68d 100644 --- a/packages/vuepress-theme-reco/enhanceApp.js +++ b/packages/vuepress-theme-reco/enhanceApp.js @@ -1,5 +1,7 @@ import postMixin from '@theme/mixins/posts' import localMixin from '@theme/mixins/locales' +import { addLinkToHead } from '@theme/helpers/utils' +import { registerCodeThemeCss } from '@theme/helpers/other' export default ({ Vue, @@ -9,16 +11,7 @@ export default ({ Vue.mixin(postMixin) Vue.mixin(localMixin) if (!isServer) { - _registerCodeThemeCss(siteData.themeConfig.codeTheme) + addLinkToHead('//at.alicdn.com/t/font_1030519_2ciwdtb4x65.css') + registerCodeThemeCss(siteData.themeConfig.codeTheme) } } - -function _registerCodeThemeCss (theme = 'tomorrow') { - const themeArr = ['tomorrow', 'funky', 'okaidia', 'solarizedlight', 'default'] - - const link = document.createElement('link') - link.rel = 'stylesheet' - link.href = `//prismjs.com/themes/prism${themeArr.indexOf(theme) > -1 ? `-${theme}` : ''}.css` - - document.head.append(link) -} diff --git a/packages/vuepress-theme-reco/helpers/other.js b/packages/vuepress-theme-reco/helpers/other.js index be54318..597e88b 100644 --- a/packages/vuepress-theme-reco/helpers/other.js +++ b/packages/vuepress-theme-reco/helpers/other.js @@ -1,3 +1,4 @@ +import { addLinkToHead } from './utils' export function getOneColor () { const tagColorArr = [ '#e15b64', @@ -16,3 +17,10 @@ export function getOneColor () { const index = Math.floor(Math.random() * tagColorArr.length) return tagColorArr[index] } + +export function registerCodeThemeCss (theme = 'tomorrow') { + const themeArr = ['tomorrow', 'funky', 'okaidia', 'solarizedlight', 'default'] + const href = `//prismjs.com/themes/prism${themeArr.indexOf(theme) > -1 ? `-${theme}` : ''}.css` + + addLinkToHead(href) +} diff --git a/packages/vuepress-theme-reco/helpers/utils.js b/packages/vuepress-theme-reco/helpers/utils.js index d89103b..92dc1f7 100644 --- a/packages/vuepress-theme-reco/helpers/utils.js +++ b/packages/vuepress-theme-reco/helpers/utils.js @@ -243,6 +243,15 @@ export function compareDate (a, b) { return getTimeNum(b) - getTimeNum(a) } +// 向 head 中添加 style +export function addLinkToHead (href) { + const iconLink = document.createElement('link') + iconLink.rel = 'stylesheet' + iconLink.href = href + + document.head.append(iconLink) +} + function ensureEndingSlash (path) { return /(\.html|\/)$/.test(path) ? path diff --git a/packages/vuepress-theme-reco/images/home-bg.jpg b/packages/vuepress-theme-reco/images/home-bg.jpg index 02d4a81..9926b80 100644 Binary files a/packages/vuepress-theme-reco/images/home-bg.jpg and b/packages/vuepress-theme-reco/images/home-bg.jpg differ diff --git a/packages/vuepress-theme-reco/images/home-head.png b/packages/vuepress-theme-reco/images/home-head.png index 7224726..4f1eb9f 100644 Binary files a/packages/vuepress-theme-reco/images/home-head.png and b/packages/vuepress-theme-reco/images/home-head.png differ diff --git a/packages/vuepress-theme-reco/styles/iconfont.css b/packages/vuepress-theme-reco/styles/iconfont.css deleted file mode 100644 index 63028ad..0000000 --- a/packages/vuepress-theme-reco/styles/iconfont.css +++ /dev/null @@ -1,174 +0,0 @@ -@font-face { - font-family:"iconfont"; - src: url('//at.alicdn.com/t/font_1030519_ookn0nnv0z8.eot?t=1574737898757'); - /* IE9 */ - src: url('//at.alicdn.com/t/font_1030519_ookn0nnv0z8.eot?t=1574737898757#iefix') format('embedded-opentype'), - /*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WHmvBKfoDefrfRKCut9CVAwR0u4HFcaMeZcSun2OoDhat1nywkExOuTD/2BsM5Sil/j9xVIp295dBdWib2QsIgzqKz5Ugw1FFvu1OzqcZ7FrkYxeL0l1/by65bddpIuXZTfcCoLiaN1myQuHdOU61D78D8Y2Q+mZ6G3vf7FU2nx7v9w4uG/CXBOVRV1f8aGBFGw8ZpHFfgUSzjhf7NpeXkavlzRCXj+vwcwCL7lMH7ysQ+J8k0R75lrY4IALHvgQQAj4i9h/AhAw4CBAKm2iRDKVzmRz+UKxVK5Ua/VGs9XudHv9wXA0nkxn84XB95hRmgM2b/QJ9OxllnJys8RDDd2CtULEI25oKkLxqfegGKVsR16X04LchtpixKokbLyMxNFE0tTcaQGaz6IJyynJgv0ovnFT1aQGb6RDW8+ZaSenWfw0hDbP1RdEPirE0ziFnS4TcE3NhELIY+9kwq0Bnx02+n14WbcyY9JjqbV3NFMc14GHsrEens/ztOELplAgmpH1GdwRVjovsDU+/0+UWh/AoxOZjII4yZ0Kx1ZkEvVGfHo98J9RTPLT1kxrSiD9TDyhkpRjgGenb1LVrmxfRza5YSbeAQA=') format('woff2'), url('//at.alicdn.com/t/font_1030519_ookn0nnv0z8.woff?t=1574737898757') format('woff'), url('//at.alicdn.com/t/font_1030519_ookn0nnv0z8.ttf?t=1574737898757') format('truetype'), - /* chrome, firefox, opera, Safari, Android, iOS 4.2+ */ - url('//at.alicdn.com/t/font_1030519_ookn0nnv0z8.svg?t=1574737898757#iconfont') format('svg'); - /* iOS 4.1- */ -} -.iconfont { - font-family:"iconfont" !important; - font-size: 16px; - font-style: normal; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} -.reco-douban:before { - content:"\e603"; -} -.reco-wechat:before { - content:"\e720"; -} -.reco-color:before { - content:"\eae9"; -} -.reco-blog:before { - content:"\e61d"; -} -.reco-sf:before { - content:"\e610"; -} -.reco-message:before { - content:"\e634"; -} -.reco-eye:before { - content:"\e669"; -} -.reco-search:before { - content:"\e611"; -} -.reco-category:before { - content:"\e61e"; -} -.reco-npm:before { - content:"\e88d"; -} -.reco-menu:before { - content:"\e67c"; -} -.reco-suggestion:before { - content:"\e608"; -} -.reco-coding:before { - content:"\e601"; -} -.reco-github:before { - content:"\e628"; -} -.reco-mail:before { - content:"\e624"; -} -.reco-other:before { - content:"\e60e"; -} -.reco-home:before { - content:"\e65b"; -} -.reco-document:before { - content:"\e67a"; -} -.reco-huawei:before { - content:"\e6b9"; -} -.reco-up:before { - content:"\e68b"; -} -.reco-weibo:before { - content:"\e612"; -} -.reco-lock:before { - content:"\e60f"; -} -.reco-fullscreen:before { - content:"\e602"; -} -.reco-tag:before { - content:"\e633"; -} -.reco-date:before { - content:"\e63b"; -} -.reco-jianshu:before { - content:"\e60c"; -} -.reco-friend:before { - content:"\e62f"; -} -.reco-bokeyuan:before { - content:"\e626"; -} -.reco-beian:before { - content:"\e667"; -} -.reco-copyright:before { - content:"\ef87"; -} -.reco-rss:before { - content:"\f09d"; -} -.reco-bilibili:before { - content:"\e630"; -} -.reco-account:before { - content:"\e607"; -} -.reco-qq:before { - content:"\e67b"; -} -.reco-theme:before { - content:"\e7e8"; -} -.reco-three:before { - content:"\e644"; -} -.reco-gitlab:before { - content:"\e63c"; -} -.reco-api:before { - content:"\e662"; -} -.reco-mayun:before { - content:"\e6d0"; -} -.reco-zhihu:before { - content:"\e605"; -} -.reco-facebook:before { - content:"\e606"; -} -.reco-taobao:before { - content:"\e6a5"; -} -.reco-tongzhi:before { - content:"\e764"; -} -.reco-douyin:before { - content:"\e654"; -} -.reco-v2ex:before { - content:"\e62a"; -} -.reco-sticky:before { - content:"\e62b"; -} -.reco-toutiao:before { - content:"\e6b7"; -} -.reco-linkedin:before { - content:"\e668"; -} -.reco-faq:before { - content:"\e643"; -} -.reco-twitter:before { - content:"\e60b"; -} -.reco-csdn:before { - content:"\e609"; -} -.reco-juejin:before { - content:"\e613"; -} diff --git a/packages/vuepress-theme-reco/styles/palette.styl b/packages/vuepress-theme-reco/styles/palette.styl index 21b758e..8482582 100644 --- a/packages/vuepress-theme-reco/styles/palette.styl +++ b/packages/vuepress-theme-reco/styles/palette.styl @@ -49,3 +49,4 @@ $maskColorDark ?= #000 $homePageWidth = 1126px $contentWidth = 860px $sidebarWidth = 18rem +$accentColor = #2c3e50 diff --git a/packages/vuepress-theme-reco/styles/theme.styl b/packages/vuepress-theme-reco/styles/theme.styl index 24ab575..0f5796a 100644 --- a/packages/vuepress-theme-reco/styles/theme.styl +++ b/packages/vuepress-theme-reco/styles/theme.styl @@ -4,7 +4,7 @@ @require './arrow' @require './wrapper' @require './toc' -@require './iconfont.css' +// @require './iconfont.css' html, body padding 0 @@ -149,7 +149,7 @@ code, kbd, .line-number font-family source-code-pro, Menlo, Monaco, Consolas, "Courier New", monospace p, ul, ol - line-height 1.7 + line-height 2.2 hr border 0