diff --git a/layout/_partial/sidebar/index.ejs b/layout/_partial/sidebar/index.ejs index 7e4f482..e37dd74 100755 --- a/layout/_partial/sidebar/index.ejs +++ b/layout/_partial/sidebar/index.ejs @@ -11,30 +11,48 @@ if (page.sidebar == undefined) { } function layoutFooterDiv() { if (theme.footer.social && theme.footer.social.length > 0) { - var el = ''; + } else { + el += '
'; + } + el += ''; return el; } else { return ''; diff --git a/source/css/_layout/sidebar/footer.styl b/source/css/_layout/sidebar/footer.styl index 6af1ba2..af02678 100644 --- a/source/css/_layout/sidebar/footer.styl +++ b/source/css/_layout/sidebar/footer.styl @@ -1,8 +1,6 @@ .l_left .footer margin-top: 0 margin-bottom: 1rem - line-height: 0 - .social-wrap display: grid @@ -27,3 +25,22 @@ if hexo-config('style.darkmode') == 'auto' @media (prefers-color-scheme: dark) box-shadow: none + +.proj-wrap + display: grid + grid-gap: 0.25rem 0.25rem + a.item + border-radius: 4px + font-size: $fs-13 + font-weight: 500 + color: var(--text-p2) + background: var(--block) + border: 1px solid var(--block-border) + overflow: hidden + padding: .75em + text-align: center + svg + margin-right: .5em + &:hover + color: $color-hover + background: var(--card)