File size: 8,297 Bytes
6606f46 a6b018a 6606f46 5410a6a 6606f46 5410a6a 6606f46 5410a6a 6606f46 5410a6a 6606f46 |
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 284 285 286 |
/*Any changes you make require you to restart oobabooga entirely and run it again to apply the changes*/
/*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.*/
/*.chat {*/
/* background: url('file/cache/BG01.png') no-repeat center center;*/
/*}*/
.gradio-container {
/*Entire page background color*/
background: linear-gradient(to bottom, #142036, #21103b);
}
/*Scrollbar design*/
::-webkit-scrollbar {
width: 8px;
height: 12px;
}
::-webkit-scrollbar-track {
background: #364258;
}
::-webkit-scrollbar-thumb {
background: #667a8d;
border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
background: #9adfff;
}
/* CSS for desktop devices */
@media screen and (min-width: 768px) {
.chat {
margin-left: auto;
margin-right: auto;
max-width: 800px;
height: calc(100vh - 200px);
overflow-y: auto;
padding-right: 10px;
display: flex;
flex-direction: column-reverse;
word-break: break-word;
overflow-wrap: anywhere;
background-size: cover;
background-position: bottom;
border-radius: 2%;
}
.message {
display: grid;
grid-template-columns: 60px minmax(0, 1fr);
padding-bottom: 28px;
font-size: 15px;
/*Character image distance from the left edge of the chat area*/
padding-left: 10px;
/*Change 'Quicksand' to a font you like and have installed on your PC or leave it as is*/
font-family: Quicksand Medium, Arial, sans-serif;
line-height: 1.428571429;
}
.circle-you {
background-color: rgba(0, 0, 0, 0);
}
.circle-bot {
background-color: rgba(0, 0, 0, 0);
}
.circle-bot img,
.circle-you img {
width: 100%;
height: 100%;
object-fit: cover;
}
.circle-you, .circle-bot, .circle-bot img,
.circle-you img {
/*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*/
width: 110px;
height: 140px;
/*Change the border roundness of character images*/
border-radius: 20%;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
transition: transform 0.3s ease;
}
.text {
/*Change this to move the message box further left or right depending on the size of your profile pic*/
padding-left: 60px;
text-shadow: 0px 0px 9px rgba(0, 0, 0, 0.9);
}
.text p {
margin-top: 2px;
}
.username {
padding-left: 10px;
font-size: 20px;
font-weight: bold;
padding: 3px;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 1);
}
.message-body {
position: relative;
border-radius: 1rem;
border-radius: 20px;
/*Makes a pointy top left corner of the message*/
border-top-left-radius: 4px;
padding: 10px;
padding-top: 5px;
/*Message gradient background color - remove the line bellow if you don't want a background color or gradient*/
background: linear-gradient(to bottom, #44566334, #6e647934);
-webkit-backdrop-filter: blur(7px);
backdrop-filter: blur(7px);
box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}
.message-body img {
max-width: 300px;
max-height: 300px;
border-radius: 20px;
}
.message-body p {
margin-bottom: 0 !important;
font-size: 17px !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;
}
.message-body :not(pre) > code {
white-space: normal !important;
}
/*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*/
.dark .message-body p em {
color: rgb(154, 153, 178) !important;
}
.message-body p em {
color: rgb(222, 219, 255) !important;
}
}
/* CSS for mobile devices */
@media screen and (max-width: 767px) {
.chat {
margin-left: auto;
margin-right: auto;
max-width: 800px;
height: calc(100vh - 100px);
overflow-y: auto;
padding-right: 10px;
display: flex;
flex-direction: column-reverse;
word-break: break-word;
overflow-wrap: anywhere;
background-size: cover;
background-position: bottom;
}
.message {
display: grid;
grid-template-columns: 60px minmax(0, 1fr);
padding-bottom: 28px;
font-size: 18px;
/*Character image distance from the left edge of the chat area*/
padding-left: 10px;
/*Change to a font you like and have installed on your phone or leave it as is*/
font-family: Quicksand Medium, Arial, sans-serif;
line-height: 1.428571429;
}
.circle-you {
background-color: rgba(0, 0, 0, 0);
}
.circle-bot {
background-color: rgba(0, 0, 0, 0);
}
.circle-bot img,
.circle-you img {
width: 100%;
height: 100%;
object-fit: cover;
}
.circle-you, .circle-bot, .circle-bot img,
.circle-you img {
/*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*/
width: 60px;
height: 80px;
/*Change the border roundness of character images*/
border-radius: 10%;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}
.text {
/*Change this to move the message box further left or right depending on the size of your profile pic*/
padding-left: 5px;
text-shadow: 0px 0px 9px rgba(0, 0, 0, 0.9);
}
.text p {
margin-top: 2px;
}
.username {
padding-left: 10px;
font-size: 16px;
font-weight: bold;
padding: 3px;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 1);
}
.message-body {
position: relative;
border-radius: 1rem;
border-radius: 20px;
/*Makes a pointy top left corner of the message*/
border-top-left-radius: 5px;
padding: 10px;
padding-top: 5px;
/*Message gradient background color - remove the line bellow if you don't want a background color or gradient*/
background: linear-gradient(to bottom, #44566334, #6e647934);
-webkit-backdrop-filter: blur(7px);
backdrop-filter: blur(7px);
box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}
.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;
}
.message-body :not(pre) > code {
white-space: normal !important;
}
/*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*/
.dark .message-body p em {
color: rgb(154, 153, 178) !important;
}
.message-body p em {
color: rgb(222, 219, 255) !important;
}
} |