From 86db7bdc023746040b844d2e67fedff8395d6c3b Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Thu, 6 Oct 2022 00:06:46 +0800 Subject: [PATCH] css --- layout/_partial/sidebar/widgets/ghuser.ejs | 2 +- source/css/_layout/sidebar/ghuser.styl | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/layout/_partial/sidebar/widgets/ghuser.ejs b/layout/_partial/sidebar/widgets/ghuser.ejs index 8e459ff..af64233 100644 --- a/layout/_partial/sidebar/widgets/ghuser.ejs +++ b/layout/_partial/sidebar/widgets/ghuser.ejs @@ -21,7 +21,7 @@ function layoutDiv() { el += '
'; el += '
'; - el += ''; + el += '
'; // username el += '
'; el += item.username; diff --git a/source/css/_layout/sidebar/ghuser.styl b/source/css/_layout/sidebar/ghuser.styl index 220e866..9873790 100644 --- a/source/css/_layout/sidebar/ghuser.styl +++ b/source/css/_layout/sidebar/ghuser.styl @@ -4,14 +4,16 @@ align-items: center background: var(--card) border-radius: $border-card - padding: 1rem + padding: 2rem 1rem 1rem margin: 'calc(%s + 1.25rem)' % var(--gap-p) 0 .widget-wrap#github-user .widget-body .avatar display: block border-radius: 100% + margin: auto max-width: 80% - margin-top: 1.5rem + @media screen and (max-width: $device-tablet) + max-width: 50% .widget-wrap#github-user .widget-body .username font-weight: 900