From 72e2702f76d88c44da17af7d9e1af35e61534798 Mon Sep 17 00:00:00 2001 From: Ivan Li Date: Sun, 4 Jul 2021 08:47:59 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=A0=B7=E5=BC=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- next.config.js | 5 +++++ pages/articles/article.module.css | 3 +++ pages/index.module.css | 14 +++++++------- 3 files changed, 15 insertions(+), 7 deletions(-) create mode 100644 next.config.js diff --git a/next.config.js b/next.config.js new file mode 100644 index 0000000..c98cb2f --- /dev/null +++ b/next.config.js @@ -0,0 +1,5 @@ +module.exports = { + webpack: (config, { buildId, dev, isServer, defaultLoaders, webpack }) => { + return config; + }, +}; diff --git a/pages/articles/article.module.css b/pages/articles/article.module.css index 8a52830..284436c 100644 --- a/pages/articles/article.module.css +++ b/pages/articles/article.module.css @@ -95,6 +95,9 @@ @apply bg-green-800 bg-opacity-20 text-green-400; } } + code:global(.hljs) { + @apply text-sm; + } :global { :not(:global(.dark)) & { diff --git a/pages/index.module.css b/pages/index.module.css index 211ac9e..3ce7476 100644 --- a/pages/index.module.css +++ b/pages/index.module.css @@ -6,20 +6,20 @@ .item { @apply my-2 mx-4 px-4 overflow-hidden; @apply rounded-md shadow-sm hover:shadow; - @apply bg-gray-50 hover:bg-white; + @apply bg-gray-50 hover:bg-white cursor-pointer; :global(.dark) & { @apply bg-gray-800; } - + .title { - @apply text-lg my-4; + @apply text-xl my-4; } .description { - @apply text-sm text-gray-600 leading-6 my-4; + @apply text-base text-gray-600 leading-6 my-4 font-light; - :global(.dark) & { - @apply text-gray-400; - } + :global(.dark) & { + @apply text-gray-400; + } } }