From 603fa7b07f9484cd01e0a5381db5f7741bdd038c Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Sat, 15 Oct 2022 00:28:26 +0800 Subject: [PATCH] font --- layout/_partial/sidebar/logo.ejs | 2 +- layout/_partial/sidebar/widgets/ghuser.ejs | 10 +++++----- source/css/_common/base.styl | 3 +++ source/css/_layout/sidebar/sidebar.styl | 1 - 4 files changed, 9 insertions(+), 7 deletions(-) diff --git a/layout/_partial/sidebar/logo.ejs b/layout/_partial/sidebar/logo.ejs index f4168a3..1616b83 100644 --- a/layout/_partial/sidebar/logo.ejs +++ b/layout/_partial/sidebar/logo.ejs @@ -6,7 +6,7 @@ if (page.layout === 'wiki' && page.wiki) { function layoutTitle(main, url, sub) { var el = ''; el += ''; - el += '
' + main + '
'; + el += '
' + main + '
'; if (sub) { let arr = sub.split('|'); if (arr.length > 1) { diff --git a/layout/_partial/sidebar/widgets/ghuser.ejs b/layout/_partial/sidebar/widgets/ghuser.ejs index 66d2df3..202e845 100644 --- a/layout/_partial/sidebar/widgets/ghuser.ejs +++ b/layout/_partial/sidebar/widgets/ghuser.ejs @@ -3,17 +3,17 @@ var btns = []; btns.push({ key: 'followers', desc: 'followers', - href: '?tab=followers' + tab: 'followers' }); btns.push({ key: 'following', desc: 'following', - href: '?tab=following' + tab: 'following' }); btns.push({ key: 'public_repos', desc: 'repos', - href: '?tab=repositories' + tab: 'repositories' }); function layoutDiv() { @@ -35,12 +35,12 @@ function layoutDiv() { el += '
'; } // username - el += '

 

'; + el += '

 

'; el += '

 

'; el += '
'; btns.forEach((btn, i) => { - el += ''; + el += ''; el += '0'; el += '' + btn.desc + ''; el += ''; diff --git a/source/css/_common/base.styl b/source/css/_common/base.styl index 8d3929e..04bf759 100644 --- a/source/css/_common/base.styl +++ b/source/css/_common/base.styl @@ -53,3 +53,6 @@ table:not([class]) trans() &:hover background: var(--block) + +*[ff=title] + font-family: $ff-logo \ No newline at end of file diff --git a/source/css/_layout/sidebar/sidebar.styl b/source/css/_layout/sidebar/sidebar.styl index 355f560..6d3759a 100644 --- a/source/css/_layout/sidebar/sidebar.styl +++ b/source/css/_layout/sidebar/sidebar.styl @@ -75,7 +75,6 @@ font-weight: 900 color: inherit line-height: 1.2 - font-family: $ff-logo display: block position: relative .main