Spaces:
Sleeping
Sleeping
/* :root { | |
--user-image: url('https://ih1.redbubble.net/image.4776899543.6215/st,small,507x507-pad,600x600,f8f8f8.jpg'); | |
} */ | |
.avatar-container.svelte-1x5p6hu:not(.thumbnail-item) img { | |
width: 100%; | |
height: 100%; | |
object-fit: cover; | |
border-radius: 50%; | |
padding: 0px; | |
margin: 0px; | |
} | |
.gradio-container { | |
width: 100% ; | |
max-width: 100% ; | |
} | |
/* fix for huggingface infinite growth*/ | |
main.flex.flex-1.flex-col { | |
max-height: 95vh ; | |
} | |
button#show-figures{ | |
/* Base styles */ | |
background-color: #f5f5f5; | |
border: 1px solid #e0e0e0; | |
border-radius: 4px; | |
color: #333333; | |
cursor: pointer; | |
width: 100%; | |
text-align: center; | |
} | |
.avatar-container.svelte-1x5p6hu:not(.thumbnail-item) img { | |
width: 100%; | |
height: 100%; | |
object-fit: cover; | |
border-radius: 50%; | |
padding: 0px; | |
margin: 0px; | |
} | |
.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-top:20px; | |
padding: 15px 20px; | |
font-size: 14px; | |
display: inline-block; | |
margin-bottom: 15px; | |
width: auto; | |
color:black ; | |
} | |
body.dark .warning-box * { | |
color:black ; | |
} | |
body.dark .tip-box * { | |
color:black ; | |
} | |
.tip-box-title { | |
font-weight: bold; | |
font-size: 14px; | |
margin-bottom: 5px; | |
} | |
.light-bulb { | |
display: inline; | |
margin-right: 5px; | |
} | |
.gr-box {border-color: #d6c37c} | |
#hidden-message{ | |
display:none; | |
} | |
.message{ | |
font-size:14px ; | |
} | |
.card-content img { | |
display: block; | |
margin: auto; | |
max-width: 100%; /* Ensures the image is responsive */ | |
height: auto; | |
} | |
a { | |
text-decoration: none; | |
color: inherit; | |
} | |
.doc-ref sup{ | |
color:#dc2626 ; | |
/* margin-right:1px; */ | |
} | |
.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 ; | |
font-weight: bold; | |
margin-bottom: 10px; | |
margin-top:0px ; | |
color:#dc2626 ;; | |
} | |
.card-content p { | |
font-size: 12px; | |
margin-bottom: 0; | |
} | |
.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 ; | |
} | |
.pdf-link { | |
display: inline-flex; | |
align-items: center; | |
margin-left: auto; | |
text-decoration: none ; | |
font-size: 14px; | |
} | |
.message.user{ | |
/* background-color:#7494b0 !important; */ | |
border:none; | |
/* color:white!important; */ | |
} | |
.message.bot{ | |
/* background-color:#f2f2f7 !important; */ | |
border:none; | |
} | |
/* .gallery-item > div:hover{ | |
background-color:#7494b0 !important; | |
color:white!important; | |
} | |
.gallery-item:hover{ | |
border:#7494b0 !important; | |
} | |
.gallery-item > div{ | |
background-color:white !important; | |
color:#577b9b!important; | |
} | |
.label{ | |
color:#577b9b!important; | |
} */ | |
/* .paginate{ | |
color:#577b9b!important; | |
} */ | |
/* span[data-testid="block-info"]{ | |
background:none !important; | |
color:#577b9b; | |
} */ | |
/* Pseudo-element for the circularly cropped picture */ | |
/* .message.bot::before { | |
content: ''; | |
position: absolute; | |
top: -10px; | |
left: -10px; | |
width: 30px; | |
height: 30px; | |
background-image: var(--user-image); | |
background-size: cover; | |
background-position: center; | |
border-radius: 50%; | |
z-index: 10; | |
} | |
*/ | |
label.selected{ | |
background:none ; | |
} | |
#submit-button{ | |
padding:0px ; | |
} | |
@media screen and (min-width: 1024px) { | |
.gradio-container { | |
max-height: calc(100vh - 190px) ; | |
overflow: hidden; | |
} | |
/* div#chatbot{ | |
height:calc(100vh - 170px) !important; | |
max-height:calc(100vh - 170px) !important; | |
} */ | |
div#tab-examples{ | |
height:calc(100vh - 190px) ; | |
overflow-y: scroll ; | |
/* overflow-y: auto; */ | |
} | |
div#sources-textbox{ | |
height:calc(100vh - 190px) ; | |
overflow-y: scroll ; | |
/* overflow-y: auto !important; */ | |
} | |
div#sources-figures{ | |
height:calc(100vh - 300px) ; | |
max-height: 90vh ; | |
overflow-y: scroll ; | |
} | |
div#tab-config{ | |
height:calc(100vh - 190px) ; | |
overflow-y: scroll ; | |
/* overflow-y: auto !important; */ | |
} | |
/* Force container to respect height limits */ | |
.main-component{ | |
contain: size layout; | |
overflow: hidden; | |
} | |
div#chatbot-row{ | |
max-height:calc(100vh - 90px) ; | |
} | |
/* | |
.max-height{ | |
height:calc(100vh - 90px) !important; | |
max-height:calc(100vh - 90px) !important; | |
overflow-y: auto; | |
} | |
*/ | |
} | |
footer { | |
visibility: hidden; | |
display:none ; | |
} | |
@media screen and (max-width: 767px) { | |
/* Your mobile-specific styles go here */ | |
div#chatbot{ | |
height:500px ; | |
} | |
#submit-button{ | |
padding:0px ; | |
min-width: 80px; | |
} | |
/* This will hide all list items */ | |
div.tab-nav button { | |
display: none ; | |
} | |
/* This will show only the first list item */ | |
div.tab-nav button:first-child { | |
display: block ; | |
} | |
/* This will show only the first list item */ | |
div.tab-nav button:nth-child(2) { | |
display: block ; | |
} | |
#right-panel button{ | |
display: block ; | |
} | |
/* ... add other mobile-specific styles ... */ | |
} | |
@media (prefers-color-scheme: dark) { | |
.card{ | |
background-color: #374151; | |
} | |
.card-image > .card-content{ | |
background-color: rgb(55, 65, 81) ; | |
} | |
.card-footer { | |
background-color: #404652; | |
} | |
.container > .wrap{ | |
background-color: #374151 ; | |
color:white ; | |
} | |
.card-content h2{ | |
color:#e7754f ; | |
} | |
.doc-ref sup{ | |
color:rgb(235 109 35) ; | |
/* margin-right:1px; */ | |
} | |
.card-footer span { | |
color:white ; | |
} | |
} | |
.doc-ref{ | |
color:#dc2626 ; | |
margin-right:1px; | |
} | |
.tabitem{ | |
border:none ; | |
} | |
.other-tabs > div{ | |
padding-left:40px; | |
padding-right:40px; | |
padding-top:10px; | |
} | |
.gallery-item > div{ | |
white-space: normal ; /* Allow the text to wrap */ | |
word-break: break-word ; /* Break words to prevent overflow */ | |
overflow-wrap: break-word ; /* Break long words if necessary */ | |
} | |
span.chatbot > p > img{ | |
margin-top:40px ; | |
max-height: none ; | |
max-width: 80% ; | |
border-radius:0px ; | |
} | |
.chatbot-caption{ | |
font-size:11px; | |
font-style:italic; | |
color:#508094; | |
} | |
.ai-generated{ | |
font-size:11px ; | |
font-style:italic; | |
color:#73b8d4 ; | |
} | |
.card-image > .card-content{ | |
background-color:#f1f7fa; | |
} | |
.tab-nav > button.selected{ | |
color:#4b8ec3; | |
font-weight:bold; | |
border:none; | |
} | |
.tab-nav{ | |
border:none ; | |
} | |
#input-textbox > label > textarea{ | |
border-radius:40px; | |
padding-left:30px; | |
resize:none; | |
} | |
#input-message > div{ | |
border:none; | |
} | |
#dropdown-samples{ | |
/*! border:none !important; */ | |
/*! border-width:0px !important; */ | |
background:none ; | |
} | |
#dropdown-samples > .container > .wrap{ | |
background-color:white; | |
} | |
#tab-examples > div > .form{ | |
border:none; | |
background:none ; | |
} | |
.a-doc-ref{ | |
text-decoration: none ; | |
} | |
.dropdown { | |
position: relative; | |
display:inline-block; | |
margin-bottom: 10px; | |
} | |
.dropdown-toggle { | |
background-color: #f2f2f2; | |
color: black; | |
padding: 10px; | |
font-size: 16px; | |
cursor: pointer; | |
display: block; | |
width: 400px; /* Adjust width as needed */ | |
position: relative; | |
display: flex; | |
align-items: center; /* Vertically center the contents */ | |
justify-content: left; | |
} | |
.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%); | |
} | |
input[type="checkbox"] { | |
display: none ; | |
} | |
input[type="checkbox"]:checked + .dropdown-content { | |
display: block; | |
} | |
.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"]:checked + .dropdown-toggle + .dropdown-content { | |
display: block; | |
} | |
input[type="checkbox"]:checked + .dropdown-toggle .caret { | |
border-top: 0; | |
border-bottom: 5px solid black; | |
} | |
.loader { | |
border: 1px solid #d0d0d0 ; /* Light grey background */ | |
border-top: 1px solid #db3434 ; /* Blue color */ | |
border-right: 1px solid #3498db ; /* Blue color */ | |
border-radius: 50%; | |
width: 20px; | |
height: 20px; | |
animation: spin 2s linear infinite; | |
display:inline-block; | |
margin-right:10px ; | |
} | |
.checkmark{ | |
color:green ; | |
font-size:18px; | |
margin-right:10px ; | |
} | |
@keyframes spin { | |
0% { transform: rotate(0deg); } | |
100% { transform: rotate(360deg); } | |
} | |
.relevancy-score{ | |
margin-top:10px ; | |
font-size:10px ; | |
font-style:italic; | |
} | |
.score-green{ | |
color:green ; | |
} | |
.score-orange{ | |
color:orange ; | |
} | |
.score-orange{ | |
color:red ; | |
} | |
/* Additional style for scrollable tab content */ | |
div#tab-recommended_content { | |
overflow-y: auto; /* Enable vertical scrolling */ | |
max-height: 80vh; /* Adjust height as needed */ | |
} | |
/* Mobile specific adjustments */ | |
@media screen and (max-width: 767px) { | |
div#tab-recommended_content { | |
max-height: 50vh; /* Reduce height for smaller screens */ | |
overflow-y: auto; | |
} | |
} | |
/* Additional style for scrollable tab content */ | |
div#tab-saved-graphs { | |
overflow-y: auto; /* Enable vertical scrolling */ | |
max-height: 80vh; /* Adjust height as needed */ | |
} | |
/* Mobile specific adjustments */ | |
@media screen and (max-width: 767px) { | |
div#tab-saved-graphs { | |
max-height: 50vh; /* Reduce height for smaller screens */ | |
overflow-y: auto; | |
} | |
} | |
.message-buttons-left.panel.message-buttons.with-avatar { | |
display: none; | |
} | |
.score-red{ | |
color:red ; | |
} | |
.message-buttons-left.panel.message-buttons.with-avatar { | |
display: none; | |
} | |
/* Specific fixes for Hugging Face Space iframe */ | |
.h-full { | |
height: auto ; | |
min-height: 0 ; | |
} | |
.space-content { | |
height: auto ; | |
max-height: 100vh ; | |
overflow: hidden; | |
} | |