text-generation-webui/css/chat_style-wpp.css

88 lines
1.5 KiB
CSS
Raw Normal View History

2023-04-16 15:44:50 -04:00
.chat {
margin-left: auto;
margin-right: auto;
max-width: 800px;
2023-05-21 23:55:33 -04:00
height: calc(100vh - 296px);
2023-04-16 15:44:50 -04:00
overflow-y: auto;
padding-right: 20px;
display: flex;
flex-direction: column-reverse;
word-break: break-word;
overflow-wrap: anywhere;
}
.message {
padding-bottom: 25px;
font-size: 15px;
font-family: Helvetica, Arial, sans-serif;
line-height: 1.428571429;
}
.text-you {
2023-05-25 12:12:34 -04:00
background-color: #d9fdd3;
border-radius: 15px;
padding: 10px;
padding-top: 5px;
float: right;
2023-04-16 15:44:50 -04:00
}
.text-bot {
2023-05-25 12:12:34 -04:00
background-color: #f2f2f2;
border-radius: 15px;
padding: 10px;
padding-top: 5px;
2023-04-16 15:44:50 -04:00
}
.dark .text-you {
2023-05-25 12:12:34 -04:00
background-color: #005c4b;
color: #111b21;
2023-04-16 15:44:50 -04:00
}
.dark .text-bot {
2023-05-25 12:12:34 -04:00
background-color: #1f2937;
color: #111b21;
2023-04-16 15:44:50 -04:00
}
.text-bot p, .text-you p {
2023-05-25 12:12:34 -04:00
margin-top: 5px;
2023-04-16 15:44:50 -04:00
}
2023-05-25 12:12:34 -04:00
.message-body {
}
2023-04-16 15:44:50 -04:00
.message-body img {
max-width: 300px;
max-height: 300px;
border-radius: 20px;
}
.message-body p {
margin-bottom: 0 !important;
font-size: 15px !important;
line-height: 1.428571429 !important;
}
.message-body li {
margin-top: 0.5em !important;
margin-bottom: 0.5em !important;
}
.message-body li > p {
display: inline !important;
}
.message-body code {
overflow-x: auto;
}
2023-05-25 12:12:34 -04:00
2023-04-16 15:44:50 -04:00
.message-body :not(pre) > code {
white-space: normal !important;
}
.dark .message-body p em {
color: rgb(138, 138, 138) !important;
}
.message-body p em {
color: rgb(110, 110, 110) !important;
}