Zuoqiu-Yingyi / siyuan-theme-dark-plus

思源笔记的一款多功能双模式主题 | A multifunctional dual-mode theme of SiYuan Note.
GNU Affero General Public License v3.0
139 stars 14 forks source link

无序列表转表格,表格边框粗细问题 #20

Open 1995hanjian opened 2 years ago

1995hanjian commented 2 years ago

image

一个很细节的事情, 中间的横线是2px,顶端或者底端的横线是1px 竖线就没什么问题~

Zuoqiu-Yingyi commented 2 years ago

脑图视图只有单个子项的分支也有一下问题, 不过可能不太好优化, 先一块记录了吧

1995hanjian commented 2 years ago

脑图视图只有单个子项的分支也有一下问题, 不过可能不太好优化, 先一块记录了吧

鼓捣了一阵子,这个方案好像可行。。。

.protyle-content *[custom-type~=table] [data-node-id].list,
.protyle-content *[custom-type~=表格] [data-node-id].list,
.protyle-content *[custom-type~=table] [data-node-id].li,
.protyle-content *[custom-type~=表格] [data-node-id].li {
    border: 0;
    padding: 0;
    margin: 0 !important;
    height: 100%;
    outline: 0px solid var(--b3-theme-on-surface);
    box-shadow: -0.5px 0px 0px 0px var(--b3-theme-on-surface), 0.5px 0px 0px 0px var(--b3-theme-on-surface),0px 0px 0px 0px var(--b3-theme-on-surface),0px 0.5px 0px 0px var(--b3-theme-on-surface);
}
.protyle-content *[custom-type~=table]>.li:first-child,
.protyle-content *[custom-type~=表格]>.li:first-child {
    box-shadow: -0.5px 0px 0px 0px var(--b3-theme-on-surface), 0.5px 0px 0px 0px var(--b3-theme-on-surface),0px -0.5px 0px 0px var(--b3-theme-on-surface),0px 0.5px 0px 0px var(--b3-theme-on-surface);
}