Skip to content

Commit dc450a8

Browse files
committed
fix inline demo dark mode bg
1 parent ad0067b commit dc450a8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.vitepress/theme/styles/inline-demo.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,15 @@
1717
}
1818

1919
.demo {
20-
transition: border-color 0.5s;
2120
padding: 22px 24px;
2221
border-radius: 8px;
2322
box-shadow: var(--vt-shadow-2);
2423
margin-bottom: 1.2em;
24+
transition: background-color 0.5s ease;
25+
}
26+
27+
.dark .demo {
28+
background-color: var(--vt-c-bg-soft);
2529
}
2630

2731
.demo p {

0 commit comments

Comments
 (0)