Spaces:
Paused
Paused
File size: 5,694 Bytes
4279593 c3d9a20 4279593 c3d9a20 |
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 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 |
:root {
--dark-surface: #190e10; /* Deep, dark maroon base */
--primary-color: #2b2b2b; /* A dark gray for sidebars and buttons */
--secondary-color: #03dac6; /* A cool teal for accents */
--accent-color: #aaabb9; /* A warm accent for highlights and borders */
--text-color: #e0e0e0; /* Off-white text */
--hover-bg: #3a3a3a; /* Slightly lighter for hover effects */
--transition-speed: 0.3s;
}
/* Error message container */
.error-block {
background-color: #f25e5ecb;
color: var(--text-color);
padding: 0.1rem 1rem;
border-radius: 0.3rem;
margin: 2rem 0;
text-align: left;
}
/* Container for the messages */
.answer-container {
display: flex;
flex-direction: column;
gap: 2rem;
padding: 1rem;
min-width: 800px;
}
.answer-block {
position: relative;
padding-left: 45px;
}
/* Common message row styling */
.message-row {
display: flex;
align-items: flex-start;
}
/* ----------------- User Message Styling ----------------- */
/* User message row: bubble on the left, icon on the right */
.user-message {
justify-content: flex-end;
}
.user-message .message-bubble {
background-color: #FF8C00;
color: #ffffff;
border-radius: 0.35rem;
padding: 0.5rem 1rem;
max-width: 70%;
text-align: left;
}
.user-message .user-icon {
margin-left: 0.5rem;
}
.sources-read {
font-weight: bold;
}
/* ----------------- Bot Message Styling ----------------- */
/* Bot message row */
.bot-icon {
position: absolute;
left: 0;
top: 0.25rem;
}
.bot-message {
justify-content: flex-start;
}
.bot-message .bot-icon {
margin: 0;
}
/* Container for the bot bubble and its post-icons */
.bot-container {
display: flex;
flex-direction: column;
gap: 0rem;
}
.bot-answer-container {
display: flex;
align-items: center;
gap: 0.5rem;
}
/* Bot message bubble styling */
.bot-container .message-bubble {
background-color: none;
color: var(--text-color);
padding: 0.25rem 1.15rem 1rem 0.1rem;
max-width: 97%;
text-align: left;
}
/* ----------------- Additional Styling ----------------- */
/* Styling for the "Thought and searched for..." line */
.thinking-info {
font-size: large;
font-style: italic;
color: var(--accent-color);
margin-bottom: 1.3rem;
margin-left: 3rem;
}
.sources-read {
font-weight: bold;
color: var(--text-color);
margin-bottom: 1rem;
margin-left: 3rem;
}
/* Styling for the answer text */
.answer {
margin: 0;
line-height: 1.85;
white-space: pre-wrap;
}
/* Post-answer icons container: placed below the bot bubble */
.post-icons {
display: flex;
padding-left: 0.12rem;
gap: 1rem;
}
/* Make each post icon container position relative for tooltip positioning */
.post-icons .copy-icon,
.post-icons .evaluate-icon,
.post-icons .sources-icon,
.post-icons .graph-icon {
cursor: pointer;
position: relative;
}
/* Apply a brightness filter to the icon images on hover */
.post-icons .copy-icon img,
.post-icons .evaluate-icon img,
.post-icons .sources-icon img,
.post-icons .graph-icon img {
transition: filter var(--transition-speed);
}
.post-icons .copy-icon:hover img,
.post-icons .evaluate-icon:hover img,
.post-icons .sources-icon:hover img,
.post-icons .graph-icon:hover img {
filter: brightness(0.65);
}
/* Tooltip styling */
.tooltip {
position: absolute;
bottom: 100%;
left: 50%;
transform: translateX(-50%) translateY(10px) scale(0.9);
transform-origin: bottom center;
margin-bottom: 0.65rem;
padding: 0.3rem 0.6rem;
background-color: var(--primary-color);
color: var(--text-color);
border-radius: 0.25rem;
white-space: nowrap;
font-size: 0.85rem;
opacity: 0;
visibility: hidden;
transition: transform 0.3s ease, opacity 0.3s ease;
}
/* Show the tooltip on hover */
.post-icons .copy-icon:hover .tooltip,
.post-icons .evaluate-icon:hover .tooltip,
.post-icons .sources-icon:hover .tooltip,
.post-icons .graph-icon:hover .tooltip {
opacity: 1;
visibility: visible;
transform: translateX(-50%) translateY(0) scale(1);
}
/* Styling for the question text */
.question {
margin: 0;
white-space: pre-wrap;
line-height: 1.4;
}
/* Reduce the size of user and bot icons */
.user-icon img,
.bot-icon img {
width: 35px;
height: 35px;
object-fit: contain;
}
/* Reduce the size of the post-action icons */
.post-icons img {
width: 20px;
height: 20px;
object-fit: contain;
}
/* ChatWindow.css */
/* Container for the loading state with a dark background */
.bot-loading {
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
gap: 10px; /* adds space between the spinner and the text */
padding: 30px;
background-color: var(--dark-surface); /* Dark background */
}
.loading-text {
margin: 0; /* removes any default margins */
font-size: 1rem;
color: #ccc;
}
/* Finished state: styling for the thought time info */
.thinking-info {
margin-bottom: 4px;
}
.thinking-time {
font-size: 1rem;
color: #888;
cursor: pointer;
}
/* Snackbar styling */
.custom-snackbar {
background-color: #1488e7 !important;
color: var(--text-color) !important;
padding: 0.35rem 1rem !important;
border-radius: 4px !important;
}
/* Spinner styling */
.custom-spinner {
width: 1.35rem !important;
height: 1.35rem !important;
border: 3px solid #3b7bdc !important; /* Main Spinner */
border-top: 3px solid #434343 !important; /* Rotating path */
border-radius: 50% !important;
margin-top: 0.1rem !important;
animation: spin 0.9s linear infinite !important;
}
/* Spinner animation */
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
} |