This commit is contained in:
xaoxuu 2022-10-15 00:28:26 +08:00
parent 7442e12d9d
commit 603fa7b07f
4 changed files with 9 additions and 7 deletions

View File

@ -6,7 +6,7 @@ if (page.layout === 'wiki' && page.wiki) {
function layoutTitle(main, url, sub) { function layoutTitle(main, url, sub) {
var el = ''; var el = '';
el += '<a class="title" href="' + url_for(url || "/") + '">'; el += '<a class="title" href="' + url_for(url || "/") + '">';
el += '<div class="main">' + main + '</div>'; el += '<div class="main" ff="title">' + main + '</div>';
if (sub) { if (sub) {
let arr = sub.split('|'); let arr = sub.split('|');
if (arr.length > 1) { if (arr.length > 1) {

View File

@ -3,17 +3,17 @@ var btns = [];
btns.push({ btns.push({
key: 'followers', key: 'followers',
desc: 'followers', desc: 'followers',
href: '?tab=followers' tab: 'followers'
}); });
btns.push({ btns.push({
key: 'following', key: 'following',
desc: 'following', desc: 'following',
href: '?tab=following' tab: 'following'
}); });
btns.push({ btns.push({
key: 'public_repos', key: 'public_repos',
desc: 'repos', desc: 'repos',
href: '?tab=repositories' tab: 'repositories'
}); });
function layoutDiv() { function layoutDiv() {
@ -35,12 +35,12 @@ function layoutDiv() {
el += '<div class="avatar" ><img no-lazy type="img" id="avatar_url" src="' + config.avatar + '"></div>'; el += '<div class="avatar" ><img no-lazy type="img" id="avatar_url" src="' + config.avatar + '"></div>';
} }
// username // username
el += '<p class="username" type="text" id="name" href="https://github.com/' + item.username + '">&nbsp;</p>'; el += '<p class="username" ff="title" type="text" id="name">&nbsp;</p>';
el += '<p class="bio" type="text" id="bio">&nbsp;</p>'; el += '<p class="bio" type="text" id="bio">&nbsp;</p>';
el += '<div class="buttons">'; el += '<div class="buttons">';
btns.forEach((btn, i) => { btns.forEach((btn, i) => {
el += '<a class="btn" href="https://github.com/' + item.username + '' + btn.href + '">'; el += '<a class="btn" href="https://github.com/' + item.username + '?tab=' + btn.tab + '">';
el += '<span class="title" type="text" id="' + btn.key + '">0</span>'; el += '<span class="title" type="text" id="' + btn.key + '">0</span>';
el += '<span class="desc">' + btn.desc + '</span>'; el += '<span class="desc">' + btn.desc + '</span>';
el += '</a>'; el += '</a>';

View File

@ -53,3 +53,6 @@ table:not([class])
trans() trans()
&:hover &:hover
background: var(--block) background: var(--block)
*[ff=title]
font-family: $ff-logo

View File

@ -75,7 +75,6 @@
font-weight: 900 font-weight: 900
color: inherit color: inherit
line-height: 1.2 line-height: 1.2
font-family: $ff-logo
display: block display: block
position: relative position: relative
.main .main