Chat CSS: fix ul, li, pre styles + remove redefinitions

This commit is contained in:
oobabooga 2023-06-18 01:56:43 -03:00
parent 0686a2e75f
commit 44f28830d1
7 changed files with 44 additions and 168 deletions

View file

@ -45,3 +45,46 @@ div.svelte-362y77>*, div.svelte-362y77>.form>* {
#main button {
min-width: 0 !important;
}
/*****************************************************/
/*************** Chat box declarations ***************/
/*****************************************************/
.chat {
margin-left: auto;
margin-right: auto;
max-width: 800px;
height: calc(100vh - 296px);
overflow-y: auto;
padding-right: 20px;
display: flex;
flex-direction: column-reverse;
word-break: break-word;
overflow-wrap: anywhere;
padding-top: 1px;
}
.message-body li {
margin-top: 0.5em !important;
margin-bottom: 0.5em !important;
}
.message-body li > p {
display: inline !important;
}
.message-body ul, .message-body ol {
font-size: 15px !important;
}
.message-body pre {
margin-bottom: 1.25em !important;
}
.message-body code {
overflow-x: auto;
}
.message-body :not(pre) > code {
white-space: normal !important;
}

View file

@ -1,19 +1,5 @@
/* All credits to TheEncrypted777: https://www.reddit.com/r/Oobabooga/comments/12xe6vq/updated_css_styling_with_color_customization_for/ */
.chat {
margin-left: auto;
margin-right: auto;
max-width: 800px;
height: calc(100vh - 296px);
overflow-y: auto;
padding-right: 20px;
display: flex;
flex-direction: column-reverse;
word-break: break-word;
overflow-wrap: anywhere;
padding-top: 1px;
}
.message {
display: grid;
grid-template-columns: 60px minmax(0, 1fr);
@ -112,23 +98,6 @@
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;
}
.dark .message-body p em {
color: rgb(138, 138, 138) !important;
}

View file

@ -1,17 +1,3 @@
.chat {
margin-left: auto;
margin-right: auto;
max-width: 800px;
height: calc(100vh - 296px);
overflow-y: auto;
padding-right: 20px;
display: flex;
flex-direction: column-reverse;
word-break: break-word;
overflow-wrap: anywhere;
padding-top: 1px;
}
.message {
display: grid;
grid-template-columns: 60px minmax(0, 1fr);
@ -43,9 +29,6 @@
object-fit: cover;
}
.text {
}
.text p {
margin-top: 5px;
}
@ -54,9 +37,6 @@
font-weight: bold;
}
.message-body {
}
.message-body img {
max-width: 300px;
max-height: 300px;
@ -69,23 +49,6 @@
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;
}
.dark .message-body p em {
color: rgb(138, 138, 138) !important;
}

View file

@ -1,17 +1,3 @@
.chat {
margin-left: auto;
margin-right: auto;
max-width: 800px;
height: calc(100vh - 296px);
overflow-y: auto;
padding-right: 20px;
display: flex;
flex-direction: column-reverse;
word-break: break-word;
overflow-wrap: anywhere;
padding-top: 1px;
}
.message {
padding-bottom: 25px;
font-size: 15px;
@ -104,23 +90,6 @@
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;
}
.dark .message-body p em {
color: rgb(138, 138, 138) !important;
}

View file

@ -1,17 +1,3 @@
.chat {
margin-left: auto;
margin-right: auto;
max-width: 800px;
height: calc(100vh - 296px);
overflow-y: auto;
padding-right: 20px;
display: flex;
flex-direction: column-reverse;
word-break: break-word;
overflow-wrap: anywhere;
padding-top: 1px;
}
.message {
padding-bottom: 25px;
font-size: 15px;
@ -48,9 +34,6 @@
margin-top: 5px;
}
.message-body {
}
.message-body img {
max-width: 300px;
max-height: 300px;
@ -63,23 +46,6 @@
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;
}
.dark .message-body p em {
color: rgb(138, 138, 138) !important;
}

View file

@ -1,17 +1,3 @@
.chat {
margin-left: auto;
margin-right: auto;
max-width: 800px;
height: calc(100vh - 296px);
overflow-y: auto;
padding-right: 20px;
display: flex;
flex-direction: column-reverse;
word-break: break-word;
overflow-wrap: anywhere;
padding-top: 1px;
}
.message {
display: grid;
grid-template-columns: 60px 1fr;
@ -25,32 +11,12 @@
display: none;
}
.message-body {
}
.message-body p {
font-size: 15px !important;
line-height: 1.75 !important;
margin-bottom: 1.25em !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;
}
.dark .message-body p em {
color: rgb(198, 202, 214) !important;
}