feat: 样式调整

This commit is contained in:
Ivan Li 2021-07-04 08:47:59 +08:00
parent 959a2e9a33
commit 72e2702f76
3 changed files with 15 additions and 7 deletions

5
next.config.js Normal file
View File

@ -0,0 +1,5 @@
module.exports = {
webpack: (config, { buildId, dev, isServer, defaultLoaders, webpack }) => {
return config;
},
};

View File

@ -95,6 +95,9 @@
@apply bg-green-800 bg-opacity-20 text-green-400;
}
}
code:global(.hljs) {
@apply text-sm;
}
:global {
:not(:global(.dark)) & {

View File

@ -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;
}
}
}