mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-12-27 06:39:33 +01:00
102 lines
1.9 KiB
CSS
102 lines
1.9 KiB
CSS
.chat {
|
|
background: transparent;
|
|
padding: 0;
|
|
padding-top: 0;
|
|
}
|
|
|
|
.chat > .messages:first-child {
|
|
padding-top: 0 !important;
|
|
}
|
|
|
|
.chat > .messages > :last-child {
|
|
margin-bottom: 1.7rem !important;
|
|
}
|
|
|
|
.chat .message-body p, .chat .message-body li {
|
|
font-size: 1rem !important;
|
|
line-height: 28px !important;
|
|
}
|
|
|
|
.dark .chat .message-body p,
|
|
.dark .chat .message-body li,
|
|
.dark .chat .message-body q {
|
|
color: #d1d5db !important;
|
|
}
|
|
|
|
.chat .message-body p,
|
|
.chat .message-body ul,
|
|
.chat .message-body ol {
|
|
margin-top: 1.25em !important;
|
|
margin-bottom: 1.25em !important;
|
|
}
|
|
|
|
.chat .message-body p:first-child,
|
|
.chat .message-body ul:first-child,
|
|
.chat .message-body ol:first-child {
|
|
margin-top: 0 !important;
|
|
}
|
|
|
|
.chat .message-body p:last-child,
|
|
.chat .message-body ul:last-child,
|
|
.chat .message-body ol:last-child {
|
|
margin-bottom: 0 !important;
|
|
}
|
|
|
|
.chat .message-body li {
|
|
margin-top: 1.25em !important;
|
|
margin-bottom: 1.25em !important;
|
|
}
|
|
|
|
.user-message, .assistant-message {
|
|
font-family: Inter, Helvetica, Arial, sans-serif;
|
|
}
|
|
|
|
.message:first-child {
|
|
padding-top: 0;
|
|
}
|
|
|
|
.username {
|
|
display: none;
|
|
}
|
|
|
|
.chat .user-message {
|
|
padding: 1.5rem 1rem;
|
|
border-radius: 0;
|
|
border-bottom-right-radius: 0;
|
|
}
|
|
|
|
.chat .assistant-message {
|
|
background: #f4f4f4;
|
|
padding: 1.5rem 1rem;
|
|
border-radius: 0;
|
|
border: 0;
|
|
}
|
|
|
|
.dark .chat .user-message {
|
|
background: transparent;
|
|
}
|
|
|
|
.dark .chat .assistant-message {
|
|
background: var(--light-gray);
|
|
}
|
|
|
|
.chat .user-message .text,
|
|
.chat .assistant-message .text {
|
|
max-width: 40.25rem;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
|
|
/* Create space between two assistant messages in a row */
|
|
.assistant-message + .assistant-message {
|
|
margin-top: 1.5rem;
|
|
}
|
|
|
|
pre > code {
|
|
background-color: #f3f4f6 !important;
|
|
}
|
|
|
|
.dark pre > code {
|
|
background-color: #1f2937 !important;
|
|
}
|