hexo 样式微调

This commit is contained in:
tangly1024
2022-03-08 14:52:21 +08:00
parent 3ea3fb9970
commit 64581d7147
6 changed files with 54 additions and 12 deletions

View File

@@ -16,10 +16,8 @@ const JumpToTopButton = ({ showPercent = true, percent }) => {
}
const { locale } = useGlobal()
return (<div className='flex space-x-1 items-center justify-center transform hover:scale-105 duration-200 text-white bg-blue-400 w-7 h-7 text-center' onClick={() => window.scrollTo({ top: 0, behavior: 'smooth' })} >
<div title={locale.POST.TOP} >
<i className='fas fa-arrow-up text-xs' />
</div>
{showPercent && (<div className='text-xs block lg:hidden'>{percent}%</div>)}
{!showPercent && <div title={locale.POST.TOP} ><i className='fas fa-arrow-up text-xs' /></div>}
{showPercent && (<div className='text-xs block lg:hidden'>{percent}</div>)}
</div>)
}