text-generation-webui/css/html_instruct_style.css

93 lines
1.6 KiB
CSS
Raw Normal View History

2023-12-16 22:16:26 -03:00
.chat {
background: transparent;
2024-12-17 00:47:41 -03:00
padding: 0;
2023-12-27 09:59:23 -08:00
padding-top: 0;
2023-12-16 22:16:26 -03:00
}
2024-12-17 00:47:41 -03:00
.chat > .messages:first-child {
padding-top: 0 !important;
2023-12-25 14:25:31 -08:00
}
2024-12-17 00:47:41 -03:00
.chat > .messages > :last-child {
margin-bottom: 1.7rem !important;
2023-04-05 11:49:59 -03:00
}
2024-12-17 00:47:41 -03:00
.chat .message-body p, .chat .message-body li {
font-size: 1rem !important;
line-height: 28px !important;
2023-12-25 14:25:31 -08:00
}
2024-12-19 12:21:28 -08:00
.dark .chat .message-body :is(p, li, q, h1, h2, h3, h4, h5, h6) {
2024-12-17 00:47:41 -03:00
color: #d1d5db !important;
2023-04-05 11:49:59 -03:00
}
2024-12-19 12:21:28 -08:00
.chat .message-body :is(p, ul, ol) {
margin: 1.25em 0 !important;
2023-04-05 11:49:59 -03:00
}
2024-12-19 12:21:28 -08:00
.chat .message-body :is(p, ul, ol):first-child {
2024-12-17 00:47:41 -03:00
margin-top: 0 !important;
2023-12-16 22:16:26 -03:00
}
2024-12-19 12:21:28 -08:00
.chat .message-body :is(p, ul, ol):last-child {
2023-10-20 13:02:18 -07:00
margin-bottom: 0 !important;
2023-10-11 12:18:46 -07:00
}
2024-12-17 00:47:41 -03:00
.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 {
2024-06-27 20:47:42 -07:00
background: #f4f4f4;
2024-12-17 00:47:41 -03:00
padding: 1.5rem 1rem;
border-radius: 0;
border: 0;
}
.dark .chat .user-message {
background: transparent;
2023-04-05 11:49:59 -03:00
}
.dark .chat .assistant-message {
2024-12-17 00:47:41 -03:00
background: var(--light-gray);
}
2024-12-17 00:47:41 -03:00
.chat .user-message .text,
.chat .assistant-message .text {
max-width: 40.25rem;
margin-left: auto;
margin-right: auto;
2023-04-05 11:49:59 -03:00
}
2024-12-17 00:47:41 -03:00
/* Create space between two assistant messages in a row */
.assistant-message + .assistant-message {
margin-top: 1.5rem;
}
2024-12-17 00:47:41 -03:00
pre > code {
2023-12-16 22:16:26 -03:00
background-color: #f3f4f6 !important;
}
2024-12-17 00:47:41 -03:00
.dark pre > code {
2023-12-16 22:16:26 -03:00
background-color: #1f2937 !important;
}