Skip to content

Commit 5bd239e

Browse files
committed
style: fix SpreadSheet dark mode display (#1533)
1 parent 73163eb commit 5bd239e

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/guide/extras/demos/SpreadSheet.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ const cols = cells.map((_, i) => String.fromCharCode(65 + i))
2626

2727
<style scoped>
2828
th {
29-
background-color: #eee;
29+
color: var(--vt-c-text-1);
30+
background-color: var(--vt-c-bg-mute);
3031
padding: 0 1em;
3132
}
3233
@@ -39,7 +40,7 @@ tr:first-of-type th:first-of-type {
3940
}
4041
4142
td {
42-
border: 1px solid #ccc;
43+
border: 1px solid var(--vt-c-bg-mute);
4344
padding: 0;
4445
}
4546
</style>

src/guide/extras/demos/SpreadSheetCell.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ function update(e) {
3333
height: 1.5em;
3434
line-height: 1.5;
3535
font-size: 15px;
36+
color: var(--vt-c-text-1);
3637
}
3738
3839
.cell span {
@@ -46,7 +47,7 @@ function update(e) {
4647
}
4748
4849
.cell input:focus {
49-
border: 2px solid blue;
50-
background-color: #fff;
50+
border: 2px solid var(--vt-c-divider);
51+
color: var(--vt-c-text-1);
5152
}
5253
</style>

0 commit comments

Comments
 (0)