text-generation-webui/css/main.css

1168 lines
22 KiB
CSS
Raw Normal View History

2024-12-17 04:47:41 +01:00
:root {
--darker-gray: #202123;
--dark-gray: #343541;
--light-gray: #444654;
--light-theme-gray: #f4f4f4;
--border-color-dark: #525252;
--header-width: 112px;
--selected-item-color-dark: #32333e;
}
@font-face {
font-family: Inter;
src: url('file/css/Inter/Inter-VariableFont_opsz,wght.ttf') format('truetype');
font-weight: 100 900;
font-style: normal;
}
@font-face {
font-family: Inter;
src: url('file/css/Inter/Inter-Italic-VariableFont_opsz,wght.ttf') format('truetype');
font-weight: 100 900;
font-style: italic;
}
2023-03-15 16:33:26 +01:00
.tabs.svelte-710i53 {
margin-top: 0
}
2023-03-17 01:31:39 +01:00
2024-12-17 04:47:41 +01:00
.padded.svelte-12cmxck {
padding: 3px 0;
}
div.svelte-sfqy0y,
div.svelte-iyf88w {
background: transparent;
border: 0;
}
2024-12-18 04:58:09 +01:00
/* "info" messages without a title above */
.block > .svelte-e8n7p6:not(:only-of-type) {
margin-bottom: 2px;
}
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;
2024-12-17 04:47:41 +01:00
border-radius: 0.375rem;
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-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
2024-12-17 04:47:41 +01:00
#default-tab, #notebook-tab, #parameters, #chat-settings, #lora, #training-tab, #model-tab, #session-tab {
padding: 1rem;
}
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 {
2024-12-17 04:47:41 +01:00
margin: 5px auto 35px;
max-width: 880px;
padding: 1em;
padding-left: calc(var(--header-width) + 1em);
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
2024-03-26 20:32:20 +01:00
gradio-app > :first-child {
2024-12-17 04:47:41 +01:00
padding: 0 !important;
2024-03-26 20:32:20 +01:00
}
2023-04-10 21:15:16 +02:00
.header_bar {
2024-06-20 02:40:33 +02:00
box-shadow: 0 0 3px rgba(22 22 22 / 35%);
2023-12-27 18:59:23 +01:00
margin-bottom: 0;
overflow-x: scroll;
2023-10-11 03:20:49 +02:00
text-wrap: nowrap;
2023-12-20 01:24:34 +01:00
z-index: 90;
2024-12-17 04:47:41 +01:00
position: fixed;
display: flex !important;
flex-direction: column;
height: 100dvh;
width: var(--header-width);
}
.header_bar button {
margin: 0;
padding: 0.75rem;
}
.header_bar button.selected {
border: 0;
2023-04-10 21:15:16 +02:00
}
.dark .header_bar {
2023-05-25 18:12:34 +02:00
border: none !important;
2023-12-20 01:24:34 +01:00
box-shadow: 0 3px 4px rgba(20 20 20 / 60%);
2023-05-25 18:12:34 +02:00
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 {
2024-12-17 04:47:41 +01:00
height: calc(100dvh - 201px);
2023-04-19 04:36:23 +02:00
}
.textbox_default_output textarea {
2024-12-17 04:47:41 +01:00
height: calc(100dvh - 117px);
2023-04-19 04:36:23 +02:00
}
.textbox textarea {
2024-12-17 04:47:41 +01:00
height: calc(100dvh - 172px);
2023-04-19 04:36:23 +02:00
}
2023-08-21 01:49:21 +02:00
.textbox_logits textarea {
2024-12-17 04:47:41 +01:00
height: calc(100dvh - 205px);
2023-08-21 01:49:21 +02:00
}
.textbox_logits_notebook textarea {
2024-12-17 04:47:41 +01:00
height: calc(100dvh - 221px);
2023-08-21 01:49:21 +02:00
}
2023-09-24 23:11:22 +02:00
.monospace textarea {
2023-09-16 04:30:44 +02:00
font-family: monospace;
}
2023-08-21 01:49:21 +02:00
.textbox_default textarea,
.textbox_default_output textarea,
.textbox_logits textarea,
.textbox_logits_notebook textarea,
2023-09-16 03:51:55 +02:00
.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-10-20 22:02:18 +02:00
/* Hide the gradio footer */
2023-04-19 04:36:23 +02:00
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 {
2023-10-20 22:02:18 +02:00
position: fixed !important;
height: 100%;
z-index: 1000;
background-color: rgb(0 0 0 / 50%) !important;
margin-left: -20px;
margin-right: -20px;
2023-10-11 03:20:49 +02:00
}
.file-saver > :first-child {
2023-10-20 22:02:18 +02:00
position: fixed !important;
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) !important;
}
2024-01-09 15:33:47 +01:00
.file-saver > :first-child > :last-child {
2023-10-20 22:02:18 +02:00
background: var(--block-background-fill);
2024-01-09 15:33:47 +01:00
justify-content: flex-end;
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: 7px;
2024-06-25 05:07:22 +02:00
height: 7px;
}
.pretty_scrollbar::-webkit-scrollbar-track {
2023-10-20 22:02:18 +02:00
background: transparent;
}
.pretty_scrollbar::-webkit-scrollbar-thumb,
.pretty_scrollbar::-webkit-scrollbar-thumb:hover {
background: var(--neutral-300);
2024-12-17 04:47:41 +01:00
border-radius: 30px;
}
.dark .pretty_scrollbar::-webkit-scrollbar-thumb,
.dark .pretty_scrollbar::-webkit-scrollbar-thumb:hover {
2024-12-17 04:47:41 +01:00
background: #ccc;
border-radius: 10px;
}
.pretty_scrollbar::-webkit-resizer {
2023-10-20 22:02:18 +02:00
background: #c5c5d2;
}
.dark .pretty_scrollbar::-webkit-resizer {
2024-12-17 04:47:41 +01:00
background: #ccc;
border-radius: 10px;
}
2023-08-13 06:12:15 +02:00
2024-06-25 05:07:22 +02:00
.pretty_scrollbar::-webkit-scrollbar-corner {
background: transparent;
}
2023-08-16 18:35:10 +02:00
audio {
2023-10-20 22:02:18 +02:00
max-width: 100%;
2023-08-16 18:35:10 +02:00
}
/* Copied from https://github.com/AUTOMATIC1111/stable-diffusion-webui */
2024-12-17 04:47:41 +01:00
#default-token-counter, #notebook-token-counter {
2023-10-20 22:02:18 +02:00
position: absolute !important;
z-index: 100;
background: var(--input-background-fill) !important;
min-height: 0 !important;
2024-12-17 04:47:41 +01:00
width: 0;
text-align: left;
direction: rtl;
right: 5px;
}
#default-token-counter {
top: calc(100dvh - 200px) !important;
}
2024-12-17 04:47:41 +01:00
#notebook-token-counter {
top: calc(100dvh - 171px) !important;
}
2024-12-17 04:47:41 +01:00
#default-token-counter span, #notebook-token-counter span {
2023-10-20 22:02:18 +02:00
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%) !important;
border-radius: 0.4em;
}
.no-background {
2024-12-17 04:47:41 +01:00
background: transparent;
2023-10-20 22:02:18 +02:00
padding: 0 !important;
}
2023-10-20 22:02:18 +02:00
/* ----------------------------------------------
Chat tab
2023-10-20 22:02:18 +02:00
---------------------------------------------- */
2024-12-17 04:47:41 +01:00
.h-\[40dvh\], .wrap.svelte-byatnx.svelte-byatnx.svelte-byatnx {
height: 66.67dvh
2023-08-13 06:12:15 +02:00
}
.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%;
}
2023-12-19 23:27:11 +01:00
#chat-tab {
2024-12-17 04:47:41 +01:00
padding: 0;
}
#chat-tab > :nth-child(1) {
display: flex;
flex-direction: row;
gap: 0;
2023-12-19 23:27:11 +01:00
}
2023-09-14 14:16:44 +02:00
#chat-tab button#Generate, #chat-tab button#stop {
width: 89.3438px !important;
}
2023-08-13 06:12:15 +02:00
#chat-tab button, #notebook-tab button, #default-tab button {
min-width: 0 !important;
}
#chat-tab > :first-child, #extensions {
margin-left: auto;
margin-right: auto;
}
2023-10-20 22:02:18 +02:00
@media screen and (width <= 688px) {
2023-08-13 06:12:15 +02:00
#chat-tab {
2023-10-20 22:02:18 +02:00
padding-left: 0;
padding-right: 0;
2023-08-13 06:12:15 +02:00
}
.chat {
padding-left: 0;
padding-right: 0;
}
2023-08-13 06:12:15 +02:00
}
.chat {
margin-left: auto;
margin-right: auto;
2023-12-25 17:32:02 +01:00
min-height: var(--chat-height);
2023-08-13 06:12:15 +02:00
overflow-y: auto;
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-12-21 05:00:56 +01:00
border-top: none;
2024-12-17 04:47:41 +01:00
border-radius: 0;
visibility: visible;
2023-08-13 06:12:15 +02:00
}
.chat-parent {
2024-12-17 04:47:41 +01:00
height: calc(100dvh - 98px - var(--input-delta));
overflow: auto !important;
2023-12-25 23:17:00 +01:00
border-radius: 0 !important;
2023-12-25 23:10:07 +01:00
margin-bottom: var(--input-delta) !important;
}
.chat-parent .prose {
visibility: visible;
}
2024-12-17 04:47:41 +01:00
.chat .message {
width: min(100%, 48rem);
margin-left: auto;
margin-right: auto;
text-align: start;
padding-left: 1rem;
padding-right: 1rem;
}
.chat-parent.bigchat {
2024-12-17 04:47:41 +01:00
height: calc(100dvh - 98px - var(--input-delta)) !important;
2023-12-25 23:10:07 +01:00
margin-bottom: var(--input-delta) !important;
}
2023-08-13 06:12:15 +02:00
.chat > .messages {
display: flex;
flex-direction: column;
}
2024-12-17 04:47:41 +01:00
.chat > .messages > :first-child {
padding-top: 20px;
}
.message-body h1,
.message-body h2,
.message-body h3,
.message-body h4 {
color: var(--body-text-color);
margin: 20px 0 10px;
}
.dark .message q {
2024-07-25 03:56:54 +02:00
color: #f5b031;
}
2024-07-26 05:22:07 +02:00
.message-body q::before, .message-body q::after {
content: "";
}
2023-12-18 05:26:57 +01:00
.message-body li {
list-style-position: outside;
}
.chat .message-body ul, .chat .message-body ol {
padding-inline-start: 2em;
}
2024-12-17 04:47:41 +01:00
.chat .message-body li:not(:last-child) {
margin-top: 0;
margin-bottom: 2px;
2023-10-20 21:30:01 +02:00
}
2024-12-17 04:47:41 +01:00
.chat .message-body li:last-child {
2023-10-20 22:02:18 +02:00
margin-bottom: 0 !important;
2023-08-13 06:12:15 +02:00
}
.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;
}
2023-10-11 21:18:46 +02:00
.message-body pre:not(:last-child) {
2023-10-20 21:30:01 +02:00
margin-bottom: 35.625px !important;
2023-08-13 06:12:15 +02:00
}
2023-10-11 21:18:46 +02:00
.message-body pre:last-child {
2023-10-20 22:02:18 +02:00
margin-bottom: 0 !important;
2023-10-11 21:18:46 +02:00
}
#default-tab .prose pre, #notebook-tab .prose pre {
overflow: scroll;
}
.prose ul ul {
margin: 0;
}
2024-12-17 04:47:41 +01:00
.message-body pre > code {
2023-08-13 06:12:15 +02:00
white-space: pre-wrap !important;
word-wrap: break-word !important;
2024-06-20 02:40:33 +02:00
border: 1px solid #666;
border-radius: 5px;
font-size: 82%;
2023-10-11 21:18:46 +02:00
padding: 1px 3px;
background: white !important;
color: #1f2328;
}
2024-12-17 04:47:41 +01:00
.dark .message-body pre > code {
background: #0d1117 !important;
2024-06-20 02:40:33 +02:00
color: rgb(201 209 217);
2023-10-11 21:18:46 +02:00
}
.message-body pre > code {
display: block;
2023-10-20 21:30:01 +02:00
padding: 15px;
2023-08-13 06:12:15 +02:00
}
2024-12-17 04:47:41 +01:00
.message-body :not(pre) > code::before {
content: "`";
}
.message-body :not(pre) > code::after {
content: "`";
}
2023-08-13 06:12:15 +02:00
.message-body :not(pre) > code {
white-space: normal !important;
2024-12-17 04:47:41 +01:00
font-weight: bold;
font-family: unset;
2023-08-13 06:12:15 +02:00
}
#chat-input {
padding: 0;
padding-top: 18px;
background: transparent;
border: none;
}
2024-12-17 04:47:41 +01:00
#chat-input textarea {
padding: 0.65rem 2.5rem;
}
#chat-input textarea::placeholder {
white-space: nowrap;
overflow: hidden;
}
#chat-input textarea:focus {
box-shadow: none !important;
}
2023-10-11 03:20:49 +02:00
#chat-input > :first-child {
background-color: transparent;
}
#chat-input .progress-text {
display: none;
}
2024-12-17 04:47:41 +01:00
.chat-input-positioned {
position: absolute;
bottom: 0;
max-width: 54rem;
left: 50%;
transform: translateX(-50%);
}
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;
2024-06-28 05:47:42 +02:00
background-color: transparent;
2023-10-20 22:02:18 +02:00
border: 0 !important;
border-radius: 0;
2023-09-15 07:03:59 +02:00
}
#show-controls label {
z-index: 1000;
2023-09-15 07:03:59 +02:00
position: absolute;
2024-12-17 04:47:41 +01:00
right: 30px;
top: 10px;
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 {
2023-10-20 22:02:18 +02:00
position: relative;
}
.visible-dots #typing-container {
display: block;
}
.typing span {
2023-10-20 22:02:18 +02:00
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 {
2023-10-20 22:02:18 +02:00
animation-delay: .2s;
margin-left: calc(10px * 1.5);
}
.typing .dot2 {
2023-10-20 22:02:18 +02:00
animation-delay: .4s;
margin-left: calc(10px * 3);
}
@keyframes blink {
2023-10-20 22:02:18 +02:00
0% {
opacity: .1;
}
20% {
opacity: 1;
}
100% {
opacity: .1;
}
}
#chat-tab .generating {
2023-10-20 22:02:18 +02:00
display: none !important;
}
2023-09-13 07:36:12 +02:00
.hover-element {
2023-10-20 22:02:18 +02:00
position: relative;
font-size: 24px;
2023-09-13 07:36:12 +02:00
}
.hover-menu {
2023-10-20 22:02:18 +02:00
display: none;
position: absolute;
bottom: 80%;
left: 0;
box-shadow: 0 0 5px rgb(0 0 0 / 25%);
2023-10-20 22:02:18 +02:00
z-index: 10000;
min-width: 330px;
flex-direction: column;
2023-09-13 07:36:12 +02:00
}
.hover-menu button {
2023-10-20 22:02:18 +02:00
width: 100%;
background: transparent !important;
border-radius: 0 !important;
justify-content: space-between;
margin: 0 !important;
height: 36px;
2023-09-14 16:20:36 +02:00
}
.hover-menu button:not(#clear-history-confirm) {
2023-10-20 22:02:18 +02:00
border-bottom: 0 !important;
2023-09-14 16:09:06 +02:00
}
2023-09-14 16:20:36 +02:00
.hover-menu button:not(#clear-history-confirm):last-child {
border-bottom: var(--button-border-width) solid var(--border-color-primary) !important;
2023-09-13 07:36:12 +02:00
}
.hover-menu button:hover {
2023-10-20 22:02:18 +02:00
background: var(--button-secondary-background-fill-hover) !important;
2023-09-13 07:36:12 +02:00
}
2023-09-14 04:21:39 +02:00
.transparent-substring {
2023-10-20 22:02:18 +02:00
opacity: 0.333;
2023-09-14 04:21:39 +02:00
}
2024-12-17 04:47:41 +01:00
#chat-tab #chat-buttons {
display: none !important;
}
#gr-hover-container {
2023-10-20 22:02:18 +02:00
min-width: 0 !important;
display: flex;
flex-direction: column-reverse;
padding-right: 20px;
padding-bottom: 3px;
flex-grow: 0 !important;
}
#generate-stop-container {
2023-10-20 22:02:18 +02:00
min-width: 0 !important;
display: flex;
flex-direction: column-reverse;
padding-bottom: 3px;
flex: 0 auto !important;
}
#chat-input-container {
2023-10-20 22:02:18 +02:00
min-width: 0 !important;
}
#chat-input-container > .form {
2023-10-20 22:02:18 +02:00
background: transparent;
border: none;
}
#chat-input-row {
2024-12-17 04:47:41 +01:00
padding-bottom: 1.5em;
padding-left: 1rem;
padding-right: 1rem;
}
2024-12-17 04:47:41 +01:00
#chat-input-row.bigchat {
padding-bottom: 1px !important;
}
#chat-col {
2023-12-21 05:42:06 +01:00
padding-bottom: 100px;
}
2024-12-17 04:47:41 +01:00
@media screen and (width <= 924px) {
#chat-col {
padding-bottom: 100px;
margin-top: 32px;
position: relative; /* Ensure positioning for the pseudo-element */
}
.chat-parent {
height: calc(100dvh - 98px - var(--input-delta) - 32px);
}
.chat-parent.bigchat {
height: calc(100dvh - 98px - var(--input-delta) - 32px) !important;
}
}
2024-12-17 04:47:41 +01:00
#chat-col.bigchat {
padding-bottom: 80px !important;
}
2023-09-21 23:30:52 +02:00
.chat ol, .chat ul {
margin-top: 6px !important;
}
2023-09-22 03:53:03 +02:00
/* ----------------------------------------------
Past chats menus
---------------------------------------------- */
#rename-row label {
margin-top: var(--layout-gap);
}
/* ----------------------------------------------
2024-12-17 04:47:41 +01:00
Create the sidebars
---------------------------------------------- */
2024-12-17 04:47:41 +01:00
#chat-controls,
#past-chats-row {
width: 260px;
max-width: 80vw;
padding: 0.5rem;
height: 100dvh;
flex-shrink: 0;
box-sizing: content-box;
z-index: 10;
}
2024-12-17 04:47:41 +01:00
#past-chats-row:not(.negative-header) {
max-width: calc(85vw - var(--header-width));
}
#chat-controls {
padding: 1rem;
padding-bottom: 0;
}
#chat-controls > :nth-child(1) {
padding: 0.5rem;
}
#past-chats-row + * {
width: unset;
flex-grow: 1;
flex-shrink: 1;
}
2023-10-20 22:02:18 +02:00
/* ----------------------------------------------
Keep dropdown menus above errored components
2023-10-20 22:02:18 +02:00
---------------------------------------------- */
.options {
z-index: 100 !important;
2024-12-18 05:02:04 +01:00
border: 1px solid var(--input-border-color);
2024-12-18 05:13:32 +01:00
border-radius: 0;
}
/* ----------------------------------------------
Big profile picture for characters
---------------------------------------------- */
.bigProfilePicture {
position: fixed;
bottom: 0;
left: 0;
2024-12-17 04:47:41 +01:00
width: calc(100vw / 2 - 600px);
z-index: 10000;
}
2024-02-25 18:10:16 +01:00
.pfp_character {
position: relative;
}
2023-11-19 15:53:41 +01:00
.pfp_character:hover {
cursor: pointer;
}
@media screen and (width <= 1300px) {
.bigProfilePicture {
display: none;
}
}
2024-06-25 05:07:22 +02:00
#past-chats {
2024-12-17 04:47:41 +01:00
max-height: calc(100dvh - 90px);
2024-06-25 05:07:22 +02:00
overflow-y: scroll !important;
border-radius: 0;
2024-12-17 04:47:41 +01:00
scrollbar-width: auto;
}
#past-chats::-webkit-scrollbar {
display: block;
2024-06-25 05:07:22 +02:00
}
#past-chats label {
width: 100%;
background-color: transparent !important;
background: none;
border: 0;
border-radius: 0;
padding-top: 8px;
padding-bottom: 8px;
2024-12-17 04:47:41 +01:00
position: relative;
min-height: 42px !important;
}
#past-chats label::before {
content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M8 9h8"></path><path d="M8 13h6"></path><path d="M18 4a3 3 0 0 1 3 3v8a3 3 0 0 1 -3 3h-5l-5 3v-3h-2a3 3 0 0 1 -3 -3v-8a3 3 0 0 1 3 -3h12z"></path></svg>');
position: absolute;
top: 12px;
left: 12px;
margin-right: 8px;
}
.dark #past-chats label::before {
content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M8 9h8"></path><path d="M8 13h6"></path><path d="M18 4a3 3 0 0 1 3 3v8a3 3 0 0 1 -3 3h-5l-5 3v-3h-2a3 3 0 0 1 -3 -3v-8a3 3 0 0 1 3 -3h12z"></path></svg>');
}
#past-chats label span {
margin-left: 29px;
2024-06-25 05:07:22 +02:00
}
#past-chats > :nth-child(2) {
display: none;
}
#past-chats > :nth-child(3) {
2024-12-17 04:47:41 +01:00
gap: 0.25rem;
2024-06-25 05:07:22 +02:00
}
2024-12-17 04:47:41 +01:00
#past-chats input {
2024-06-25 05:07:22 +02:00
display: none;
}
2024-12-17 04:47:41 +01:00
#past-chats label {
padding: 0.75rem;
font-size: 12.5px;
font-weight: 400;
2024-06-25 05:07:22 +02:00
}
2024-12-17 04:47:41 +01:00
#past-chats .selected,
#past-chats label:hover {
border-radius: 0.5rem;
}
#past-chats label:hover {
cursor: pointer;
}
#past-chats-buttons,
#delete-chat-row,
#rename-row {
width: 100%;
justify-content: center;
}
#past-chats-row,
#chat-controls {
width: 260px;
padding: 0.5rem;
height: calc(100dvh - 16px);
flex-shrink: 0;
box-sizing: content-box;
}
.sidebar-hidden {
width: 0 !important;
padding: 0 !important;
overflow: hidden;
}
#past-chats-toggle,
#chat-controls-toggle,
#navigation-toggle {
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
user-select: none;
border-radius: 3px;
z-index: 1000;
position: fixed;
width: 2rem;
height: 2rem;
top: 0;
}
#past-chats-toggle svg,
#chat-controls-toggle svg,
#navigation-toggle svg {
pointer-events: none;
}
@media screen and (width <= 408px) {
#past-chats-toggle.past-chats-open {
top: 28px;
}
#chat-controls-toggle.chat-controls-open {
top: 28px;
right: calc(16px + min(260px, 80vw)) !important;
}
}
#past-chats-toggle.past-chats-open.negative-header {
left: calc(min(260px, 85vw) + 16px);
}
#past-chats-toggle.past-chats-open:not(.negative-header) {
left: calc(112px + min(260px, calc(85vw - var(--header-width))) + 16px);
}
#past-chats-toggle.past-chats-closed:not(.negative-header) {
left: 112px;
}
#past-chats-toggle.past-chats-closed.negative-header {
left: 0;
top: 28px;
}
@media screen and (width <= 924px) {
#past-chats-toggle.past-chats-closed.negative-header {
left: 28px;
top: 0;
}
}
2024-12-17 05:12:16 +01:00
.header_bar ~ * {
2024-12-17 04:47:41 +01:00
margin-left: var(--header-width);
}
/* Positions for chat-controls-toggle */
#chat-controls-toggle.chat-controls-open {
right: calc(min(260px, 80vw) + 23px);
}
#chat-controls-toggle.chat-controls-closed {
right: 7px;
}
@media screen and (width <= 924px) {
#chat-controls.sidebar-shown {
position: fixed;
right: 0;
}
#past-chats-row.sidebar-shown {
position: fixed;
}
}
/* ----------------------------------------------
Dark theme
---------------------------------------------- */
.dark .header_bar {
background-color: var(--darker-gray) !important;
}
.dark .header_bar button.selected {
background: var(--selected-item-color-dark);
}
.dark #chat-input textarea {
background: var(--light-gray);
color: white !important;
border-color: #292c3b;
}
.dark #chat-input textarea::placeholder {
color: #9ca3af;
}
.dark .hover-menu {
background-color: var(--darker-gray);
}
.dark .hover-menu button {
border-color: var(--border-color-primary);
}
.dark #chat-controls,
.dark #past-chats-row {
background-color: var(--darker-gray);
border: 0 !important;
}
.dark #past-chats .selected,
.dark #past-chats label:hover {
background-color: var(--selected-item-color-dark) !important;
}
.dark #past-chats-row,
.dark #chat-controls {
background-color: var(--darker-gray);
}
.dark #past-chats-toggle,
.dark #chat-controls-toggle,
.dark #navigation-toggle {
color: white;
}
.dark svg {
fill: white;
color: white;
}
@media screen and (width <= 408px) {
.dark #past-chats-toggle.past-chats-open {
background: var(--darker-gray);
}
.dark #chat-controls-toggle.chat-controls-open {
background: var(--darker-gray);
}
}
/* ----------------------------------------------
Light theme
---------------------------------------------- */
.header_bar {
background-color: var(--light-theme-gray) !important;
}
.header_bar button.selected {
background: white;
}
#chat-controls,
#past-chats-row {
background-color: var(--light-theme-gray);
}
#chat-controls {
border-left: 1px solid #d9d9d0;
}
#past-chats-row {
border-right: 1px solid #d9d9d0;
}
#past-chats-toggle,
#chat-controls-toggle,
#navigation-toggle {
color: gray !important;
2024-06-25 05:07:22 +02:00
}
2024-12-17 04:47:41 +01:00
.mobile-top-bar {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 32px;
z-index: 2;
opacity: 0;
pointer-events: none;
}
@media screen and (width <= 924px) {
.mobile-top-bar {
opacity: 1;
pointer-events: auto;
}
.dark .mobile-top-bar {
background-color: var(--darker-gray);
}
.mobile-top-bar {
background-color: var(--light-theme-gray);
}
}
@media screen and (width <= 408px) {
#past-chats-toggle.past-chats-open {
background: var(--light-theme-gray);
}
#chat-controls-toggle.chat-controls-open {
background: var(--light-theme-gray);
2024-06-25 05:07:22 +02:00
}
}