Spaces:
Sleeping
Sleeping
Keldos
commited on
Commit
·
c983084
1
Parent(s):
d58672c
WIP: 调整chatmore和user info样式
Browse files
web_assets/javascript/user-info.js
CHANGED
@@ -47,7 +47,8 @@ function showOrHideUserInfo() {
|
|
47 |
toggleUserInfoVisibility(true);
|
48 |
}, 2000);
|
49 |
|
50 |
-
let triggerElements = {appTitleDiv, userInfoDiv, sendBtn};
|
|
|
51 |
for (let elem in triggerElements) {
|
52 |
triggerElements[elem].addEventListener("mouseenter", function () {
|
53 |
toggleUserInfoVisibility(false);
|
|
|
47 |
toggleUserInfoVisibility(true);
|
48 |
}, 2000);
|
49 |
|
50 |
+
// let triggerElements = {appTitleDiv, userInfoDiv, sendBtn};
|
51 |
+
let triggerElements = {userInfoDiv, statusDisplay};
|
52 |
for (let elem in triggerElements) {
|
53 |
triggerElements[elem].addEventListener("mouseenter", function () {
|
54 |
toggleUserInfoVisibility(false);
|
web_assets/stylesheet/ChuanhuChat.css
CHANGED
@@ -14,7 +14,7 @@
|
|
14 |
|
15 |
--chatbot-blur-background-color: #F3F3F366;
|
16 |
--chatbot-input-background-color: rgba(255, 255, 255, 0.64);
|
17 |
-
--chatbot-input-more-background-color: #
|
18 |
--chatbot-input-more-background-fullwidth-hover: #FFFFFF88;
|
19 |
--chatbot-input-more-background-mobilewidth-hover: #F6F6F6;
|
20 |
|
@@ -27,7 +27,7 @@
|
|
27 |
.dark {
|
28 |
--chatbot-blur-background-color: #12111166;
|
29 |
--chatbot-input-background-color: rgba(144, 144, 144, 0.32);
|
30 |
-
--chatbot-input-more-background-color: #
|
31 |
--chatbot-input-more-background-fullwidth-hover: #1F1F1F88;
|
32 |
--chatbot-input-more-background-mobilewidth-hover: #1F1F1F44;
|
33 |
}
|
@@ -429,6 +429,8 @@ button.chatbot-input-more-btn:active .sm-round-bg {
|
|
429 |
border-radius: 6px;
|
430 |
box-shadow: var(--shadow-sm);
|
431 |
background: var(--chatbot-input-more-background-color);
|
|
|
|
|
432 |
|
433 |
}
|
434 |
#chatbot-input-more-area > span > div {
|
|
|
14 |
|
15 |
--chatbot-blur-background-color: #F3F3F366;
|
16 |
--chatbot-input-background-color: rgba(255, 255, 255, 0.64);
|
17 |
+
--chatbot-input-more-background-color: #FFFFFFAA;
|
18 |
--chatbot-input-more-background-fullwidth-hover: #FFFFFF88;
|
19 |
--chatbot-input-more-background-mobilewidth-hover: #F6F6F6;
|
20 |
|
|
|
27 |
.dark {
|
28 |
--chatbot-blur-background-color: #12111166;
|
29 |
--chatbot-input-background-color: rgba(144, 144, 144, 0.32);
|
30 |
+
--chatbot-input-more-background-color: #3C3C3CAA;
|
31 |
--chatbot-input-more-background-fullwidth-hover: #1F1F1F88;
|
32 |
--chatbot-input-more-background-mobilewidth-hover: #1F1F1F44;
|
33 |
}
|
|
|
429 |
border-radius: 6px;
|
430 |
box-shadow: var(--shadow-sm);
|
431 |
background: var(--chatbot-input-more-background-color);
|
432 |
+
backdrop-filter: blur(24px);
|
433 |
+
-webkit-backdrop-filter: blur(24px);
|
434 |
|
435 |
}
|
436 |
#chatbot-input-more-area > span > div {
|
web_assets/stylesheet/custom-components.css
CHANGED
@@ -2,7 +2,9 @@
|
|
2 |
/* user-info */
|
3 |
#user-info.block {
|
4 |
white-space: nowrap;
|
5 |
-
position: absolute;
|
|
|
|
|
6 |
z-index: var(--layer-2);
|
7 |
box-shadow: var(--block-shadow);
|
8 |
border: none!important; border-radius: var(--block-label-radius);
|
@@ -11,6 +13,7 @@
|
|
11 |
font-size: var(--block-label-text-size); line-height: var(--line-sm);
|
12 |
width: auto; max-height: 30px!important;
|
13 |
opacity: 1;
|
|
|
14 |
transition: opacity 0.3s ease-in-out;
|
15 |
}
|
16 |
#user-info.block .wrap {
|
@@ -276,7 +279,7 @@ input:checked + .apSlider::before {
|
|
276 |
position: absolute;
|
277 |
bottom: calc(100% + 12px);
|
278 |
left: calc(50% - 60px + 0.5rem);
|
279 |
-
background-color: #
|
280 |
border-radius: 5px;
|
281 |
color: #fff;
|
282 |
content: attr(aria-label);
|
@@ -293,7 +296,7 @@ input:checked + .apSlider::before {
|
|
293 |
left: 50%;
|
294 |
border-left: 5px solid transparent;
|
295 |
border-right: 5px solid transparent;
|
296 |
-
border-top: 5px solid #
|
297 |
content: " ";
|
298 |
font-size: 0;
|
299 |
line-height: 0;
|
|
|
2 |
/* user-info */
|
3 |
#user-info.block {
|
4 |
white-space: nowrap;
|
5 |
+
position: absolute;
|
6 |
+
right: max(32px, env(safe-area-inset-right));
|
7 |
+
top: 16px;
|
8 |
z-index: var(--layer-2);
|
9 |
box-shadow: var(--block-shadow);
|
10 |
border: none!important; border-radius: var(--block-label-radius);
|
|
|
13 |
font-size: var(--block-label-text-size); line-height: var(--line-sm);
|
14 |
width: auto; max-height: 30px!important;
|
15 |
opacity: 1;
|
16 |
+
z-index: 1000;
|
17 |
transition: opacity 0.3s ease-in-out;
|
18 |
}
|
19 |
#user-info.block .wrap {
|
|
|
279 |
position: absolute;
|
280 |
bottom: calc(100% + 12px);
|
281 |
left: calc(50% - 60px + 0.5rem);
|
282 |
+
background-color: #393939;
|
283 |
border-radius: 5px;
|
284 |
color: #fff;
|
285 |
content: attr(aria-label);
|
|
|
296 |
left: 50%;
|
297 |
border-left: 5px solid transparent;
|
298 |
border-right: 5px solid transparent;
|
299 |
+
border-top: 5px solid #393939;
|
300 |
content: " ";
|
301 |
font-size: 0;
|
302 |
line-height: 0;
|