Skip to content

Commit

Permalink
feat(css): 优化图片样式
Browse files Browse the repository at this point in the history
  • Loading branch information
Octobug committed Mar 11, 2024
1 parent cf60a05 commit ba413fe
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .vitepress/theme/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,12 @@ p>a>img[alt^="Badge:"] {
/* image */
.main figure img {
border-radius: 0.5rem;
box-shadow: 0 0.5rem 0.8rem var(--vp-c-default-soft);
margin-bottom: 0.8rem;
border: 1px solid var(--vp-c-default-1);
margin-bottom: 0.5rem;
margin-left: auto;
margin-right: auto;
}

.dark .main figure img {
border: 0.1rem solid var(--vp-c-neutral);
box-shadow: none;
}

figure>figcaption {
text-align: center;
color: #8899a8;
Expand Down

0 comments on commit ba413fe

Please sign in to comment.