vault backup: 2026-03-19 23:02:49

This commit is contained in:
2026-03-19 23:02:50 +08:00
parent 7f2d8e2300
commit 5c89d20d9c
2 changed files with 18 additions and 1 deletions

14
.obsidian/snippets/PDF-DarkMode.css vendored Normal file
View File

@@ -0,0 +1,14 @@
/* 针对新版 Obsidian在深色模式下强制反转 PDF 页面和画布 */
.theme-dark .workspace-leaf-content[data-type="pdf"] .page,
.theme-dark .internal-embed[src$=".pdf"] .page,
.theme-dark .pdf-viewer canvas,
.theme-dark .pdf-embed canvas {
filter: invert(100%) hue-rotate(180deg) brightness(85%) contrast(110%) !important;
}
/* 顺便把 PDF 页面之间的缝隙背景也调暗,防刺眼 */
.theme-dark .workspace-leaf-content[data-type="pdf"] .view-content,
.theme-dark .pdf-container {
background-color: #1e1e1e !important;
}