Skip to content

Commit

Permalink
perf: 优化文章归档页 UI
Browse files Browse the repository at this point in the history
  • Loading branch information
pengzhanbo committed Feb 2, 2024
1 parent 15c1f52 commit c1e0c85
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions theme/src/client/components/Archives.vue
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,36 @@ const { archives } = useArchives()
font-size: 18px;
font-weight: 700;
}
@media (min-width: 768px) {
.archives-wrapper {
padding: 32px 0;
margin-left: 20px;
}
.archives-title {
display: none;
}
.archive {
padding: 20px;
margin-bottom: 24px;
background-color: var(--vp-c-bg);
border-bottom: none;
border-radius: 8px;
box-shadow: var(--vp-shadow-2);
}
.archive-title {
padding-bottom: 10px;
margin-top: 0;
border-bottom: solid 1px var(--vp-c-divider);
}
}
@media (min-width: 960px) {
.archives-wrapper {
margin-left: auto;
}
}
</style>

0 comments on commit c1e0c85

Please sign in to comment.