From a0e5c5c2dc86a65ab82dc00a72636578f0c5b074 Mon Sep 17 00:00:00 2001 From: "tangly1024.com" Date: Sat, 14 Sep 2024 11:40:16 +0800 Subject: [PATCH] =?UTF-8?q?Magzine=20=E5=B8=83=E5=B1=80=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tailwind.config.js | 13 +++++++++--- themes/magzine/components/Footer.js | 2 +- themes/magzine/components/Header.js | 2 +- themes/magzine/components/Hero.js | 12 +++++------ themes/magzine/components/PostItemCard.js | 2 +- .../magzine/components/PostItemCardSimple.js | 2 +- themes/magzine/components/PostItemCardTop.js | 2 +- themes/magzine/components/PostItemCardWide.js | 19 +++++++++--------- .../magzine/components/PostListHorizontal.js | 6 ++++-- .../magzine/components/PostListRecommend.js | 2 +- .../components/PostListSimpleHorizontal.js | 20 ++++++++++++++----- themes/magzine/index.js | 14 ++++++------- 12 files changed, 57 insertions(+), 39 deletions(-) diff --git a/tailwind.config.js b/tailwind.config.js index 82b0af3f..485f82c5 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -2,7 +2,12 @@ const BLOG = require('./blog.config') const { fontFamilies } = require('./lib/font') module.exports = { - content: ['./pages/**/*.js', './components/**/*.js', './layouts/**/*.js', './themes/**/*.js'], + content: [ + './pages/**/*.js', + './components/**/*.js', + './layouts/**/*.js', + './themes/**/*.js' + ], darkMode: BLOG.APPEARANCE === 'class' ? 'media' : 'class', // or 'media' or 'class' theme: { fontFamily: fontFamilies, @@ -19,8 +24,9 @@ module.exports = { xl: '1140px', // => @media (min-width: 1200px) { ... } - '2xl': '1320px' + '2xl': '1320px', // => @media (min-width: 1400px) { ... } + '3xl': '1920px' }, container: { center: true, @@ -64,7 +70,8 @@ module.exports = { }, maxWidth: { side: '14rem', - '9/10': '90%' + '9/10': '90%', + 'screen-3xl': '1440px' }, boxShadow: { input: '0px 7px 20px rgba(0, 0, 0, 0.03)', diff --git a/themes/magzine/components/Footer.js b/themes/magzine/components/Footer.js index 37d935bf..9cd2fa0f 100644 --- a/themes/magzine/components/Footer.js +++ b/themes/magzine/components/Footer.js @@ -19,7 +19,7 @@ const Footer = ({ title }) => { return (