text-generation-webui/css/main.css

470 lines
7.9 KiB
CSS
Raw Normal View History

2023-03-15 16:33:26 +01:00
.tabs.svelte-710i53 {
margin-top: 0
}
2023-03-17 01:31:39 +01:00
2023-03-15 16:33:26 +01:00
.py-6 {
padding-top: 2.5rem
}
2023-03-17 01:31:39 +01:00
.small-button {
2023-08-14 03:45:13 +02:00
min-width: 0 !important;
max-width: 171px;
height: 39.594px;
align-self: end;
}
.refresh-button {
max-width: 4.4em;
min-width: 2.2em !important;
height: 39.594px;
align-self: end;
line-height: 1em;
border-radius: 0.5em;
flex: none;
2023-03-15 16:33:26 +01:00
}
2023-03-17 01:31:39 +01:00
.refresh-button-small {
max-width: 2.2em;
}
.button_nowrap {
white-space: nowrap;
}
#slim-column {
flex: none !important;
min-width: 0 !important;
}
.slim-dropdown {
background-color: transparent !important;
border: none !important;
padding: 0 !important;
2023-03-15 16:33:26 +01:00
}
2023-03-17 01:31:39 +01:00
2023-03-15 16:33:26 +01:00
#download-label, #upload-label {
2023-05-25 18:12:34 +02:00
min-height: 0
2023-03-15 16:33:26 +01:00
}
2023-03-17 01:31:39 +01:00
2023-03-15 16:33:26 +01:00
.dark svg {
2023-05-25 18:12:34 +02:00
fill: white;
2023-03-15 16:33:26 +01:00
}
2023-03-17 01:31:39 +01:00
2023-03-18 00:19:04 +01:00
.dark a {
2023-05-25 18:12:34 +02:00
color: white !important;
2023-03-18 00:19:04 +01:00
}
2023-03-15 16:33:26 +01:00
ol li p, ul li p {
display: inline-block;
}
2023-03-17 01:31:39 +01:00
2023-08-13 06:12:15 +02:00
#chat-tab, #default-tab, #notebook-tab, #parameters, #chat-settings, #lora, #training-tab, #model-tab, #session-tab {
2023-05-25 18:12:34 +02:00
border: 0;
2023-03-15 16:33:26 +01:00
}
2023-03-23 04:13:34 +01:00
.gradio-container-3-18-0 .prose * h1, h2, h3, h4 {
2023-05-25 18:12:34 +02:00
color: white;
2023-03-23 04:13:34 +01:00
}
2023-03-27 03:20:30 +02:00
.gradio-container {
2023-05-25 18:12:34 +02:00
max-width: 100% !important;
padding-top: 0 !important;
2023-03-27 03:20:30 +02:00
}
#extensions {
2023-05-25 18:12:34 +02:00
margin-bottom: 35px;
2023-03-27 03:20:30 +02:00
}
2023-03-27 17:59:07 +02:00
2023-05-17 06:25:01 +02:00
.extension-tab {
2023-05-25 18:12:34 +02:00
border: 0 !important;
2023-05-17 06:25:01 +02:00
}
2023-03-27 17:59:07 +02:00
span.math.inline {
2023-05-25 18:12:34 +02:00
font-size: 27px;
vertical-align: baseline !important;
2023-03-27 17:59:07 +02:00
}
2023-04-04 23:30:34 +02:00
div.svelte-15lo0d8 > *, div.svelte-15lo0d8 > .form > * {
2023-05-25 18:12:34 +02:00
flex-wrap: nowrap;
}
2023-04-10 21:15:16 +02:00
.header_bar {
2023-05-25 18:12:34 +02:00
background-color: #f7f7f7;
2023-08-01 18:41:57 +02:00
margin-bottom: 20px;
display: inline !important;
overflow-x: scroll;
2023-04-10 21:15:16 +02:00
}
.dark .header_bar {
2023-05-25 18:12:34 +02:00
border: none !important;
background-color: #8080802b;
2023-04-10 21:15:16 +02:00
}
2023-04-19 04:36:23 +02:00
.header_bar button.selected {
border-radius: 0;
}
2023-04-19 04:36:23 +02:00
.textbox_default textarea {
2023-08-21 07:09:18 +02:00
height: calc(100dvh - 280px);
2023-04-19 04:36:23 +02:00
}
.textbox_default_output textarea {
height: calc(100dvh - 190px);
2023-04-19 04:36:23 +02:00
}
.textbox textarea {
height: calc(100dvh - 241px);
2023-04-19 04:36:23 +02:00
}
2023-08-21 01:49:21 +02:00
.textbox_logits textarea {
height: calc(100dvh - 241px);
}
.textbox_logits_notebook textarea {
height: calc(100dvh - 292px);
}
.textbox_default textarea,
.textbox_default_output textarea,
.textbox_logits textarea,
.textbox_logits_notebook textarea,
.textbox textarea
{
2023-05-25 18:12:34 +02:00
font-size: 16px !important;
color: #46464A !important;
2023-04-19 04:36:23 +02:00
}
.dark textarea {
2023-05-25 18:12:34 +02:00
color: #efefef !important;
2023-04-19 04:36:23 +02:00
}
2023-08-13 06:12:15 +02:00
@media screen and (max-width: 711px) {
.textbox_default textarea {
height: calc(100dvh - 271px);
}
div .default-token-counter {
top: calc( 0.5 * (100dvh - 245px) ) !important;
2023-08-13 06:12:15 +02:00
}
}
2023-04-19 04:36:23 +02:00
/* Hide the gradio footer*/
footer {
2023-05-25 18:12:34 +02:00
display: none !important;
2023-04-19 04:36:23 +02:00
}
2023-04-19 05:56:24 +02:00
button {
2023-05-25 18:12:34 +02:00
font-size: 14px !important;
2023-04-19 05:56:24 +02:00
}
2023-04-21 07:35:28 +02:00
.file-saver {
position: fixed !important;
top: 50%;
left: 50%;
transform: translate(-50%, -50%); /* center horizontally */
max-width: 500px;
background-color: var(--input-background-fill);
border: 2px solid black !important;
z-index: 1000;
}
.dark .file-saver {
border: 2px solid white !important;
2023-06-11 20:29:45 +02:00
}
.checkboxgroup-table label {
background: none !important;
padding: 0 !important;
border: 0 !important;
}
.checkboxgroup-table div {
display: grid !important;
}
.markdown ul ol {
font-size: 100% !important;
}
.pretty_scrollbar::-webkit-scrollbar {
width: 5px;
}
.pretty_scrollbar::-webkit-scrollbar-track {
background: transparent;
}
.pretty_scrollbar::-webkit-scrollbar-thumb,
.pretty_scrollbar::-webkit-scrollbar-thumb:hover {
background: #c5c5d2;
}
.dark .pretty_scrollbar::-webkit-scrollbar-thumb,
.dark .pretty_scrollbar::-webkit-scrollbar-thumb:hover {
background: #374151;
}
.pretty_scrollbar::-webkit-resizer {
background: #c5c5d2;
}
.dark .pretty_scrollbar::-webkit-resizer {
background: #374151;
}
2023-08-13 06:12:15 +02:00
2023-08-16 18:35:10 +02:00
audio {
max-width: 100%;
}
/* Copied from https://github.com/AUTOMATIC1111/stable-diffusion-webui */
.token-counter {
position: absolute !important;
top: calc( 0.5 * (100dvh - 215px) ) !important;
right: 2px;
z-index: 100;
background: var(--input-background-fill) !important;
min-height: 0 !important;
}
.default-token-counter {
2023-08-21 07:09:18 +02:00
top: calc( 0.5 * (100dvh - 255px) ) !important;
}
.token-counter span {
padding: 1px;
box-shadow: 0 0 0 0.3em rgba(192,192,192,0.15), inset 0 0 0.6em rgba(192,192,192,0.075);
border: 2px solid rgba(192,192,192,0.4) !important;
border-radius: 0.4em;
}
.no-background {
background: var(--background-fill-primary) !important;
padding: 0px !important;
}
2023-08-13 06:12:15 +02:00
/*****************************************************/
/*************** Chat UI declarations ****************/
/*****************************************************/
.h-\[40vh\], .wrap.svelte-byatnx.svelte-byatnx.svelte-byatnx {
height: 66.67vh
}
.gradio-container {
margin-left: auto !important;
margin-right: auto !important;
}
.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 button, #notebook-tab button, #default-tab button {
min-width: 0 !important;
}
#chat-tab > :first-child, #extensions {
max-width: 800px;
margin-left: auto;
margin-right: auto;
}
@media screen and (max-width: 688px) {
#chat-tab {
padding: 0px;
}
.chat-parent {
height: calc(100dvh - 262px) !important;
}
.bigchat {
height: calc(100dvh - 180px) !important;
2023-08-13 06:12:15 +02:00
}
}
.chat {
margin-left: auto;
margin-right: auto;
max-width: 800px;
height: 100%;
2023-08-13 06:12:15 +02:00
overflow-y: auto;
padding-right: 15px;
2023-08-13 06:12:15 +02:00
display: flex;
2023-08-17 06:03:40 +02:00
flex-direction: column;
2023-08-13 06:12:15 +02:00
word-break: break-word;
overflow-wrap: anywhere;
2023-08-17 06:03:40 +02:00
padding-top: 6px;
2023-08-13 06:12:15 +02:00
}
.chat-parent {
height: calc(100dvh - 272px);
overflow: auto !important;
}
.bigchat {
height: calc(100dvh - 200px);
}
2023-08-13 06:12:15 +02:00
.chat > .messages {
display: flex;
flex-direction: column;
}
.chat .message:last-child {
margin-bottom: 0px !important;
padding-bottom: 0px !important;
}
2023-08-13 06:12:15 +02:00
.message-body li {
margin-top: 0.5em !important;
margin-bottom: 0.5em !important;
}
.message-body li > p {
display: inline !important;
}
.message-body ul, .message-body ol {
font-size: 15px !important;
}
.message-body ul {
list-style-type: disc !important;
}
.message-body pre {
margin-bottom: 1.25em !important;
}
.message-body code {
white-space: pre-wrap !important;
word-wrap: break-word !important;
}
.message-body :not(pre) > code {
white-space: normal !important;
}
#chat-input {
padding: 0;
padding-top: 18px;
background: var(--background-fill-primary);
border: none;
}
#chat-input textarea:focus {
box-shadow: none !important;
}
2023-08-13 06:12:15 +02:00
@media print {
body {
visibility: hidden;
}
.chat {
visibility: visible;
position: absolute;
left: 0;
top: 0;
2023-08-18 06:44:22 +02:00
max-width: unset;
max-height: unset;
2023-08-13 06:12:15 +02:00
width: 100%;
2023-08-18 06:44:22 +02:00
overflow-y: visible;
2023-08-13 06:12:15 +02:00
}
.message {
break-inside: avoid;
}
.gradio-container {
overflow: visible;
}
.tab-nav {
display: none !important;
}
2023-08-18 06:44:22 +02:00
#chat-tab > :first-child {
max-width: unset;
}
2023-08-13 06:12:15 +02:00
}
#show-controls {
position: absolute;
background-color: transparent;
left: calc(100% - 180px);
}
#typing-container {
display: none;
position: absolute;
background-color: transparent;
left: -2px;
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 !important;
}