tailwindCSS

This commit is contained in:
tangly1024.com
2023-05-29 12:04:54 +08:00
parent 4d6df0ef68
commit bc6b64ed21
2 changed files with 2 additions and 4 deletions

View File

@@ -67,7 +67,6 @@ const LayoutBase = props => {
loadExternalResource('/css/theme-hexo.css', 'css')
}
const fixStyleObject = !CONFIG_HEXO.HOME_BANNER_ENABLE ? { paddingTop: '4rem' }:{}
return (
<div id='theme-hexo'>
<CommonHead meta={meta} siteInfo={siteInfo}/>
@@ -76,7 +75,7 @@ const LayoutBase = props => {
{headerSlot}
<main id="wrapper" className="bg-hexo-background-gray dark:bg-black w-full py-8 md:px-8 lg:px-24 min-h-screen relative" style={fixStyleObject}>
<main id="wrapper" className={`${CONFIG_HEXO.HOME_BANNER_ENABLE ? '' : 'pt-16'} bg-hexo-background-gray dark:bg-black w-full py-8 md:px-8 lg:px-24 min-h-screen relative`}>
<div id="container-inner" className={(BLOG.LAYOUT_SIDEBAR_REVERSE ? 'flex-row-reverse' : '') + ' w-full mx-auto lg:flex lg:space-x-4 justify-center relative z-10'} >
<div className={'w-full max-w-4xl h-full ' + props.className}>
{onLoading ? <LoadingCover /> : children}

View File

@@ -42,7 +42,6 @@ const LayoutBase = props => {
if (isBrowser()) {
loadExternalResource('/css/theme-matery.css', 'css')
}
const fixStyleObject = !CONFIG_MATERY.HOME_BANNER_ENABLE ? { paddingTop: '4rem' } : {}
return (
<div id='theme-matery' className="min-h-screen flex flex-col justify-between bg-hexo-background-gray dark:bg-black w-full">
@@ -53,7 +52,7 @@ const LayoutBase = props => {
{headerSlot}
<main id="wrapper" className="flex-1 w-full py-8 md:px-8 lg:px-24 relative" style={fixStyleObject}>
<main id="wrapper" className={`${CONFIG_MATERY.HOME_BANNER_ENABLE ? '' : 'pt-16'} flex-1 w-full py-8 md:px-8 lg:px-24 relative`}>
{/* 嵌入区域 */}
<div id="container-slot" className={`w-full max-w-6xl ${props?.post && ' lg:max-w-3xl 2xl:max-w-4xl '} mt-6 px-3 mx-auto lg:flex lg:space-x-4 justify-center relative z-10`}>
{props.containerSlot}