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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*Any changes you make require you to restart oobabooga entirely and run it again to apply the changes*/
|
2 |
+
|
3 |
+
/*Set background image/gif/video of chat area. Place a url into the url below within the '' or, if you want a local image -> Place any image into cache folder - Name it anything - Come back here and change the BG01 in the code bellow to the name of the file. Even if you delete the background image and replace it with a new one, it seems to be stored for a while inside the cache, so just rename it and you're safe.*/
|
4 |
+
|
5 |
+
/*.chat {*/
|
6 |
+
/* background: url('file/cache/BG01.png') no-repeat center center;*/
|
7 |
+
/*}*/
|
8 |
+
|
9 |
+
.gradio-container {
|
10 |
+
/*Entire page background color*/
|
11 |
+
background: linear-gradient(to bottom, #142036, #21103b);
|
12 |
+
}
|
13 |
+
|
14 |
+
/*Scrollbar design*/
|
15 |
+
|
16 |
+
::-webkit-scrollbar {
|
17 |
+
width: 8px;
|
18 |
+
height: 12px;
|
19 |
+
}
|
20 |
+
|
21 |
+
::-webkit-scrollbar-track {
|
22 |
+
background: #364258;
|
23 |
+
}
|
24 |
+
|
25 |
+
::-webkit-scrollbar-thumb {
|
26 |
+
background: #667a8d;
|
27 |
+
border-radius: 6px;
|
28 |
+
}
|
29 |
+
|
30 |
+
::-webkit-scrollbar-thumb:hover {
|
31 |
+
background: #9adfff;
|
32 |
+
}
|
33 |
+
|
34 |
+
/* CSS for desktop devices */
|
35 |
+
@media screen and (min-width: 768px) {
|
36 |
+
.chat {
|
37 |
+
margin-left: auto;
|
38 |
+
margin-right: auto;
|
39 |
+
max-width: 800px;
|
40 |
+
height: calc(100vh - 200px);
|
41 |
+
overflow-y: auto;
|
42 |
+
padding-right: 10px;
|
43 |
+
display: flex;
|
44 |
+
flex-direction: column-reverse;
|
45 |
+
word-break: break-word;
|
46 |
+
overflow-wrap: anywhere;
|
47 |
+
background-size: cover;
|
48 |
+
background-position: bottom;
|
49 |
+
border-radius: 2%;
|
50 |
+
}
|
51 |
+
|
52 |
+
.message {
|
53 |
+
display: grid;
|
54 |
+
grid-template-columns: 60px minmax(0, 1fr);
|
55 |
+
padding-bottom: 28px;
|
56 |
+
font-size: 1px;
|
57 |
+
/*Character image distance from the left edge of the chat area*/
|
58 |
+
padding-left: 10px;
|
59 |
+
/*Change 'Quicksand' to a font you like and have installed on your PC or leave it as is*/
|
60 |
+
font-family: Quicksand Medium, Arial, sans-serif;
|
61 |
+
line-height: 1.428571429;
|
62 |
+
}
|
63 |
+
|
64 |
+
.circle-you {
|
65 |
+
background-color: rgba(0, 0, 0, 0);
|
66 |
+
}
|
67 |
+
|
68 |
+
.circle-bot {
|
69 |
+
background-color: rgba(0, 0, 0, 0);
|
70 |
+
}
|
71 |
+
|
72 |
+
.circle-bot img,
|
73 |
+
.circle-you img {
|
74 |
+
width: 100%;
|
75 |
+
height: 100%;
|
76 |
+
object-fit: cover;
|
77 |
+
}
|
78 |
+
|
79 |
+
.circle-you, .circle-bot, .circle-bot img,
|
80 |
+
.circle-you img {
|
81 |
+
/*You can set the size of the profile images here, but if you do, you have to also adjust the .text{padding-left: 90px} to a different number according to the width of the image which is right below here*/
|
82 |
+
width: 110px;
|
83 |
+
height: 140px;
|
84 |
+
/*Change the border roundness of character images*/
|
85 |
+
border-radius: 20%;
|
86 |
+
box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
|
87 |
+
transition: transform 0.3s ease;
|
88 |
+
}
|
89 |
+
|
90 |
+
.text {
|
91 |
+
/*Change this to move the message box further left or right depending on the size of your profile pic*/
|
92 |
+
padding-left: 60px;
|
93 |
+
text-shadow: 0px 0px 9px rgba(0, 0, 0, 0.9);
|
94 |
+
}
|
95 |
+
|
96 |
+
.text p {
|
97 |
+
margin-top: 2px;
|
98 |
+
}
|
99 |
+
|
100 |
+
.username {
|
101 |
+
padding-left: 10px;
|
102 |
+
font-size: 20px;
|
103 |
+
font-weight: bold;
|
104 |
+
padding: 3px;
|
105 |
+
text-shadow: 1px 1px 2px rgba(0, 0, 0, 1);
|
106 |
+
}
|
107 |
+
|
108 |
+
.message-body {
|
109 |
+
position: relative;
|
110 |
+
border-radius: 1rem;
|
111 |
+
border-radius: 20px;
|
112 |
+
/*Makes a pointy top left corner of the message*/
|
113 |
+
border-top-left-radius: 4px;
|
114 |
+
padding: 10px;
|
115 |
+
padding-top: 5px;
|
116 |
+
/*Message gradient background color - remove the line bellow if you don't want a background color or gradient*/
|
117 |
+
background: linear-gradient(to bottom, #44566334, #6e647934);
|
118 |
+
|
119 |
+
-webkit-backdrop-filter: blur(7px);
|
120 |
+
backdrop-filter: blur(7px);
|
121 |
+
box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
|
122 |
+
}
|
123 |
+
|
124 |
+
.message-body img {
|
125 |
+
max-width: 300px;
|
126 |
+
max-height: 300px;
|
127 |
+
border-radius: 20px;
|
128 |
+
}
|
129 |
+
|
130 |
+
.message-body p {
|
131 |
+
margin-bottom: 0 !important;
|
132 |
+
font-size: 17px !important;
|
133 |
+
line-height: 1.428571429 !important;
|
134 |
+
}
|
135 |
+
|
136 |
+
.message-body li {
|
137 |
+
margin-top: 0.5em !important;
|
138 |
+
margin-bottom: 0.5em !important;
|
139 |
+
}
|
140 |
+
|
141 |
+
.message-body li > p {
|
142 |
+
display: inline !important;
|
143 |
+
}
|
144 |
+
|
145 |
+
.message-body code {
|
146 |
+
overflow-x: auto;
|
147 |
+
}
|
148 |
+
.message-body :not(pre) > code {
|
149 |
+
white-space: normal !important;
|
150 |
+
}
|
151 |
+
|
152 |
+
/*Change both of the lines at the bottom to the color which you want the italic text to be that happens when you put stars before and after words*/
|
153 |
+
.dark .message-body p em {
|
154 |
+
color: rgb(214, 196, 255) !important;
|
155 |
+
}
|
156 |
+
|
157 |
+
.message-body p em {
|
158 |
+
color: rgb(107, 86, 145) !important;
|
159 |
+
}
|
160 |
+
}
|
161 |
+
|
162 |
+
/* CSS for mobile devices */
|
163 |
+
@media screen and (max-width: 767px) {
|
164 |
+
.chat {
|
165 |
+
margin-left: auto;
|
166 |
+
margin-right: auto;
|
167 |
+
max-width: 800px;
|
168 |
+
height: calc(100vh - 100px);
|
169 |
+
overflow-y: auto;
|
170 |
+
padding-right: 10px;
|
171 |
+
display: flex;
|
172 |
+
flex-direction: column-reverse;
|
173 |
+
word-break: break-word;
|
174 |
+
overflow-wrap: anywhere;
|
175 |
+
background-size: cover;
|
176 |
+
background-position: bottom;
|
177 |
+
}
|
178 |
+
|
179 |
+
.message {
|
180 |
+
display: grid;
|
181 |
+
grid-template-columns: 60px minmax(0, 1fr);
|
182 |
+
padding-bottom: 28px;
|
183 |
+
font-size: 18px;
|
184 |
+
/*Character image distance from the left edge of the chat area*/
|
185 |
+
padding-left: 10px;
|
186 |
+
/*Change to a font you like and have installed on your phone or leave it as is*/
|
187 |
+
font-family: Quicksand Medium, Arial, sans-serif;
|
188 |
+
line-height: 1.428571429;
|
189 |
+
}
|
190 |
+
|
191 |
+
.circle-you {
|
192 |
+
background-color: rgba(0, 0, 0, 0);
|
193 |
+
}
|
194 |
+
|
195 |
+
.circle-bot {
|
196 |
+
background-color: rgba(0, 0, 0, 0);
|
197 |
+
}
|
198 |
+
|
199 |
+
.circle-bot img,
|
200 |
+
.circle-you img {
|
201 |
+
width: 100%;
|
202 |
+
height: 100%;
|
203 |
+
object-fit: cover;
|
204 |
+
}
|
205 |
+
|
206 |
+
.circle-you, .circle-bot, .circle-bot img,
|
207 |
+
.circle-you img {
|
208 |
+
/*You can set the size of the profile images here, but if you do, you have to also adjust the .text{padding-left: 90px} to a different number according to the width of the image which is right below here*/
|
209 |
+
width: 60px;
|
210 |
+
height: 80px;
|
211 |
+
/*Change the border roundness of character images*/
|
212 |
+
border-radius: 10%;
|
213 |
+
box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
|
214 |
+
}
|
215 |
+
|
216 |
+
.text {
|
217 |
+
/*Change this to move the message box further left or right depending on the size of your profile pic*/
|
218 |
+
padding-left: 5px;
|
219 |
+
text-shadow: 0px 0px 9px rgba(0, 0, 0, 0.9);
|
220 |
+
}
|
221 |
+
|
222 |
+
.text p {
|
223 |
+
margin-top: 2px;
|
224 |
+
}
|
225 |
+
|
226 |
+
.username {
|
227 |
+
padding-left: 10px;
|
228 |
+
font-size: 16px;
|
229 |
+
font-weight: bold;
|
230 |
+
padding: 3px;
|
231 |
+
text-shadow: 1px 1px 2px rgba(0, 0, 0, 1);
|
232 |
+
}
|
233 |
+
|
234 |
+
.message-body {
|
235 |
+
position: relative;
|
236 |
+
border-radius: 1rem;
|
237 |
+
border-radius: 20px;
|
238 |
+
/*Makes a pointy top left corner of the message*/
|
239 |
+
border-top-left-radius: 5px;
|
240 |
+
padding: 10px;
|
241 |
+
padding-top: 5px;
|
242 |
+
/*Message gradient background color - remove the line bellow if you don't want a background color or gradient*/
|
243 |
+
background: linear-gradient(to bottom, #44566334, #6e647934);
|
244 |
+
|
245 |
+
-webkit-backdrop-filter: blur(7px);
|
246 |
+
backdrop-filter: blur(7px);
|
247 |
+
box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
|
248 |
+
}
|
249 |
+
|
250 |
+
.message-body img {
|
251 |
+
max-width: 300px;
|
252 |
+
max-height: 300px;
|
253 |
+
border-radius: 20px;
|
254 |
+
}
|
255 |
+
|
256 |
+
.message-body p {
|
257 |
+
margin-bottom: 0 !important;
|
258 |
+
font-size: 15px !important;
|
259 |
+
line-height: 1.428571429 !important;
|
260 |
+
}
|
261 |
+
|
262 |
+
.message-body li {
|
263 |
+
margin-top: 0.5em !important;
|
264 |
+
margin-bottom: 0.5em !important;
|
265 |
+
}
|
266 |
+
|
267 |
+
.message-body li > p {
|
268 |
+
display: inline !important;
|
269 |
+
}
|
270 |
+
|
271 |
+
.message-body code {
|
272 |
+
overflow-x: auto;
|
273 |
+
}
|
274 |
+
.message-body :not(pre) > code {
|
275 |
+
white-space: normal !important;
|
276 |
+
}
|
277 |
+
|
278 |
+
/*Change both of the lines at the bottom to the color which you want the italic text to be that happens when you put stars before and after words*/
|
279 |
+
.dark .message-body p em {
|
280 |
+
color: rgb(178, 178, 193) !important;
|
281 |
+
}
|
282 |
+
|
283 |
+
.message-body p em {
|
284 |
+
color: rgb(107, 86, 145) !important;
|
285 |
+
}
|
286 |
+
}
|