feat: 暗黑主题

This commit is contained in:
2026-07-13 00:04:11 +08:00
parent 0b9c253402
commit 36b04537b4
8 changed files with 1424 additions and 42 deletions

View File

@@ -60,13 +60,13 @@ posts.map((post) => {
}
.post {
background: #fff;
padding: 16px;
border-radius: 12px;
box-shadow: rgba(0, 0, 0, 0.05) 0px 1px 2px 0px;
display: flex;
align-items: center;
transition: transform 0.2s linear;
background: #fff;
}
.post:hover {
@@ -150,5 +150,15 @@ posts.map((post) => {
}
}
:global(.dark) .post {
background: #1f2937;
}
:global(.dark) .published-at {
color: #ffffff;
}
:global(.dark) .category-name {
background: #374151;
}
</style>