Kaynağa Gözat

:art: fix https://github.com/siyuan-note/siyuan/issues/8686

Vanessa 2 yıl önce
ebeveyn
işleme
8043868c6e

+ 2 - 1
app/appearance/themes/daylight/theme.css

@@ -50,7 +50,8 @@
     --b3-menu-background: var(--b3-theme-surface);
 
     /* 提示 */
-    --b3-tooltips-color: rgba(0, 0, 0, .9);
+    --b3-tooltips-background: rgba(0, 0, 0, .9);
+    --b3-tooltips-color: #fff;
     --b3-tooltips-shadow: 0 2px 8px rgba(0, 0, 0, .1);
 
     /* 遮罩 */

+ 2 - 1
app/appearance/themes/midnight/theme.css

@@ -50,7 +50,8 @@
     --b3-menu-background: var(--b3-theme-surface);
 
     /* 提示 */
-    --b3-tooltips-color: #030303;
+    --b3-tooltips-background: #030303;
+    --b3-tooltips-color: var(--b3-theme-on-surface-light);
     --b3-tooltips-shadow: 0 2px 8px rgba(0, 0, 0, .3);
 
     /* 遮罩 */

+ 2 - 2
app/src/assets/scss/component/_tooltips.scss

@@ -6,9 +6,9 @@
   font-size: 12px;
   font-weight: normal;
   -webkit-font-smoothing: subpixel-antialiased;
-  color: #fff;
+  color: var(--b3-tooltips-color);
   word-wrap: break-word;
-  background: var(--b3-tooltips-color);
+  background: var(--b3-tooltips-background);
   border-radius: var(--b3-border-radius);
   line-height: 17px;
   max-width: 320px;