font
This commit is contained in:
parent
7442e12d9d
commit
603fa7b07f
|
@ -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) {
|
||||||
|
|
|
@ -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 + '"> </p>';
|
el += '<p class="username" ff="title" type="text" id="name"> </p>';
|
||||||
el += '<p class="bio" type="text" id="bio"> </p>';
|
el += '<p class="bio" type="text" id="bio"> </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>';
|
||||||
|
|
|
@ -53,3 +53,6 @@ table:not([class])
|
||||||
trans()
|
trans()
|
||||||
&:hover
|
&:hover
|
||||||
background: var(--block)
|
background: var(--block)
|
||||||
|
|
||||||
|
*[ff=title]
|
||||||
|
font-family: $ff-logo
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue