效果如图所示:
/* 边框加粗 */
:is(.b3-typography, .protyle-wysiwyg) table :is(th, td, tr) {
border: 2px solid var(--b3-theme-on-background) !important;
}
/* 强化背景色 */
:is(.b3-typography, .protyle-wysiwyg) table th {
background-color: rgba(0, 0, 0, 0.2);
}
:is(.b3-typography, .protyle-wysiwyg) table tr:nth-child(odd) td {
background-color: rgba(0, 0, 0, 0);
}
:is(.b3-typography, .protyle-wysiwyg) table tr:nth-child(even) td {
background-color: rgba(0, 0, 0, 0.05);
}
[data-theme-mode="dark"] {
& :is(.b3-typography, .protyle-wysiwyg) table th {
background-color: rgba(255, 255, 255, 0.15);
}
& :is(.b3-typography, .protyle-wysiwyg) table tr:nth-child(odd) td {
background-color: rgba(0, 0, 0, 0);
}
& :is(.b3-typography, .protyle-wysiwyg) table tr:nth-child(even) td {
background-color: rgba(255, 255, 255, 0.05);
}
}
欢迎来到这里!
我们正在构建一个小众社区,大家在这里相互信任,以平等 • 自由 • 奔放的价值观进行分享交流。最终,希望大家能够找到与自己志同道合的伙伴,共同成长。
注册 关于