merged petclinic.css

This commit is contained in:
Oded Shopen 2024-09-22 11:02:12 +03:00
commit 2264000428

View file

@ -9387,71 +9387,98 @@ table td.action-column {
hr { hr {
border-top: 1px dotted #34302D; } border-top: 1px dotted #34302D; }
/* Chatbox container */
.chatbox { .chatbox {
position: fixed; position: fixed;
bottom: 0; bottom: 10px;
right: 0; right: 10px;
width: 300px; width: 300px;
border-radius: 10px 10px 0 0; background-color: #f1f1f1;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); border-radius: 10px;
font-family: Arial, sans-serif; box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
background-color: #f0f0f0; display: flex;
overflow: hidden; } flex-direction: column; }
.chatbox.minimized { .chatbox.minimized .chatbox-content {
height: 40px; } height: 40px;
.chatbox-header { /* Height when minimized (header only) */ }
background-color: #6db33f; .chatbox.minimized .chatbox-messages,
color: white; .chatbox.minimized .chatbox-footer {
padding: 10px; display: none; }
cursor: pointer;
font-weight: bold; /* Header styling */
text-align: center; } .chatbox-header {
.chatbox-content { background-color: #075E54;
height: 400px; color: white;
display: flex; padding: 10px;
flex-direction: column; text-align: center;
justify-content: space-between; border-top-left-radius: 10px;
background-color: white; border-top-right-radius: 10px;
transition: height 0.3s ease; } cursor: pointer; }
.chatbox-messages {
padding: 10px; /* Chatbox content styling */
overflow-y: auto; .chatbox-content {
height: 90%; display: flex;
display: flex; flex-direction: column;
flex-direction: column; height: 400px;
gap: 10px; } /* Adjust to desired height */
.chatbox-messages .chat-bubble { overflow: hidden;
padding: 10px; /* Hide overflow to make it scrollable */ }
border-radius: 15px;
max-width: 70%; .chatbox-messages {
word-wrap: break-word; } flex-grow: 1;
.chatbox-messages .chat-bubble.user { overflow-y: auto;
background-color: #34302D; /* Allows vertical scrolling */
color: white; padding: 10px; }
align-self: flex-end; }
.chatbox-messages .chat-bubble.bot { /* Chat bubbles styling */
background-color: #838789; .chat-bubble {
color: black; max-width: 80%;
align-self: flex-start; } padding: 10px;
.chatbox-footer { border-radius: 20px;
display: flex; margin-bottom: 10px;
padding: 10px; position: relative;
background-color: #f1f1f1; } word-wrap: break-word;
.chatbox-footer input { font-size: 14px; }
flex: 1; .chat-bubble strong {
padding: 10px; font-weight: bold; }
border-radius: 5px; .chat-bubble em {
border: 1px solid #34302D; } font-style: italic; }
.chatbox-footer button { .chat-bubble.user {
margin-left: 10px; background-color: #dcf8c6;
padding: 10px 20px; /* WhatsApp-style light green */
background-color: #6db33f; margin-left: auto;
color: white; text-align: right;
border: none; border-bottom-right-radius: 0; }
border-radius: 5px; .chat-bubble.bot {
cursor: pointer; } background-color: #ffffff;
.chatbox-footer button:hover { margin-right: auto;
background-color: #568d32; } text-align: left;
border-bottom-left-radius: 0;
border: 1px solid #e1e1e1; }
/* Input field and button */
.chatbox-footer {
padding: 10px;
background-color: #f9f9f9;
display: flex; }
.chatbox-footer input {
flex-grow: 1;
padding: 10px;
border-radius: 20px;
border: 1px solid #ccc;
margin-right: 10px;
outline: none; }
.chatbox-footer button {
background-color: #075E54;
color: white;
border: none;
padding: 10px;
border-radius: 50%;
cursor: pointer; }
.chatbox-footer button:hover {
background-color: #128C7E; }
@font-face { @font-face {
font-family: 'varela_roundregular'; font-family: 'varela_roundregular';
@ -9583,4 +9610,118 @@ strong {
margin-top: 10px; margin-top: 10px;
margin-bottom: 30px; } } margin-bottom: 30px; } }
/*# sourceMappingURL=../../../../../../target/petclinic.css.map */ /*# sourceMappingURL=../../../../../../target/petclinic.css.map */
/* Chatbox container */
.chatbox {
position: fixed;
bottom: 10px;
right: 10px;
width: 300px;
background-color: #f1f1f1;
border-radius: 10px;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
display: flex;
flex-direction: column;
}
/* Header styling */
.chatbox-header {
background-color: #075E54;
color: white;
padding: 10px;
text-align: center;
border-top-left-radius: 10px;
border-top-right-radius: 10px;
cursor: pointer;
}
/* Chatbox content styling */
.chatbox-content {
display: flex;
flex-direction: column;
height: 400px; /* Adjust to desired height */
overflow: hidden; /* Hide overflow to make it scrollable */
}
/* Minimize style */
.chatbox.minimized .chatbox-content {
height: 40px; /* Height when minimized (header only) */
}
.chatbox.minimized .chatbox-messages,
.chatbox.minimized .chatbox-footer {
display: none;
}
.chatbox-messages {
flex-grow: 1;
overflow-y: auto; /* Allows vertical scrolling */
padding: 10px;
}
/* Chat bubbles styling */
.chat-bubble {
max-width: 80%;
padding: 10px;
border-radius: 20px;
margin-bottom: 10px;
position: relative;
word-wrap: break-word;
font-size: 14px;
}
/* Ensure bold and italic styles are handled */
.chat-bubble strong {
font-weight: bold;
}
.chat-bubble em {
font-style: italic;
}
.chat-bubble.user {
background-color: #dcf8c6; /* WhatsApp-style light green */
margin-left: auto;
text-align: right;
border-bottom-right-radius: 0;
}
.chat-bubble.bot {
background-color: #ffffff;
margin-right: auto;
text-align: left;
border-bottom-left-radius: 0;
border: 1px solid #e1e1e1;
}
/* Input field and button */
.chatbox-footer {
padding: 10px;
background-color: #f9f9f9;
display: flex;
}
.chatbox-footer input {
flex-grow: 1;
padding: 10px;
border-radius: 20px;
border: 1px solid #ccc;
margin-right: 10px;
outline: none;
}
.chatbox-footer button {
background-color: #075E54;
color: white;
border: none;
padding: 10px;
border-radius: 50%;
cursor: pointer;
}
.chatbox-footer button:hover {
background-color: #128C7E;
}