Spaces:
Running
Running
File size: 5,480 Bytes
71e4446 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 | /* ── chatbot container ── */
#hy-chat {
border: none !important;
box-shadow: none !important;
background: #ffffff !important;
--border-color-primary: transparent !important;
--color-accent-soft: #ffffff !important;
--background-fill-secondary: #ffffff !important;
}
.dark #hy-chat {
background: #171717 !important;
--border-color-primary: transparent !important;
--color-accent-soft: #1f1f1f !important;
--background-fill-secondary: #171717 !important;
}
/* ── message panel: uniform style for both user and bot ── */
#hy-chat .message-row .message-bubble-border,
#hy-chat .bot .message-bubble-border,
#hy-chat .user .message-bubble-border,
#hy-chat [data-testid="bot"] .message-bubble-border,
#hy-chat [data-testid="user"] .message-bubble-border {
border-color: transparent !important;
border-width: 0 !important;
box-shadow: none !important;
outline: none !important;
background: #ffffff !important;
padding: 4px 16px 4px 0 !important;
max-width: 100% !important;
}
.dark #hy-chat .message-row .message-bubble-border,
.dark #hy-chat .bot .message-bubble-border,
.dark #hy-chat .user .message-bubble-border,
.dark #hy-chat [data-testid="bot"] .message-bubble-border,
.dark #hy-chat [data-testid="user"] .message-bubble-border {
background: #171717 !important;
}
/* ── remove user message bubble border (all themes) ── */
#hy-chat .user,
#hy-chat .user .message,
#hy-chat .user .bubble,
#hy-chat .user > div,
#hy-chat [data-testid="user"],
#hy-chat [data-testid="user"] .message,
#hy-chat [data-testid="user"] .bubble,
#hy-chat [data-testid="user"] > div,
#hy-chat .message-row.user-row,
#hy-chat .message-row.user-row > div,
#hy-chat .user-message,
#hy-chat .message.user {
border: none !important;
border-width: 0 !important;
border-color: transparent !important;
box-shadow: none !important;
outline: none !important;
}
#hy-chat .user .message,
#hy-chat [data-testid="user"] .message,
#hy-chat .user-message {
background: transparent !important;
padding: 4px 16px !important;
}
.dark #hy-chat .user .message,
.dark #hy-chat [data-testid="user"] .message,
.dark #hy-chat .user-message {
background: transparent !important;
}
/* ── user text: match bot text style ── */
#hy-chat .user .markdown,
#hy-chat .user .message-content,
#hy-chat .user p,
#hy-chat [data-testid="user"] .markdown,
#hy-chat [data-testid="user"] .message-content,
#hy-chat [data-testid="user"] p {
font-size: 15px !important;
line-height: 1.8 !important;
color: #222222 !important;
letter-spacing: 0.01em !important;
}
.dark #hy-chat .user .markdown,
.dark #hy-chat .user .message-content,
.dark #hy-chat .user p,
.dark #hy-chat [data-testid="user"] .markdown,
.dark #hy-chat [data-testid="user"] .message-content,
.dark #hy-chat [data-testid="user"] p {
color: #e8e8e8 !important;
}
/* ── bot text styling ── */
#hy-chat .bot .markdown,
#hy-chat .bot .message-content,
#hy-chat [data-testid="bot"] .markdown {
font-size: 15px !important;
line-height: 1.8 !important;
color: #222222 !important;
letter-spacing: 0.01em !important;
}
.dark #hy-chat .bot .markdown,
.dark #hy-chat .bot .message-content,
.dark #hy-chat [data-testid="bot"] .markdown {
color: #e8e8e8 !important;
}
#hy-chat .bot p { margin: 0.6em 0 !important; }
#hy-chat .bot strong, #hy-chat .bot b {
font-weight: 600 !important;
color: #111 !important;
}
.dark #hy-chat .bot strong, .dark #hy-chat .bot b {
color: #fff !important;
}
#hy-chat .bot ul, #hy-chat .bot ol {
padding-left: 1.5em !important;
margin: 0.5em 0 !important;
}
#hy-chat .bot li {
margin: 0.3em 0 !important;
line-height: 1.8 !important;
}
/* ── headings ── */
#hy-chat .bot h1 { font-size: 22px !important; font-weight: 700 !important; color: #111 !important; margin: 1em 0 0.5em !important; }
#hy-chat .bot h2 { font-size: 19px !important; font-weight: 700 !important; color: #111 !important; margin: 0.9em 0 0.4em !important; }
#hy-chat .bot h3 { font-size: 17px !important; font-weight: 600 !important; color: #111 !important; margin: 0.8em 0 0.35em !important; }
#hy-chat .bot h4 { font-size: 15px !important; font-weight: 600 !important; color: #222 !important; margin: 0.7em 0 0.3em !important; }
.dark #hy-chat .bot h1 { color: #f2f2f2 !important; }
.dark #hy-chat .bot h2 { color: #ebebeb !important; }
.dark #hy-chat .bot h3 { color: #e0e0e0 !important; }
.dark #hy-chat .bot h4 { color: #d4d4d4 !important; }
/* ── tables ── */
#hy-chat table {
border-collapse: collapse !important;
width: auto !important;
margin: 1em 0 !important;
font-size: 14px !important;
line-height: 1.6 !important;
}
#hy-chat th, #hy-chat td {
border: 1px solid #e8e8e8 !important;
padding: 10px 20px !important;
text-align: left !important;
}
#hy-chat th {
background: #fafafa !important;
font-weight: 600 !important;
color: #333 !important;
}
#hy-chat td {
color: #444 !important;
background: #fff !important;
}
#hy-chat tr:hover td {
background: #fafcff !important;
}
.dark #hy-chat th, .dark #hy-chat td {
border-color: #2a2a2a !important;
}
.dark #hy-chat th {
background: #242424 !important;
color: #e0e0e0 !important;
}
.dark #hy-chat td {
color: #d0d0d0 !important;
background: #1c1c1c !important;
}
.dark #hy-chat tr:hover td {
background: #262626 !important;
}
|