Updated October 14, 2024
Fake LINE
Used 180 Righteous Town from here as a base.
Author's Note/JB
This should be edited and tuned by your hand for your personal jb and model. This was mainly tested on camicle with a regex to remove the thinking section. It seems to behave better with a CoT but again I'll leave it to you.
Download
Regex and CSS Snippet
Please change the font along with the colors to your own liking. The one used in the sample image is Convergence.
The CSS Snippet Extension can be found here.
Bot Datetime Regex
Find
Replace
User Auto-append Datetime Regex
Use this as a scoped regex and untick ephemerality boxes.
It automatically adds the datetime to your posts so the bot can react to it. If the bot doesn't, you should fiddle with the jb.
Find
Replace
CSS
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 | .mes_text {
font-family: Arial;
font-kerning: normal;
}
/* Customize colors */
:root {
--user-color: #000000;
--bot-color: #000000;
--text-color: white;
--user-border: black;
--bot-border: black;
}
#chat {
padding: 10px;
background-image: url('bg.png'); /* BG image goes into the SillyTavern/public/ folder */
background-size: cover;
background-repeat: no-repeat;
background-position: top bottom;
}
/* Common styles for all messages */
.mes_text p, .mes_text ol, .mes_text ul {
border-radius: 15px;
padding: 16px 18px;
color: var(--text-color);
margin: 0px 0px 15px 0px;
position: relative; /* Dialogue bubble tail */
text-align: left;
max-width: 70%;
width: fit-content;
display: inline-block
}
.mes_text li {
margin-left: 20px; /* Gives some indent for list items */
}
.mes_text p:nth-last-child(2) {
margin-bottom: 0;
}
.mes_text hr {
display: none;
}
.mes[is_user="true"] p, .mes[is_user="true"] .mes_text ol, .mes[is_user="true"].mes_text ul {
background-color: var(--user-color);
}
.mes[is_user="false"] p, .mes[is_user="false"] .mes_text ol, .mes[is_user="false"].mes_text ul {
background-color: var(--bot-color);
}
.mes[is_user="true"] .mes_text {
align-items: flex-end;
justify-content: flex-end;
}
/* Clean up */
p:empty {
display: none;
}
details {
display: none;
}
/* Code box limit */
.mes_text .hljs {
max-width: 70%;
width: auto !important;
}
.mes[is_user="true"] .mes_text .hljs {
align-self: flex-end;
text-align: left;
width: fit-content;
max-width: 70%;
margin-left: auto;
}
/* Date Time */
.mes_text p:last-of-type {
display: inline-block;
margin-bottom: 0;
}
.custom-datetime {
display: inline-block;
vertical-align: bottom;
margin: 0px 10px;
color: #ccc;
font-size: 0.9em !important; white-space: pre-wrap;
}
.custom-datetime::after {
display: none;
}
/* Dialogue tail for user */
.mes[is_user="true"] .mes_text p::after, .mes[is_user="true"] .mes_text ol::after, .mes[is_user="true"].mes_text ul::after {
content: '';
position: absolute;
top: 5px; /* Move the arrow higher */
right: -12px; /* Move the arrow off the bubble to the right */
width: 0;
height: 0;
border-bottom: 30px solid transparent; /* Creates bottom side of the triangle */
border-left: 30px solid var(--user-color); /* Creates the right-pointing arrow */
}
/* Dialogue tail for bot*/
.mes[is_user="false"] .mes_text p::after, .mes[is_user="false"] .mes_text ol::after, .mes[is_user="false"].mes_text ul::after {
content: '';
position: absolute;
top: 5px; /* Move the arrow higher */
left: -12px; /* Move the arrow off the bubble to the left */
width: 0;
height: 0;
border-bottom: 30px solid transparent; /* Creates bottom side of the triangle */
border-right: 30px solid var(--bot-color); /* Creates the left-pointing arrow */
}
.last_mes .mes_block {
padding-bottom: 20px;
}
.mes:last-child .mes_text {
padding-right: 0px;
}
.avatar {
min-width: 60px;
height: 60px !important;
}
/* Avatar borders */
.mesAvatarWrapper .avatar img,
.avatar img {
box-shadow: 0 0 0 3px var(--user-border) !important;
border: none !important;
}
.mes[is_user="false"] .mesAvatarWrapper .avatar img,
.mes[is_user="false"] .avatar img {
box-shadow: 0 0 0 3px var(--bot-border) !important;
}
.mesAvatarWrapper {
order: 0;
margin-right: 15px;
}
/* Move avatar to the right for user messages */
.mes[is_user="true"] .mesAvatarWrapper {
order: 1;
margin-right: 0;
margin-left: 15px;
}
/* Align text to the right for user messages */
.mes[is_user="true"] .mes_block {
text-align: right;
}
.mes_img_container {
margin-left: auto;
}
.mes[is_user="true"] .mes_block .mes_text{
margin-right: 0;
}
.mes_text {
display: flex;
flex-direction: column;
align-items: flex-start;
}
.mes_block {
overflow-x: visible;
display: flex !important;
flex-direction: column !important;
padding: 0px;
}
.mes_buttons {
order: 1;
}
.ch_name.flex-container.justifySpaceBetween {
order: 1;
}
.mes[is_user="false"] .mes_block .ch_name.flex-container.justifySpaceBetween {
flex-direction: row-reverse;
}
.mes_block .name_text {
display: none;
}
.mes_block > *:not(.ch_name.flex-container.justifySpaceBetween) {
order: 0;
}
.mes_block .ch_name (
max-width: auto !important;
}
.swipe_right, .swipe_left {
bottom: 5px;
}
.last_mes .mesAvatarWrapper {
padding-bottom: 0px;
}
/* User buttons left align */
div.mes[is_user="true"] * {
flex-direction: row-reverse;
}
/* Fix preset list width */
@media (max-width: 768px) {
#completion_prompt_manager {
width: 90%;
margin-left: 10%;
margin-right: auto;
}
}
/* Swipe buttons mod */
.swipe_right, .swipe_left {
bottom: 5px;
}
.last_mes .mes_block {
padding-bottom: 20px;
}
/* Fix lorebook field sizes for mobile */
@media (max-width:768px) {
.text_pole[name="comment"] {
width: 280px !important;
}
textarea#customCSS {
height: 200px;
width: 100% !important;
}
.text_pole[name="content"] {
width: 100% !important;
margin: 5px 0px;
}
}
/* Remove proxy warning */
#ReverseProxyWarningMessage {
display: none !important;
}
/* Remove the small space between the chat and bottom tray */
#form_sheld {
margin: 0px auto !important;
}
/* No Scrollbar */
/* Firefox */
@-moz-document url-prefix() {
#chat {
/scrollbar-width: none;
}
}
/* Chrome */
#chat::-webkit-scrollbar {
/display: none;
}
|
Variants
AN/JB - CoT
CSS - Only First has Dialogue Tail
CTRL+F Dialogue tail in the original CSS and replace it with this: