text-generation-webui/css/html_instruct_style.css

80 lines
1.8 KiB
CSS
Raw Normal View History

2023-12-20 02:54:08 +01:00
.chat-parent {
border-radius: 0 0 0 8px !important;
}
2023-12-17 02:16:26 +01:00
.chat {
background: var(--block-background-fill);
padding: 24px 19px;
padding-right: 19px !important;
border: 1px solid var(--block-border-color);
2023-12-20 02:54:08 +01:00
border-top: none;
border-radius: 0 0 0 8px !important;
2023-12-17 02:16:26 +01:00
}
2023-04-05 16:49:59 +02:00
.message {
display: grid;
grid-template-columns: 60px 1fr;
padding-bottom: 25px;
font-size: 15px;
font-family: 'Noto Sans', Helvetica, Arial, sans-serif;
2023-12-17 02:16:26 +01:00
line-height: 24px;
2023-04-05 16:49:59 +02:00
}
.username {
display: none;
}
2023-10-20 21:30:01 +02:00
.message-body p, .message-body li {
2023-04-05 16:49:59 +02:00
font-size: 15px !important;
2023-12-17 02:16:26 +01:00
line-height: 24px !important;
2023-04-05 16:49:59 +02:00
}
2023-10-11 21:18:46 +02:00
.message-body p, .chat .message-body ul, .chat .message-body ol {
2023-12-17 02:16:26 +01:00
margin-bottom: 16px !important;
}
2023-10-11 21:18:46 +02:00
.message-body p:last-child, .chat .message-body ul:last-child, .chat .message-body ol:last-child {
2023-10-20 22:02:18 +02:00
margin-bottom: 0 !important;
2023-10-11 21:18:46 +02:00
}
2023-04-05 16:49:59 +02:00
.dark .message-body p em {
2023-10-20 22:02:18 +02:00
color: rgb(198 202 214) !important;
2023-04-05 16:49:59 +02:00
}
.message-body p em {
2023-10-20 22:02:18 +02:00
color: rgb(110 110 110) !important;
2023-04-05 16:49:59 +02:00
}
2023-04-06 17:00:20 +02:00
.gradio-container .chat .assistant-message {
2023-10-20 21:30:01 +02:00
padding: 20px;
2023-12-17 02:16:26 +01:00
background: var(--background-fill-secondary);
margin-top: 12px !important;
margin-bottom: 24px !important;
margin-right: 16px;
border-radius: 22px;
border-bottom-left-radius: 0;
border: 1px solid var(--border-color-primary);
2023-04-05 16:49:59 +02:00
}
2023-04-06 17:00:20 +02:00
.gradio-container .chat .user-message {
2023-10-20 21:30:01 +02:00
padding: 20px;
2023-12-17 02:16:26 +01:00
background-color: var(--color-accent-soft);
2023-10-22 21:28:23 +02:00
border-radius: 20px;
2023-12-17 02:16:26 +01:00
margin-bottom: 12px !important;
margin-left: 16px;
border-radius: 22px;
border-bottom-right-radius: 0;
border: 1px solid var(--border-color-accent-subdued);
2023-04-05 16:49:59 +02:00
}
.gradio-container .chat .assistant-message:last-child, .gradio-container .chat .user-message:last-child {
2023-10-20 22:02:18 +02:00
margin-bottom: 0 !important;
}
code {
2023-12-17 02:16:26 +01:00
background-color: #f3f4f6 !important;
}
.dark code {
2023-12-17 02:16:26 +01:00
background-color: #1f2937 !important;
2023-04-05 16:49:59 +02:00
}