|
.chat { |
|
margin-left: auto; |
|
margin-right: auto; |
|
max-width: 800px; |
|
height: calc(100vh - 300px); |
|
overflow-y: auto; |
|
padding-right: 20px; |
|
display: flex; |
|
flex-direction: column-reverse; |
|
word-break: break-word; |
|
overflow-wrap: anywhere; |
|
} |
|
|
|
.message { |
|
display: grid; |
|
grid-template-columns: 60px minmax(0, 1fr); |
|
padding-bottom: 28px; |
|
font-size: 18px; |
|
font-family: Quicksand, Arial, sans-serif; |
|
line-height: 1.428571429; |
|
} |
|
|
|
.circle-you { |
|
width: 135px; |
|
height: 175px; |
|
background-color: rgb(255, 255, 255); |
|
border-radius: 1rem; |
|
border: 2px solid white; |
|
} |
|
|
|
.circle-bot { |
|
width: 135px; |
|
height: 175px; |
|
background-color: rgb(255, 255, 255); |
|
border-radius: 1rem; |
|
border: 2px solid white; |
|
} |
|
|
|
.circle-bot img, |
|
.circle-you img { |
|
border-radius: 10%; |
|
width: 100%; |
|
height: 100%; |
|
object-fit: cover; |
|
} |
|
|
|
.text { |
|
padding-left: 90px; |
|
} |
|
|
|
.text p { |
|
margin-top: 2px; |
|
padding: 5px; |
|
border-top: 1px solid rgb(40, 50, 70); |
|
border-bottom: 1px solid rgb(40, 50, 70); |
|
} |
|
|
|
.username { |
|
padding-left: 10px; |
|
font-size: 22px; |
|
font-weight: bold; |
|
border-top: 1px solid rgb(255, 255, 255); |
|
padding: 3px; |
|
} |
|
|
|
.message-body { |
|
border-radius: 1rem; |
|
border: 1px solid rgba(255, 255, 255, 0.459); |
|
border-radius: 10px; |
|
padding: 10px; |
|
padding-top: 5px; |
|
} |
|
|
|
.message-body img { |
|
max-width: 300px; |
|
max-height: 300px; |
|
border-radius: 20px; |
|
} |
|
|
|
.message-body p { |
|
margin-bottom: 0 !important; |
|
font-size: 18px !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; |
|
} |
|
|
|
.dark .message-body p em { |
|
color: rgb(138, 138, 138) !important; |
|
} |
|
|
|
.message-body p em { |
|
color: rgb(110, 110, 110) !important; |
|
} |
|
|