|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.gradio-container {
|
|
|
width: 100% !important;
|
|
|
max-width: 100% !important;
|
|
|
}
|
|
|
|
|
|
main.flex.flex-1.flex-col {
|
|
|
max-height: 95vh !important;
|
|
|
}
|
|
|
|
|
|
.main-component {
|
|
|
contain: size layout;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
|
|
|
|
|
|
#tab-recommended_content {
|
|
|
padding: 0;
|
|
|
}
|
|
|
|
|
|
#group-subtabs {
|
|
|
|
|
|
position : sticky;
|
|
|
}
|
|
|
|
|
|
|
|
|
.tab-nav {
|
|
|
border: none !important;
|
|
|
}
|
|
|
|
|
|
.tab-nav > button.selected {
|
|
|
color: #4b8ec3;
|
|
|
font-weight: bold;
|
|
|
border: none;
|
|
|
}
|
|
|
|
|
|
.tabitem {
|
|
|
border: none !important;
|
|
|
}
|
|
|
|
|
|
.other-tabs > div {
|
|
|
padding: 40px 40px 10px;
|
|
|
}
|
|
|
|
|
|
|
|
|
.card {
|
|
|
background-color: white;
|
|
|
border-radius: 10px;
|
|
|
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
|
|
overflow: hidden;
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
margin: 20px;
|
|
|
}
|
|
|
|
|
|
.card-content {
|
|
|
padding: 20px;
|
|
|
}
|
|
|
|
|
|
.card-content h2 {
|
|
|
font-size: 14px !important;
|
|
|
font-weight: bold;
|
|
|
margin: 0 0 10px !important;
|
|
|
color: #dc2626 !important;
|
|
|
}
|
|
|
|
|
|
.card-content p {
|
|
|
font-size: 12px;
|
|
|
margin-bottom: 0;
|
|
|
}
|
|
|
|
|
|
.card-content img {
|
|
|
display: block;
|
|
|
margin: auto;
|
|
|
max-width: 100%;
|
|
|
height: auto;
|
|
|
}
|
|
|
|
|
|
.card-footer {
|
|
|
background-color: #f4f4f4;
|
|
|
font-size: 10px;
|
|
|
padding: 10px;
|
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
|
align-items: center;
|
|
|
}
|
|
|
|
|
|
.card-footer span {
|
|
|
flex-grow: 1;
|
|
|
text-align: left;
|
|
|
color: #999 !important;
|
|
|
}
|
|
|
|
|
|
.card-image > .card-content {
|
|
|
background-color: #f1f7fa;
|
|
|
}
|
|
|
|
|
|
|
|
|
.message {
|
|
|
font-size: 14px !important;
|
|
|
}
|
|
|
|
|
|
.message.user, .message.bot {
|
|
|
border: none;
|
|
|
}
|
|
|
|
|
|
#input-textbox > label > div > textarea {
|
|
|
border-radius: 40px;
|
|
|
padding-left: 30px;
|
|
|
resize: none;
|
|
|
background-color: #d7e2ed;
|
|
|
border: 2px solid #4b8ec3;
|
|
|
font-size: 16px;
|
|
|
color: #333;
|
|
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
|
|
::placeholder {
|
|
|
color: #4b4747;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
#input-message > div {
|
|
|
border: none;
|
|
|
}
|
|
|
|
|
|
|
|
|
.warning-box {
|
|
|
background-color: #fff3cd;
|
|
|
border: 1px solid #ffeeba;
|
|
|
border-radius: 4px;
|
|
|
padding: 15px 20px;
|
|
|
font-size: 14px;
|
|
|
color: #856404;
|
|
|
display: inline-block;
|
|
|
margin-bottom: 15px;
|
|
|
}
|
|
|
|
|
|
.tip-box {
|
|
|
background-color: #f0f9ff;
|
|
|
border: 1px solid #80d4fa;
|
|
|
border-radius: 4px;
|
|
|
margin: 20px 0 15px;
|
|
|
padding: 15px 20px;
|
|
|
font-size: 14px;
|
|
|
display: inline-block;
|
|
|
width: auto;
|
|
|
color: black !important;
|
|
|
}
|
|
|
|
|
|
.tip-box-title {
|
|
|
font-weight: bold;
|
|
|
font-size: 14px;
|
|
|
margin-bottom: 5px;
|
|
|
}
|
|
|
|
|
|
.light-bulb {
|
|
|
display: inline;
|
|
|
margin-right: 5px;
|
|
|
}
|
|
|
|
|
|
|
|
|
.loader {
|
|
|
border: 1px solid #d0d0d0 !important;
|
|
|
border-top: 1px solid #db3434 !important;
|
|
|
border-right: 1px solid #3498db !important;
|
|
|
border-radius: 50%;
|
|
|
width: 20px;
|
|
|
height: 20px;
|
|
|
animation: spin 2s linear infinite;
|
|
|
display: inline-block;
|
|
|
margin-right: 10px !important;
|
|
|
}
|
|
|
|
|
|
@keyframes spin {
|
|
|
0% { transform: rotate(0deg); }
|
|
|
100% { transform: rotate(360deg); }
|
|
|
}
|
|
|
|
|
|
|
|
|
.pdf-link {
|
|
|
display: inline-flex;
|
|
|
align-items: center;
|
|
|
margin-left: auto;
|
|
|
text-decoration: none!important;
|
|
|
font-size: 14px;
|
|
|
}
|
|
|
|
|
|
|
|
|
.doc-ref sup {
|
|
|
color: #dc2626!important;
|
|
|
}
|
|
|
|
|
|
.doc-ref {
|
|
|
color: #dc2626!important;
|
|
|
margin-right: 1px;
|
|
|
}
|
|
|
|
|
|
|
|
|
span.chatbot > p > img {
|
|
|
margin-top: 40px !important;
|
|
|
max-height: none !important;
|
|
|
max-width: 80% !important;
|
|
|
border-radius: 0px !important;
|
|
|
}
|
|
|
|
|
|
.chatbot-caption {
|
|
|
font-size: 11px;
|
|
|
font-style: italic;
|
|
|
color: #508094;
|
|
|
}
|
|
|
|
|
|
.ai-generated {
|
|
|
font-size: 11px!important;
|
|
|
font-style: italic;
|
|
|
color: #73b8d4 !important;
|
|
|
}
|
|
|
|
|
|
|
|
|
.dropdown {
|
|
|
position: relative;
|
|
|
display: inline-block;
|
|
|
margin-bottom: 10px;
|
|
|
}
|
|
|
|
|
|
.dropdown-toggle {
|
|
|
background-color: #f2f2f2;
|
|
|
color: black;
|
|
|
padding: 10px;
|
|
|
font-size: 16px;
|
|
|
cursor: pointer;
|
|
|
display: flex;
|
|
|
width: 400px;
|
|
|
align-items: center;
|
|
|
justify-content: left;
|
|
|
position: relative;
|
|
|
}
|
|
|
|
|
|
.dropdown-toggle .caret {
|
|
|
content: "";
|
|
|
position: absolute;
|
|
|
right: 10px;
|
|
|
top: 50%;
|
|
|
border-left: 5px solid transparent;
|
|
|
border-right: 5px solid transparent;
|
|
|
border-top: 5px solid black;
|
|
|
transform: translateY(-50%);
|
|
|
}
|
|
|
|
|
|
.dropdown-content {
|
|
|
display: none;
|
|
|
position: absolute;
|
|
|
background-color: #f9f9f9;
|
|
|
min-width: 300px;
|
|
|
box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
|
|
|
z-index: 1;
|
|
|
padding: 12px;
|
|
|
border: 1px solid #ccc;
|
|
|
}
|
|
|
|
|
|
|
|
|
input[type="checkbox"] {
|
|
|
display: none !important;
|
|
|
}
|
|
|
|
|
|
#checkbox-chat input[type="checkbox"] {
|
|
|
display: flex !important;
|
|
|
}
|
|
|
|
|
|
input[type="checkbox"]:checked + .dropdown-content {
|
|
|
display: block;
|
|
|
}
|
|
|
|
|
|
input[type="checkbox"]:checked + .dropdown-toggle + .dropdown-content {
|
|
|
display: block;
|
|
|
}
|
|
|
|
|
|
input[type="checkbox"]:checked + .dropdown-toggle .caret {
|
|
|
border-top: 0;
|
|
|
border-bottom: 5px solid black;
|
|
|
}
|
|
|
|
|
|
|
|
|
#modal-config {
|
|
|
position: fixed;
|
|
|
top: 0;
|
|
|
left: 0;
|
|
|
height: 100vh;
|
|
|
width: 500px;
|
|
|
background-color: white;
|
|
|
box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
|
|
|
z-index: 1000;
|
|
|
padding: 15px;
|
|
|
transform: none;
|
|
|
}
|
|
|
|
|
|
#modal-config .block.modal-block.padded {
|
|
|
padding-top: 25px;
|
|
|
height: 100vh;
|
|
|
}
|
|
|
|
|
|
#modal-config .modal-container {
|
|
|
margin: 0px;
|
|
|
padding: 0px;
|
|
|
}
|
|
|
|
|
|
#modal-config .close {
|
|
|
display: none;
|
|
|
}
|
|
|
|
|
|
|
|
|
#config-button {
|
|
|
background: none;
|
|
|
border: none;
|
|
|
padding: 8px;
|
|
|
cursor: pointer;
|
|
|
width: 40px;
|
|
|
height: 40px;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
border-radius: 50%;
|
|
|
transition: background-color 0.2s;
|
|
|
}
|
|
|
|
|
|
#config-button::before {
|
|
|
content: '⚙️';
|
|
|
font-size: 20px;
|
|
|
}
|
|
|
|
|
|
#config-button:hover {
|
|
|
background-color: rgba(0, 0, 0, 0.1);
|
|
|
}
|
|
|
|
|
|
|
|
|
.relevancy-score {
|
|
|
margin-top: 10px !important;
|
|
|
font-size: 10px !important;
|
|
|
font-style: italic;
|
|
|
}
|
|
|
|
|
|
.score-green {
|
|
|
color: green !important;
|
|
|
}
|
|
|
|
|
|
.score-orange {
|
|
|
color: orange !important;
|
|
|
}
|
|
|
|
|
|
.score-red {
|
|
|
color: red !important;
|
|
|
}
|
|
|
|
|
|
|
|
|
.gallery-item > div {
|
|
|
white-space: normal !important;
|
|
|
word-break: break-word !important;
|
|
|
overflow-wrap: break-word !important;
|
|
|
}
|
|
|
|
|
|
|
|
|
.avatar-container.svelte-1x5p6hu:not(.thumbnail-item) img {
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
|
object-fit: cover;
|
|
|
border-radius: 50%;
|
|
|
padding: 0px;
|
|
|
margin: 0px;
|
|
|
}
|
|
|
|
|
|
|
|
|
.message-buttons-left.panel.message-buttons.with-avatar {
|
|
|
display: none;
|
|
|
}
|
|
|
|
|
|
|
|
|
.checkmark {
|
|
|
color: green !important;
|
|
|
font-size: 18px;
|
|
|
margin-right: 10px !important;
|
|
|
}
|
|
|
|
|
|
|
|
|
#papers-summary-popup button span,
|
|
|
#papers-relevant-popup span {
|
|
|
font-size: 16px;
|
|
|
font-weight: bold;
|
|
|
text-align: center;
|
|
|
}
|
|
|
|
|
|
|
|
|
#tab-citations .button {
|
|
|
padding: 12px 16px;
|
|
|
font-size: 16px;
|
|
|
font-weight: bold;
|
|
|
cursor: pointer;
|
|
|
border: none;
|
|
|
outline: none;
|
|
|
text-align: left;
|
|
|
transition: background-color 0.3s ease;
|
|
|
}
|
|
|
|
|
|
|
|
|
button#show-figures {
|
|
|
background-color: #f5f5f5;
|
|
|
border: 1px solid #e0e0e0;
|
|
|
border-radius: 4px;
|
|
|
color: #333333;
|
|
|
cursor: pointer;
|
|
|
width: 100%;
|
|
|
text-align: center;
|
|
|
}
|
|
|
|
|
|
|
|
|
.gr-box {
|
|
|
border-color: #d6c37c;
|
|
|
}
|
|
|
|
|
|
|
|
|
#hidden-message {
|
|
|
display: none;
|
|
|
}
|
|
|
|
|
|
|
|
|
label.selected {
|
|
|
background: #93c5fd !important;
|
|
|
}
|
|
|
|
|
|
|
|
|
#submit-button {
|
|
|
padding: 0px !important;
|
|
|
}
|
|
|
|
|
|
|
|
|
.h-full {
|
|
|
height: auto !important;
|
|
|
min-height: 0 !important;
|
|
|
}
|
|
|
|
|
|
.space-content {
|
|
|
height: auto !important;
|
|
|
max-height: 100vh !important;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
|
|
|
|
|
|
#dropdown-samples {
|
|
|
background: none !important;
|
|
|
}
|
|
|
|
|
|
#dropdown-samples > .container > .wrap {
|
|
|
background-color: white;
|
|
|
}
|
|
|
|
|
|
|
|
|
#tab-examples > div > .form {
|
|
|
border: none;
|
|
|
background: none !important;
|
|
|
}
|
|
|
|
|
|
|
|
|
.hidden {
|
|
|
display: none !important;
|
|
|
}
|
|
|
|
|
|
footer {
|
|
|
display: none !important;
|
|
|
visibility: hidden;
|
|
|
}
|
|
|
|
|
|
a {
|
|
|
text-decoration: none;
|
|
|
color: inherit;
|
|
|
}
|
|
|
|
|
|
.a-doc-ref {
|
|
|
text-decoration: none !important;
|
|
|
}
|
|
|
|
|
|
|
|
|
#follow-up-examples {
|
|
|
max-height: 20vh;
|
|
|
overflow-y: auto;
|
|
|
gap: 8px;
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
overflow-y: hidden;
|
|
|
background: rgb(229, 235, 237);
|
|
|
}
|
|
|
|
|
|
#follow-up-button {
|
|
|
overflow-y: visible;
|
|
|
display: block;
|
|
|
padding: 8px 12px;
|
|
|
margin: 4px 0;
|
|
|
border-radius: 8px;
|
|
|
background-color: #f0f8ff;
|
|
|
transition: background-color 0.2s;
|
|
|
background: rgb(240, 240, 236);
|
|
|
|
|
|
}
|
|
|
|
|
|
#follow-up-button:hover {
|
|
|
background-color: #e0f0ff;
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@media screen and (min-width: 1024px) {
|
|
|
.gradio-container {
|
|
|
max-height: calc(100vh - 190px) !important;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
div#tab-examples,
|
|
|
div#sources-textbox,
|
|
|
div#tab-config {
|
|
|
height: calc(100vh - 190px) !important;
|
|
|
overflow-y: scroll !important;
|
|
|
}
|
|
|
div#sources-figures,
|
|
|
div#graphs-container,
|
|
|
div#tab-citations {
|
|
|
height: calc(100vh - 300px) !important;
|
|
|
max-height: 90vh !important;
|
|
|
overflow-y: scroll !important;
|
|
|
}
|
|
|
|
|
|
div#chatbot-row {
|
|
|
max-height: calc(100vh - 200px) !important;
|
|
|
}
|
|
|
|
|
|
div#chatbot {
|
|
|
height: 70vh !important;
|
|
|
max-height: 70vh !important;
|
|
|
}
|
|
|
|
|
|
div#chatbot-row {
|
|
|
max-height: calc(100vh - 90px) !important;
|
|
|
}
|
|
|
|
|
|
div#graphs-container {
|
|
|
height: calc(100vh - 210px) !important;
|
|
|
overflow-y: scroll !important;
|
|
|
}
|
|
|
|
|
|
div#tab-saved-graphs {
|
|
|
overflow-y: auto;
|
|
|
max-height: 80vh;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
@media screen and (max-width: 767px) {
|
|
|
div#chatbot {
|
|
|
height: 400px !important;
|
|
|
}
|
|
|
|
|
|
#follow-up-examples {
|
|
|
max-height: 150px;
|
|
|
}
|
|
|
|
|
|
#submit-button {
|
|
|
padding: 0 !important;
|
|
|
min-width: 80px;
|
|
|
}
|
|
|
|
|
|
div.tab-nav button {
|
|
|
display: none !important;
|
|
|
}
|
|
|
|
|
|
div.tab-nav button:first-child,
|
|
|
div.tab-nav button:nth-child(2) {
|
|
|
display: block !important;
|
|
|
}
|
|
|
|
|
|
#right-panel button {
|
|
|
display: block !important;
|
|
|
}
|
|
|
|
|
|
div#tab-recommended_content {
|
|
|
max-height: 50vh;
|
|
|
overflow-y: auto;
|
|
|
}
|
|
|
|
|
|
div#tab-saved-graphs {
|
|
|
max-height: 50vh;
|
|
|
overflow-y: auto;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
|
.card {
|
|
|
background-color: #374151;
|
|
|
}
|
|
|
|
|
|
.card-image > .card-content {
|
|
|
background-color: rgb(55, 65, 81) !important;
|
|
|
}
|
|
|
|
|
|
.card-footer {
|
|
|
background-color: #404652;
|
|
|
}
|
|
|
|
|
|
.container > .wrap {
|
|
|
background-color: #374151 !important;
|
|
|
color: white !important;
|
|
|
}
|
|
|
|
|
|
.card-content h2 {
|
|
|
color: #e7754f !important;
|
|
|
}
|
|
|
|
|
|
.card-footer span {
|
|
|
color: white !important;
|
|
|
}
|
|
|
|
|
|
body.dark .warning-box *,
|
|
|
body.dark .tip-box * {
|
|
|
color: black !important;
|
|
|
}
|
|
|
|
|
|
.doc-ref sup {
|
|
|
color: rgb(235 109 35)!important;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
#checkbox-config {
|
|
|
display: block;
|
|
|
position: absolute;
|
|
|
background: none;
|
|
|
border: none;
|
|
|
padding: 8px;
|
|
|
cursor: pointer;
|
|
|
width: 40px;
|
|
|
height: 40px;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
border-radius: 50%;
|
|
|
transition: background-color 0.2s;
|
|
|
font-size: 20px;
|
|
|
text-align: center;
|
|
|
}
|
|
|
|
|
|
#checkbox-config:checked {
|
|
|
display: block;
|
|
|
}
|
|
|
|
|
|
#vanna-display {
|
|
|
max-height: 200px;
|
|
|
|
|
|
}
|
|
|
#sql-query{
|
|
|
max-height: 100%;
|
|
|
}
|
|
|
|
|
|
#sql-query textarea{
|
|
|
min-height: 200px !important;
|
|
|
}
|
|
|
|
|
|
#sql-query span{
|
|
|
display: none;
|
|
|
}
|
|
|
div#tab-vanna{
|
|
|
max-height: 100¨vh;
|
|
|
overflow-y: hidden;
|
|
|
}
|
|
|
#details button span{
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
#vanna-plot{
|
|
|
max-height:1000px
|
|
|
}
|
|
|
|
|
|
#pagination-display{
|
|
|
text-align: center;
|
|
|
font-weight: bold;
|
|
|
font-size: 16px;
|
|
|
}
|
|
|
|
|
|
|
|
|
#table-names label {
|
|
|
display: block;
|
|
|
width: 100%;
|
|
|
box-sizing: border-box;
|
|
|
padding: 8px 12px;
|
|
|
margin-bottom: 4px;
|
|
|
border: 1px solid #ccc;
|
|
|
border-radius: 6px;
|
|
|
background-color: white;
|
|
|
cursor: pointer;
|
|
|
text-align: center;
|
|
|
}
|
|
|
|
|
|
#table-names label:hover {
|
|
|
background-color: #f0f8ff;
|
|
|
}
|
|
|
|
|
|
#table-names input[type="radio"] {
|
|
|
display: none;
|
|
|
}
|
|
|
|
|
|
#table-names input[type="radio"]:checked + label {
|
|
|
background-color: #d0eaff;
|
|
|
border-color: #2196f3;
|
|
|
}
|
|
|
|
|
|
|
|
|
#vanna-table {
|
|
|
height: 400px !important;
|
|
|
overflow-y: auto !important;
|
|
|
}
|
|
|
|
|
|
#vanna-table > div[class*="table"] {
|
|
|
height: 400px !important;
|
|
|
overflow-y: None !important;
|
|
|
}
|
|
|
|
|
|
#vanna-table .table-wrap {
|
|
|
height: 400px !important;
|
|
|
overflow-y: None !important;
|
|
|
}
|
|
|
|
|
|
#vanna-table thead {
|
|
|
position: sticky;
|
|
|
top: 0;
|
|
|
background: white;
|
|
|
z-index: 1;
|
|
|
}
|
|
|
|
|
|
.example-img{
|
|
|
height: 250px;
|
|
|
object-fit: contain;
|
|
|
}
|
|
|
|
|
|
#example-img-container {
|
|
|
flex-direction: column;
|
|
|
align-items: left;
|
|
|
}
|
|
|
|