Skip to content

Commit 906d9a4

Browse files
committed
🐛 fix: 修正表格行列调整组件
1 parent ed7c1f9 commit 906d9a4

2 files changed

Lines changed: 21 additions & 9 deletions

File tree

docs/TODO.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,5 @@
1212
- [x] 表格样式待优化
1313
- [x] github警告框下引用块颜色保持一致
1414
- [x] 左侧大纲只有二级标题没有一级标题时参考线显示异常
15-
16-
17-
18-
---
19-
20-
- [ ] 暗色主题
15+
- [x] 暗色主题
16+
- [ ] 表格行列调整组件会被代码块遮挡

onelight.css

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,23 @@ figure.md-table-fig.table-figure {
400400
width: fit-content;
401401
}
402402

403+
#write td.md-reset {
404+
border: 0;
405+
padding: 0 !important;
406+
}
407+
408+
.md-grid-board a {
409+
border: 0;
410+
}
411+
412+
tr.md-reset {
413+
background: var(--theme-light-color) !important;
414+
}
415+
416+
td.md-reset.md-grid-ext>a {
417+
margin: 0;
418+
padding: 0;
419+
}
403420

404421
/* ---------------->> 表格行 <<---------------- */
405422
#write table tr {
@@ -416,7 +433,6 @@ figure.md-table-fig.table-figure {
416433
#write table tr th {
417434
border: 0.5px solid var(--tb-border-color);
418435
font-size: .9rem;
419-
font-size: .9rem;
420436
line-height: 1.5;
421437
padding: 5px 10px;
422438
}
@@ -460,7 +476,7 @@ code {
460476
/* ---------------->> 代码块光标 <<---------------- */
461477
.CodeMirror div.CodeMirror-cursor {
462478
border-left: 1.5px solid var(--main-green);
463-
z-index: 5;
479+
/* z-index: 5; */
464480
}
465481

466482

@@ -1245,7 +1261,7 @@ pre.md-fences.md-end-block.md-fences-with-lineno.ty-contain-cm::after {
12451261
color: #e0e0e0;
12461262
padding: 2px 5px;
12471263
border-radius: var(--radius-small);
1248-
z-index: 100;
1264+
z-index: 20;
12491265
}
12501266

12511267

0 commit comments

Comments
 (0)