Spaces:
Running
Running
.tabs.svelte-710i53 { | |
margin-top: 0 | |
} | |
.py-6 { | |
padding-top: 2.5rem | |
} | |
.small-button { | |
min-width: 0 ; | |
max-width: 171px; | |
height: 39.594px; | |
align-self: end; | |
} | |
.refresh-button { | |
max-width: 4.4em; | |
min-width: 2.2em ; | |
height: 39.594px; | |
align-self: end; | |
line-height: 1em; | |
border-radius: 0.5em; | |
flex: none; | |
} | |
.refresh-button-small { | |
max-width: 2.2em; | |
} | |
.button_nowrap { | |
white-space: nowrap; | |
} | |
#slim-column { | |
flex: none ; | |
min-width: 0 ; | |
} | |
.slim-dropdown { | |
background-color: transparent ; | |
border: none ; | |
padding: 0 ; | |
} | |
#download-label, #upload-label { | |
min-height: 0 | |
} | |
.dark svg { | |
fill: white; | |
} | |
.dark a { | |
color: white ; | |
} | |
ol li p, ul li p { | |
display: inline-block; | |
} | |
#chat-tab, #default-tab, #notebook-tab, #parameters, #chat-settings, #lora, #training-tab, #model-tab, #session-tab { | |
border: 0; | |
} | |
.gradio-container { | |
max-width: 100% ; | |
padding-top: 0 ; | |
} | |
#extensions { | |
margin-top: 5px; | |
margin-bottom: 35px; | |
} | |
.extension-tab { | |
border: 0 ; | |
} | |
span.math.inline { | |
font-size: 27px; | |
vertical-align: baseline ; | |
} | |
div.svelte-15lo0d8 > *, div.svelte-15lo0d8 > .form > * { | |
flex-wrap: nowrap; | |
} | |
gradio-app > :first-child { | |
padding-left: var(--size-4) ; | |
padding-right: var(--size-4) ; | |
} | |
.header_bar { | |
background-color: #f4f4f4; | |
box-shadow: 0 0 3px rgba(22 22 22 / 35%); | |
margin-bottom: 0; | |
overflow-x: scroll; | |
margin-left: calc(-1 * var(--size-4)); | |
margin-right: calc(-1 * var(--size-4)); | |
display: block ; | |
text-wrap: nowrap; | |
z-index: 90; | |
} | |
.dark .header_bar { | |
border: none ; | |
box-shadow: 0 3px 4px rgba(20 20 20 / 60%); | |
background-color: #8080802b; | |
} | |
.header_bar button.selected { | |
border-radius: 0; | |
} | |
.textbox_default textarea { | |
height: calc(100dvh - 271px); | |
} | |
.textbox_default_output textarea { | |
height: calc(100dvh - 185px); | |
} | |
.textbox textarea { | |
height: calc(100dvh - 241px); | |
} | |
.textbox_logits textarea { | |
height: calc(100dvh - 236px); | |
} | |
.textbox_logits_notebook textarea { | |
height: calc(100dvh - 292px); | |
} | |
.monospace textarea { | |
font-family: monospace; | |
} | |
.textbox_default textarea, | |
.textbox_default_output textarea, | |
.textbox_logits textarea, | |
.textbox_logits_notebook textarea, | |
.textbox textarea { | |
font-size: 16px ; | |
color: #46464A ; | |
} | |
.dark textarea { | |
color: #efefef ; | |
} | |
@media screen and (width <= 711px) { | |
.textbox_default textarea { | |
height: calc(100dvh - 259px); | |
} | |
div .default-token-counter { | |
top: calc( 0.5 * (100dvh - 236px) ) ; | |
} | |
.transparent-substring { | |
display: none; | |
} | |
.hover-menu { | |
min-width: 250px ; | |
} | |
} | |
/* Hide the gradio footer */ | |
footer { | |
display: none ; | |
} | |
button { | |
font-size: 14px ; | |
} | |
.file-saver { | |
position: fixed ; | |
height: 100%; | |
z-index: 1000; | |
background-color: rgb(0 0 0 / 50%) ; | |
margin-left: -20px; | |
margin-right: -20px; | |
} | |
.file-saver > :first-child { | |
position: fixed ; | |
top: 50%; | |
left: 50%; | |
transform: translate(-50%, -50%); /* center horizontally */ | |
width: 100%; | |
max-width: 500px; | |
background-color: var(--input-background-fill); | |
border: var(--input-border-width) solid var(--input-border-color) ; | |
} | |
.file-saver > :first-child > :last-child { | |
background: var(--block-background-fill); | |
justify-content: flex-end; | |
} | |
.checkboxgroup-table label { | |
background: none ; | |
padding: 0 ; | |
border: 0 ; | |
} | |
.checkboxgroup-table div { | |
display: grid ; | |
} | |
.markdown ul ol { | |
font-size: 100% ; | |
} | |
.pretty_scrollbar::-webkit-scrollbar { | |
width: 7px; | |
height: 7px; | |
} | |
.pretty_scrollbar::-webkit-scrollbar-track { | |
background: transparent; | |
} | |
.pretty_scrollbar::-webkit-scrollbar-thumb, | |
.pretty_scrollbar::-webkit-scrollbar-thumb:hover { | |
background: var(--neutral-300); | |
} | |
.dark .pretty_scrollbar::-webkit-scrollbar-thumb, | |
.dark .pretty_scrollbar::-webkit-scrollbar-thumb:hover { | |
background: var(--neutral-700); | |
} | |
.pretty_scrollbar::-webkit-resizer { | |
background: #c5c5d2; | |
} | |
.dark .pretty_scrollbar::-webkit-resizer { | |
background: #374151; | |
} | |
.pretty_scrollbar::-webkit-scrollbar-corner { | |
background: transparent; | |
} | |
audio { | |
max-width: 100%; | |
} | |
/* Copied from https://github.com/AUTOMATIC1111/stable-diffusion-webui */ | |
.token-counter { | |
position: absolute ; | |
top: calc( 0.5 * (100dvh - 218px) ) ; | |
right: 2px; | |
z-index: 100; | |
background: var(--input-background-fill) ; | |
min-height: 0 ; | |
} | |
.default-token-counter { | |
top: calc( 0.5 * (100dvh - 248px) ) ; | |
} | |
.token-counter span { | |
padding: 1px; | |
box-shadow: 0 0 0 0.3em rgb(192 192 192 / 15%), inset 0 0 0.6em rgb(192 192 192 / 7.5%); | |
border: 2px solid rgb(192 192 192 / 40%) ; | |
border-radius: 0.4em; | |
} | |
.no-background { | |
background: var(--background-fill-primary) ; | |
padding: 0 ; | |
} | |
/* ---------------------------------------------- | |
Chat tab | |
---------------------------------------------- */ | |
.h-\[40vh\], .wrap.svelte-byatnx.svelte-byatnx.svelte-byatnx { | |
height: 66.67vh | |
} | |
.gradio-container { | |
margin-left: auto ; | |
margin-right: auto ; | |
} | |
.w-screen { | |
width: unset | |
} | |
div.svelte-362y77>*, div.svelte-362y77>.form>* { | |
flex-wrap: nowrap | |
} | |
.pending.svelte-1ed2p3z { | |
opacity: 1; | |
} | |
.wrap.svelte-6roggh.svelte-6roggh { | |
max-height: 92.5%; | |
} | |
/* This is for the microphone button in the whisper extension */ | |
.sm.svelte-1ipelgc { | |
width: 100%; | |
} | |
#chat-tab { | |
padding-top: 0; | |
} | |
#chat-tab button#Generate, #chat-tab button#stop { | |
width: 89.3438px ; | |
} | |
#chat-tab button, #notebook-tab button, #default-tab button { | |
min-width: 0 ; | |
} | |
#chat-tab > :first-child, #extensions { | |
max-width: 880px; | |
margin-left: auto; | |
margin-right: auto; | |
} | |
@media screen and (width <= 688px) { | |
#chat-tab { | |
padding-left: 0; | |
padding-right: 0; | |
} | |
.chat { | |
padding-left: 0; | |
padding-right: 0; | |
} | |
} | |
.chat { | |
margin-left: auto; | |
margin-right: auto; | |
max-width: 880px; | |
min-height: var(--chat-height); | |
overflow-y: auto; | |
padding-right: 15px; | |
display: flex; | |
flex-direction: column; | |
word-break: break-word; | |
overflow-wrap: anywhere; | |
border-top: none; | |
border-radius: 0 0 0 8px; | |
visibility: visible; | |
} | |
.chat-parent { | |
height: calc(100dvh - 98px - var(--header-height) - var(--input-delta)); | |
overflow: auto ; | |
border-radius: 0 ; | |
margin-bottom: var(--input-delta) ; | |
} | |
/* On desktop, automatically hide the chat scroll bar | |
* when not hovered. */ | |
@media (hover: hover) and (pointer: fine) { | |
.chat-parent { | |
visibility: hidden; | |
} | |
.chat-parent:focus, .chat-parent:hover { | |
visibility: visible; | |
} | |
} | |
.chat-parent .prose { | |
visibility: visible; | |
} | |
.old-ui .chat-parent { | |
height: calc(100dvh - 192px - var(--header-height) - var(--input-delta)); | |
margin-bottom: var(--input-delta) ; | |
} | |
.chat-parent.bigchat { | |
height: calc(100dvh - 98px - var(--header-height) - var(--input-delta)) ; | |
margin-bottom: var(--input-delta) ; | |
} | |
.chat > .messages { | |
display: flex; | |
flex-direction: column; | |
padding-top: 25px; | |
} | |
.chat .message:last-child { | |
margin-bottom: 0 ; | |
padding-bottom: 15px ; | |
} | |
.message-body h1, | |
.message-body h2, | |
.message-body h3, | |
.message-body h4 { | |
color: var(--body-text-color); | |
margin: 20px 0 10px 0; | |
} | |
.dark .message q { | |
color: #f5b031; | |
} | |
.message-body q::before, .message-body q::after { | |
content: ""; | |
} | |
.message-body li { | |
list-style-position: outside; | |
} | |
.chat .message-body ul, .chat .message-body ol { | |
padding-inline-start: 2em; | |
} | |
.message-body li:not(:last-child) { | |
margin-top: 0 ; | |
margin-bottom: 2px ; | |
} | |
.message-body li:last-child { | |
margin-bottom: 0 ; | |
} | |
.message-body li > p { | |
display: inline ; | |
} | |
.message-body ul, .message-body ol { | |
font-size: 15px ; | |
} | |
.message-body ul { | |
list-style-type: disc ; | |
} | |
.message-body pre:not(:last-child) { | |
margin-bottom: 35.625px ; | |
} | |
.message-body pre:last-child { | |
margin-bottom: 0 ; | |
} | |
#default-tab .prose pre, #notebook-tab .prose pre { | |
overflow: scroll; | |
} | |
.message-body code { | |
white-space: pre-wrap ; | |
word-wrap: break-word ; | |
border: 1px solid #666; | |
border-radius: 5px; | |
font-size: 82%; | |
padding: 1px 3px; | |
background: white ; | |
color: #1f2328; | |
} | |
.dark .message-body code { | |
background: #0d1117 ; | |
color: rgb(201 209 217); | |
} | |
.message-body pre > code { | |
display: block; | |
padding: 15px; | |
} | |
.message-body :not(pre) > code { | |
white-space: normal ; | |
} | |
#chat-input { | |
padding: 0; | |
padding-top: 18px; | |
background: transparent; | |
border: none; | |
} | |
#chat-input textarea:focus { | |
box-shadow: none ; | |
} | |
#chat-input > :first-child { | |
background-color: transparent; | |
} | |
#chat-input .progress-text { | |
display: none; | |
} | |
@media print { | |
body { | |
visibility: hidden; | |
} | |
.chat { | |
visibility: visible; | |
position: absolute; | |
left: 0; | |
top: 0; | |
max-width: unset; | |
max-height: unset; | |
width: 100%; | |
overflow-y: visible; | |
} | |
.message { | |
break-inside: avoid; | |
} | |
.gradio-container { | |
overflow: visible; | |
} | |
.tab-nav { | |
display: none ; | |
} | |
#chat-tab > :first-child { | |
max-width: unset; | |
} | |
} | |
#show-controls { | |
position: absolute; | |
height: 100%; | |
background-color: transparent; | |
border: 0 ; | |
border-radius: 0; | |
} | |
#show-controls label { | |
z-index: 1000; | |
position: absolute; | |
right: 0; | |
white-space: nowrap; | |
overflow: hidden; | |
text-overflow: ellipsis; | |
} | |
.dark #show-controls span { | |
color: var(--neutral-400); | |
} | |
#show-controls span { | |
color: var(--neutral-600); | |
} | |
#typing-container { | |
display: none; | |
position: absolute; | |
background-color: transparent; | |
left: -2px; | |
top: 4px; | |
padding: var(--block-padding); | |
} | |
.typing { | |
position: relative; | |
} | |
.visible-dots #typing-container { | |
display: block; | |
} | |
.typing span { | |
content: ''; | |
animation: blink 1.5s infinite; | |
animation-fill-mode: both; | |
height: 10px; | |
width: 10px; | |
background: #3b5998;; | |
position: absolute; | |
left:0; | |
top:0; | |
border-radius: 50%; | |
} | |
.typing .dot1 { | |
animation-delay: .2s; | |
margin-left: calc(10px * 1.5); | |
} | |
.typing .dot2 { | |
animation-delay: .4s; | |
margin-left: calc(10px * 3); | |
} | |
@keyframes blink { | |
0% { | |
opacity: .1; | |
} | |
20% { | |
opacity: 1; | |
} | |
100% { | |
opacity: .1; | |
} | |
} | |
#chat-tab .generating { | |
display: none ; | |
} | |
.hover-element { | |
position: relative; | |
font-size: 24px; | |
} | |
.hover-menu { | |
display: none; | |
position: absolute; | |
bottom: 80%; | |
left: 0; | |
background-color: var(--background-fill-primary); | |
box-shadow: 0 0 5px rgb(0 0 0 / 25%); | |
z-index: 10000; | |
min-width: 330px; | |
flex-direction: column; | |
} | |
.hover-menu button { | |
width: 100%; | |
background: transparent ; | |
border-radius: 0 ; | |
border-color: var(--border-color-primary); | |
justify-content: space-between; | |
margin: 0 ; | |
height: 36px; | |
} | |
.hover-menu button:not(#clear-history-confirm) { | |
border-bottom: 0 ; | |
} | |
.hover-menu button:not(#clear-history-confirm):last-child { | |
border-bottom: var(--button-border-width) solid var(--border-color-primary) ; | |
} | |
.hover-menu button:hover { | |
background: var(--button-secondary-background-fill-hover) ; | |
} | |
.transparent-substring { | |
opacity: 0.333; | |
} | |
#chat-tab:not(.old-ui) #chat-buttons { | |
display: none ; | |
} | |
#gr-hover-container { | |
min-width: 0 ; | |
display: flex; | |
flex-direction: column-reverse; | |
padding-right: 20px; | |
padding-bottom: 3px; | |
flex-grow: 0 ; | |
} | |
#generate-stop-container { | |
min-width: 0 ; | |
display: flex; | |
flex-direction: column-reverse; | |
padding-bottom: 3px; | |
flex: 0 auto ; | |
} | |
#chat-input-container { | |
min-width: 0 ; | |
} | |
#chat-input-container > .form { | |
background: transparent; | |
border: none; | |
} | |
#chat-input-row { | |
padding-bottom: 20px; | |
} | |
.old-ui #chat-input-row, #chat-input-row.bigchat { | |
padding-bottom: 0 ; | |
} | |
#chat-col { | |
padding-bottom: 100px; | |
} | |
.old-ui #chat-col, #chat-col.bigchat { | |
padding-bottom: 80px ; | |
} | |
.old-ui #chat-buttons #clear-history-confirm { | |
order: -1; | |
} | |
.chat ol, .chat ul { | |
margin-top: 6px ; | |
} | |
/* ---------------------------------------------- | |
Past chats menus | |
---------------------------------------------- */ | |
#rename-row label { | |
margin-top: var(--layout-gap); | |
} | |
/* ---------------------------------------------- | |
Past chat histories in a side bar on desktop | |
---------------------------------------------- */ | |
@media screen and (width >= 1327px) { | |
#past-chats-row { | |
position: absolute; | |
top: 36px; | |
left: 0; | |
width: calc(0.5*(var(--document-width) - 880px - 120px - 16px*2)); | |
max-width: 300px; | |
margin-left: calc(-0.5*(var(--document-width) - 880px - 14px - 16px * 2)); | |
} | |
#chat-controls { | |
position: absolute; | |
top: 16px; | |
right: 0; | |
width: calc(0.5*(var(--document-width) - 880px - 120px - 16px*2)); | |
max-width: 400px; | |
margin-right: calc(-0.5*(var(--document-width) - 880px - 14px - 16px * 2)); | |
} | |
} | |
/* ---------------------------------------------- | |
Keep dropdown menus above errored components | |
---------------------------------------------- */ | |
.options { | |
z-index: 100 ; | |
} | |
/* ---------------------------------------------- | |
Big profile picture for characters | |
---------------------------------------------- */ | |
.bigProfilePicture { | |
position: fixed; | |
bottom: 0; | |
left: 0; | |
width: calc((100vw - 880px - 120px) /2); | |
} | |
.pfp_character { | |
position: relative; | |
z-index: 100; | |
} | |
.pfp_character:hover { | |
cursor: pointer; | |
} | |
@media screen and (width <= 1300px) { | |
.bigProfilePicture { | |
display: none; | |
} | |
} | |
#past-chats { | |
max-height: calc(100vh - 195px); | |
overflow-y: scroll ; | |
border-radius: 0; | |
scrollbar-width: none; /* Hide scrollbar in Firefox by default */ | |
} | |
#past-chats label { | |
width: 100%; | |
background-color: transparent ; | |
background: none; | |
border: 0; | |
border-radius: 0; | |
padding-top: 8px; | |
padding-bottom: 8px; | |
} | |
#past-chats > :nth-child(2) { | |
display: none; | |
} | |
#past-chats > :nth-child(3) { | |
gap: 0; | |
} | |
#past-chats::-webkit-scrollbar { | |
display: none; | |
} | |
#past-chats:hover { | |
scrollbar-width: auto; | |
} | |
#past-chats:hover::-webkit-scrollbar { | |
display: block; | |
} | |
@media screen and (width < 1327px) { | |
#past-chats { | |
max-height: 300px; | |
} | |
} | |