Skip to content

Commit 2300983

Browse files
committed
fix(site): 修复暗色模式
1 parent 9ca6701 commit 2300983

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

examples/sites/src/views/components-doc/components/demo.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,13 +337,15 @@ onBeforeUnmount(() => {
337337
338338
:global(.dark .pc-demo-container.pc-demo-container) {
339339
background-color: #1a1a1a;
340+
border: none;
340341
}
341342
.pc-demo-container {
342343
display: flex;
343344
flex-direction: column;
344345
color: var(--tv-color-text);
345-
background: var(--tv-color-bg);
346+
background: #fff;
346347
border-radius: 6px;
348+
border: 1px solid #dcdfe6;
347349
padding: 26px 18px 42px;
348350
349351
.pc-demo {

examples/sites/src/views/components-doc/components/float-settings.vue

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ export default defineComponent({
338338
font-size: 14px;
339339
line-height: 32px;
340340
font-weight: 600;
341-
color: #000000;
341+
color: var(--tv-color-text);
342342
}
343343
344344
.style-settings-options-group {
@@ -361,7 +361,10 @@ export default defineComponent({
361361
}
362362
.tiny-popover.tiny-popper.theme-settings-popover {
363363
border-radius: 12px;
364-
background-color: #ffffff;
364+
background-color: var(--tv-color-bg);
365+
}
366+
.dark .tiny-popover.tiny-popper.theme-settings-popover {
367+
background-color: var(--tv-color-bg-dark);
365368
}
366369
367370
.theme-settings-menu {

0 commit comments

Comments
 (0)