Scrollable code
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
.message-bot.htmx-added {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.message-bot {
|
||||
opacity: 1;
|
||||
transition: opacity 1s ease-out;
|
||||
}
|
||||
|
||||
.message-user.htmx-added {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.message-user {
|
||||
opacity: 1;
|
||||
transition: opacity 1s ease-out;
|
||||
}
|
||||
@@ -0,0 +1,109 @@
|
||||
.my-indicator {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.htmx-request .my-indicator {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
.htmx-request.my-indicator {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
svg text {
|
||||
font-family: 'Russo One', sans-serif;
|
||||
text-transform: uppercase;
|
||||
fill: #000;
|
||||
stroke: #000;
|
||||
font-size: 240px;
|
||||
}
|
||||
|
||||
.message-content {
|
||||
background-color: #303030;
|
||||
border-radius: 5px;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
#chat-messages .message-content pre {
|
||||
overflow-x: auto;
|
||||
white-space: pre;
|
||||
max-width: 662px;
|
||||
}
|
||||
|
||||
#chat-messages .message-content pre code {
|
||||
display: inline-block;
|
||||
min-width: 100%;
|
||||
white-space: inherit;
|
||||
}
|
||||
|
||||
.content {
|
||||
font-size: 14px;
|
||||
line-height: 1.5;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.content pre {
|
||||
font-family: monospace;
|
||||
background-color: #363636 !important;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
#chat-messages {
|
||||
max-width: 780px;
|
||||
margin: auto;
|
||||
width: 95%;
|
||||
margin-bottom: 180px;
|
||||
}
|
||||
|
||||
#chat-input-form {
|
||||
max-width: 900px;
|
||||
margin: auto;
|
||||
width: 98%;
|
||||
}
|
||||
|
||||
:root {
|
||||
--bulma-body-background-color: #202020;
|
||||
--bulma-primary: #126d0f;
|
||||
}
|
||||
|
||||
body,
|
||||
html {
|
||||
height: 100%;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.chat-input-container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
position: fixed;
|
||||
bottom: 10px;
|
||||
left: 0;
|
||||
right: 0;
|
||||
padding: 10px;
|
||||
max-width: 800px;
|
||||
margin: 0 auto;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.textarea-wrapper {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.textarea {
|
||||
width: 100%;
|
||||
padding-right: 140px;
|
||||
/* Adjust this value based on the button and dropdown width */
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.button-group {
|
||||
position: absolute;
|
||||
bottom: 10px;
|
||||
right: 10px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
Reference in New Issue
Block a user