Skip to content

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

:art: https://github.com/siyuan-note/siyuan/issues/17389

Vanessade94db94496a
diff --git a/app/appearance/themes/daylight/theme.css b/app/appearance/themes/daylight/theme.css
index fd7638365f..cfc13f6f83 100644
--- a/app/appearance/themes/daylight/theme.css
+++ b/app/appearance/themes/daylight/theme.css
@@ -132,6 +132,7 @@
--b3-point-shadow: 0 0 1px 0 rgba(0, 0, 0, .1), 0 0 2px 0 rgba(0, 0, 0, .2);
--b3-dialog-shadow: 0 8px 24px rgba(0, 0, 0, .2);
--b3-button-shadow: 0 1px 2px 0 rgb(0 0 0 / .3), 0 1px 3px 1px rgb(0 0 0 /.15);
+ --b3-button-active-shadow: 0 2px 3px 1px rgb(0 0 0 / .3), 0 2px 4px 2px rgb(0 0 0 /.15);
/* 图表颜色 */
--b3-graph-p-point: #076f7e;
diff --git a/app/appearance/themes/midnight/theme.css b/app/appearance/themes/midnight/theme.css
index abfce93e61..9a3b2f4d21 100644
--- a/app/appearance/themes/midnight/theme.css
+++ b/app/appearance/themes/midnight/theme.css
@@ -131,6 +131,7 @@
--b3-point-shadow: inset 0 .5px .5px .5px rgba(255, 255, 255, .09), 0 3px 6px rgba(0, 0, 0, .04), 0 0 0 0 transparent;
--b3-dialog-shadow: 0 8px 24px #010409;
--b3-button-shadow: 0 1px 2px 0 rgb(0 0 0 / .3), 0 1px 3px 1px rgb(255 255 255 /.15);
+ --b3-button-active-shadow: 0 2px 3px 1px rgb(0 0 0 / .3), 0 2px 4px 2px rgb(255 255 255 /.15);
/* 图表颜色 */
--b3-graph-p-point: #076f7e;
diff --git a/app/electron/init.html b/app/electron/init.html
index f4900e0f84..945265f0e0 100644
--- a/app/electron/init.html
+++ b/app/electron/init.html
@@ -59,6 +59,7 @@
}
.b3-button {
+ cursor: pointer;
color: #fff;
border-radius: 6px;
line-height: 20px;
@@ -68,21 +69,20 @@
display: inline-flex;
align-items: center;
justify-content: center;
- transition: box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);
+ transition: box-shadow 280ms ease;
border: 0;
box-sizing: border-box;
text-align: center;
width: 96px;
- cursor: pointer;
}
.b3-button:hover, .b3-button:focus {
text-decoration: none;
- box-shadow: 0 5px 5px -3px rgb(0 0 0 / .2), 0 8px 10px 1px rgb(0 0 0 / .14), 0 3px 14px 2px rgb(0 0 0 / .12);
+ box-shadow: 0 1px 2px 0 rgb(0 0 0 / .3), 0 1px 3px 1px rgb(0 0 0 /.15);
}
.b3-button:active {
- box-shadow: 0 5px 5px -3px rgba(0, 0, 0, 0.2), 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12);
+ box-shadow: 0 2px 3px 1px rgb(0 0 0 / .3), 0 2px 4px 2px rgb(0 0 0 /.15);
}
.b3-label {
@@ -217,6 +217,14 @@
background-color: #3573f0;
}
+ .b3-button:hover, .b3-button:focus {
+ box-shadow: 0 1px 2px 0 rgb(0 0 0 / .3), 0 1px 3px 1px rgb(255 255 255 /.15);
+ }
+
+ .b3-button:active {
+ box-shadow: 0 2px 3px 1px rgb(0 0 0 / .3), 0 2px 4px 2px rgb(255 255 255 /.15);
+ }
+
.b3-label {
box-shadow: 0 15px 0 0 #1e1e1e, 0 16px 0 0 #363636;
}
diff --git a/app/src/assets/scss/component/_button.scss b/app/src/assets/scss/component/_button.scss
index 5cd3b915a1..68e362fa44 100644
--- a/app/src/assets/scss/component/_button.scss
+++ b/app/src/assets/scss/component/_button.scss
@@ -29,7 +29,7 @@
}
&:active {
- box-shadow: 0 5px 5px -3px rgba(0, 0, 0, .2), 0 8px 10px 1px rgba(0, 0, 0, .14), 0 3px 14px 2px rgba(0, 0, 0, .12);
+ box-shadow: var(--b3-button-active-shadow)
}
&--progress {