77 lines
1.6 KiB
CSS
77 lines
1.6 KiB
CSS
/* Estilos específicos para o chat */
|
|
.chat-message {
|
|
margin-bottom: 1rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.chat-message.user-message {
|
|
align-items: flex-end;
|
|
}
|
|
|
|
.chat-message.bot-message {
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.message-bubble {
|
|
max-width: 80%;
|
|
padding: 0.8rem 1.2rem;
|
|
border-radius: 15px;
|
|
position: relative;
|
|
font-size: 0.95rem;
|
|
line-height: 1.4;
|
|
white-space: pre-wrap;
|
|
word-wrap: break-word;
|
|
}
|
|
|
|
.user-message .message-bubble {
|
|
background-color: #28a745;
|
|
color: white;
|
|
border-top-right-radius: 5px;
|
|
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.bot-message .message-bubble {
|
|
background-color: #f8f9fa;
|
|
border: 1px solid #e9ecef;
|
|
border-top-left-radius: 5px;
|
|
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
|
|
}
|
|
|
|
/* Estilos para código dentro das mensagens */
|
|
.message-bubble pre {
|
|
background: rgba(0, 0, 0, 0.05) !important;
|
|
border-radius: 8px;
|
|
margin: 0.5rem 0;
|
|
}
|
|
|
|
.user-message .message-bubble pre {
|
|
background: rgba(255, 255, 255, 0.1) !important;
|
|
}
|
|
|
|
/* Estilo para o container de mensagens */
|
|
#chat-messages {
|
|
padding: 1rem;
|
|
background: #fff;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
/* Estiliza a barra de rolagem */
|
|
#chat-messages::-webkit-scrollbar {
|
|
width: 8px;
|
|
}
|
|
|
|
#chat-messages::-webkit-scrollbar-track {
|
|
background: #f1f1f1;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
#chat-messages::-webkit-scrollbar-thumb {
|
|
background: #c1c1c1;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
#chat-messages::-webkit-scrollbar-thumb:hover {
|
|
background: #a8a8a8;
|
|
}
|