Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:bug: Keep old third-party theme variables working in PDF light mode https://github.com/siyuan-note/siyuan/issues/14065

Daniel3a84ac08bd3b
diff --git a/app/appearance/themes/daylight/theme.css b/app/appearance/themes/daylight/theme.css
index 45f07e8312..411ea3e943 100644
--- a/app/appearance/themes/daylight/theme.css
+++ b/app/appearance/themes/daylight/theme.css
@@ -182,7 +182,7 @@
--b3-protyle-inline-fileref-color: #21862e;
/* PDF */
- --b3-pdf-selection-light: #d0e9c8;
+ --b3-pdf-selection: #d0e9c8;
--b3-pdf-selection-dark: #779170;
--sidebar-width: 200px;
--b3-pdf-offset: 0;
diff --git a/app/appearance/themes/midnight/theme.css b/app/appearance/themes/midnight/theme.css
index d1daab2c28..3da64c428c 100644
--- a/app/appearance/themes/midnight/theme.css
+++ b/app/appearance/themes/midnight/theme.css
@@ -181,7 +181,7 @@
--b3-protyle-inline-fileref-color: var(--b3-theme-secondary);
/* PDF */
- --b3-pdf-selection-light: #d0e9c8;
+ --b3-pdf-selection: #d0e9c8;
--b3-pdf-selection-dark: #779170;
--sidebar-width: 200px;
--b3-pdf-offset: 0;
diff --git a/app/src/assets/scss/pdf/_pdf.scss b/app/src/assets/scss/pdf/_pdf.scss
index 40db88a58a..4ba16545e6 100644
--- a/app/src/assets/scss/pdf/_pdf.scss
+++ b/app/src/assets/scss/pdf/_pdf.scss
@@ -24,8 +24,6 @@
}
&__outer {
- --b3-pdf-selection: var(--b3-pdf-selection-light, #d0e9c8);
-
user-select: text;
overflow: hidden;
width: 100%;