2024-09-18 11:17:34 +02:00
|
|
|
/* Output Section */
|
|
|
|
.output {
|
2024-10-01 15:46:24 +02:00
|
|
|
scroll-behavior: smooth;
|
2024-09-18 11:17:34 +02:00
|
|
|
grid-column: 2;
|
|
|
|
grid-row: 1 / 4;
|
|
|
|
background-color: var(--output-background-color);
|
|
|
|
margin: 1em;
|
2024-10-01 11:37:53 +02:00
|
|
|
margin-bottom: 0;
|
2024-10-02 10:24:30 +02:00
|
|
|
padding-bottom: 13dvh;
|
2024-09-18 11:17:34 +02:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
justify-content: flex-start;
|
2024-09-18 16:26:57 +02:00
|
|
|
font-size: 1em;
|
2024-09-18 11:17:34 +02:00
|
|
|
overflow-y: auto;
|
2024-09-23 11:55:58 +02:00
|
|
|
width: calc(100% - 2em); /* Corrected calculation for width */
|
2024-10-02 09:37:58 +02:00
|
|
|
height: 85dvh;
|
2024-10-01 15:46:24 +02:00
|
|
|
position: relative;
|
2024-09-18 11:17:34 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#conversation {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2024-09-30 10:46:03 +02:00
|
|
|
padding-left: 10px;
|
2024-09-18 11:17:34 +02:00
|
|
|
overflow-y: auto;
|
2024-10-02 09:37:58 +02:00
|
|
|
height: 75dvh;
|
2024-09-18 11:17:34 +02:00
|
|
|
background-color: var(--output-background-color);
|
|
|
|
border-radius: 10px;
|
|
|
|
scroll-behavior: smooth;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Message Bubbles */
|
|
|
|
.user-message, .ai-message {
|
|
|
|
padding: 10px;
|
|
|
|
border-radius: 10px;
|
|
|
|
margin: 5px 0;
|
|
|
|
max-width: 75%;
|
|
|
|
word-wrap: break-word;
|
|
|
|
}
|
|
|
|
|
|
|
|
.user-message {
|
|
|
|
background-color: var(--user-message-background-color);
|
|
|
|
align-self: flex-end;
|
|
|
|
color: var(--user-message-text-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
.ai-message {
|
|
|
|
background-color: var(--ai-message-background-color);
|
|
|
|
align-self: flex-start;
|
|
|
|
color: var(--ai-message-text-color);
|
|
|
|
}
|
|
|
|
|
2024-10-04 11:07:55 +02:00
|
|
|
.ai-message a{
|
|
|
|
color: var(--text-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
.ai-message table, th, tr, td{
|
|
|
|
border: 2px solid black;
|
|
|
|
border-collapse: collapse;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ai-message img{
|
|
|
|
max-width: 80%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ai-message a:hover{
|
|
|
|
filter: brightness(70%);
|
|
|
|
}
|
|
|
|
|
2024-09-18 11:17:34 +02:00
|
|
|
/* Button Container */
|
|
|
|
.button-container {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
|
|
|
.button-container button {
|
|
|
|
background: none;
|
|
|
|
border: none;
|
|
|
|
cursor: pointer;
|
2024-09-30 10:46:03 +02:00
|
|
|
border-radius: 100%;
|
2024-09-18 11:17:34 +02:00
|
|
|
padding: 10px;
|
|
|
|
transition: background-color 0.3s ease;
|
2024-09-30 10:46:03 +02:00
|
|
|
height: 40px;
|
|
|
|
width: 40px;
|
2024-09-18 11:17:34 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.button-container button:hover {
|
|
|
|
background-color: var(--button-hover-background-color);
|
|
|
|
}
|
|
|
|
|
2024-10-01 14:29:15 +02:00
|
|
|
.tooltip {
|
|
|
|
position: relative;
|
|
|
|
display: inline-block;
|
|
|
|
cursor: pointer;
|
2024-10-02 10:24:30 +02:00
|
|
|
z-index: 900;
|
2024-10-01 14:29:15 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.tooltip .tooltiptext {
|
|
|
|
visibility: hidden;
|
|
|
|
background-color: var(--user-message-background-color);
|
|
|
|
color: var(--text-color);
|
|
|
|
text-align: center;
|
|
|
|
padding: 5px;
|
|
|
|
border-radius: 4px;
|
|
|
|
font-size: calc(var(--font-size)*0.8);
|
|
|
|
|
|
|
|
/* Position the tooltip */
|
|
|
|
position: absolute;
|
2024-10-02 10:24:30 +02:00
|
|
|
top: 100%;
|
2024-10-01 14:29:15 +02:00
|
|
|
/* Adjusts tooltip to be below the button */
|
|
|
|
left: 50%;
|
|
|
|
transform: translateX(-50%);
|
|
|
|
/* Center the tooltip */
|
|
|
|
white-space: nowrap;
|
|
|
|
/* Prevent line breaks */
|
|
|
|
|
|
|
|
/* Add smooth transition */
|
|
|
|
opacity: 0;
|
|
|
|
transition: all 0.3s;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tooltip .tooltiptext::after {
|
|
|
|
content: "";
|
|
|
|
position: absolute;
|
|
|
|
bottom: 100%;
|
|
|
|
/* Arrow on top of tooltip */
|
|
|
|
left: 50%;
|
|
|
|
transform: translateX(-50%);
|
|
|
|
border-width: 5px;
|
|
|
|
border-style: solid;
|
|
|
|
border-color: transparent transparent var(--user-message-background-color) transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Show the tooltip on hover */
|
|
|
|
.tooltip:hover .tooltiptext {
|
|
|
|
visibility: visible;
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
|
2024-09-27 08:03:12 +02:00
|
|
|
#copiedText{
|
|
|
|
margin-top: 1em;
|
2024-09-27 16:48:17 +02:00
|
|
|
cursor:default;
|
|
|
|
pointer-events: none;
|
|
|
|
user-select: none;
|
2024-09-27 08:03:12 +02:00
|
|
|
}
|
2024-10-01 15:46:24 +02:00
|
|
|
|
|
|
|
#scrollToBottom{
|
|
|
|
scroll-behavior: smooth;
|
|
|
|
visibility: hidden;
|
|
|
|
position: absolute;
|
|
|
|
height: 50px;
|
|
|
|
width: 50px;
|
|
|
|
margin: auto;
|
|
|
|
border-radius: 100%;
|
|
|
|
bottom: 16dvh;
|
|
|
|
left: 50%;
|
|
|
|
translate: -25px;
|
|
|
|
}
|