Skip to content

Commit 253059c

Browse files
committed
统一圆角变量为 --radius,修复无效语法
1 parent 3b9a2a9 commit 253059c

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/styles/index.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ a > code::before {
170170
left: 0;
171171
display: block;
172172
background: var(--theme-accent);
173-
border-radius: var(--border-radius);
173+
border-radius: var(--radius);
174174
}
175175

176176
strong {

src/styles/markdown.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ body {
1616
height: auto;
1717
object-fit: cover;
1818
background-color: #f3f4f6;
19-
border-radius: var(--img-radius, 8px);
19+
border-radius: var(--radius);
2020
}
2121

2222
/* Remove border-radius during PhotoSwipe zoom animation */
@@ -1039,7 +1039,7 @@ code.language-mermaid {
10391039
.heti pre.plantuml-image-container {
10401040
padding: 0;
10411041
background: transparent;
1042-
border-radius: none;
1042+
border-radius: 0;
10431043
}
10441044

10451045
.heti pre.plantuml-image-container .plantuml-image {
@@ -1203,5 +1203,5 @@ img[loading="lazy"] {
12031203
}
12041204

12051205
.pswp--anim-complete .pswp__img {
1206-
clip-path: inset(0 round var(--img-radius, 8px));
1206+
clip-path: inset(0 round var(--radius));
12071207
}

0 commit comments

Comments
 (0)