Create static/style.css
Browse files- static/style.css +120 -0
static/style.css
ADDED
|
@@ -0,0 +1,120 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
body {
|
| 2 |
+
font-family: sans-serif;
|
| 3 |
+
margin: 0;
|
| 4 |
+
padding: 0;
|
| 5 |
+
background-color: #f4f4f4;
|
| 6 |
+
display: flex;
|
| 7 |
+
flex-direction: column;
|
| 8 |
+
min-height: 100vh;
|
| 9 |
+
}
|
| 10 |
+
|
| 11 |
+
header {
|
| 12 |
+
background-color: #007bff;
|
| 13 |
+
color: white;
|
| 14 |
+
padding: 10px 20px;
|
| 15 |
+
text-align: center;
|
| 16 |
+
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
| 17 |
+
}
|
| 18 |
+
|
| 19 |
+
header h1 {
|
| 20 |
+
margin: 0;
|
| 21 |
+
font-size: 1.5em;
|
| 22 |
+
}
|
| 23 |
+
|
| 24 |
+
.chat-container {
|
| 25 |
+
flex-grow: 1;
|
| 26 |
+
display: flex;
|
| 27 |
+
flex-direction: column;
|
| 28 |
+
max-width: 800px;
|
| 29 |
+
margin: 20px auto;
|
| 30 |
+
background-color: #fff;
|
| 31 |
+
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
| 32 |
+
border-radius: 8px;
|
| 33 |
+
overflow: hidden;
|
| 34 |
+
}
|
| 35 |
+
|
| 36 |
+
.chatbox {
|
| 37 |
+
flex-grow: 1;
|
| 38 |
+
padding: 20px;
|
| 39 |
+
overflow-y: auto;
|
| 40 |
+
max-height: 60vh; /* Adjust as needed */
|
| 41 |
+
display: flex;
|
| 42 |
+
flex-direction: column;
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
.message {
|
| 46 |
+
margin-bottom: 15px;
|
| 47 |
+
padding: 10px 15px;
|
| 48 |
+
border-radius: 5px;
|
| 49 |
+
max-width: 80%;
|
| 50 |
+
word-wrap: break-word; /* Ensure long words wrap */
|
| 51 |
+
}
|
| 52 |
+
|
| 53 |
+
.user-message {
|
| 54 |
+
align-self: flex-end;
|
| 55 |
+
background-color: #dcf8c6;
|
| 56 |
+
color: #333;
|
| 57 |
+
}
|
| 58 |
+
|
| 59 |
+
.assistant-message {
|
| 60 |
+
align-self: flex-start;
|
| 61 |
+
background-color: #e9e9eb;
|
| 62 |
+
color: #333;
|
| 63 |
+
}
|
| 64 |
+
|
| 65 |
+
.input-area {
|
| 66 |
+
display: flex;
|
| 67 |
+
padding: 15px 20px;
|
| 68 |
+
border-top: 1px solid #eee;
|
| 69 |
+
gap: 10px; /* Space between input and buttons */
|
| 70 |
+
}
|
| 71 |
+
|
| 72 |
+
.input-area input[type="text"] {
|
| 73 |
+
flex-grow: 1;
|
| 74 |
+
padding: 10px;
|
| 75 |
+
border: 1px solid #ccc;
|
| 76 |
+
border-radius: 4px;
|
| 77 |
+
font-size: 1em;
|
| 78 |
+
}
|
| 79 |
+
|
| 80 |
+
.input-area button {
|
| 81 |
+
padding: 10px 15px;
|
| 82 |
+
background-color: #007bff;
|
| 83 |
+
color: white;
|
| 84 |
+
border: none;
|
| 85 |
+
border-radius: 4px;
|
| 86 |
+
cursor: pointer;
|
| 87 |
+
font-size: 1em;
|
| 88 |
+
transition: background-color 0.2s ease;
|
| 89 |
+
}
|
| 90 |
+
|
| 91 |
+
.input-area button:hover {
|
| 92 |
+
background-color: #0056b3;
|
| 93 |
+
}
|
| 94 |
+
|
| 95 |
+
.input-area button:disabled {
|
| 96 |
+
background-color: #cccccc;
|
| 97 |
+
cursor: not-allowed;
|
| 98 |
+
}
|
| 99 |
+
|
| 100 |
+
|
| 101 |
+
footer {
|
| 102 |
+
margin-top: auto; /* Push footer to the bottom */
|
| 103 |
+
background-color: #333;
|
| 104 |
+
color: white;
|
| 105 |
+
text-align: center;
|
| 106 |
+
padding: 10px 20px;
|
| 107 |
+
font-size: 0.9em;
|
| 108 |
+
}
|
| 109 |
+
|
| 110 |
+
footer p {
|
| 111 |
+
margin: 0;
|
| 112 |
+
}
|
| 113 |
+
|
| 114 |
+
/* Optional: Styling for loading indicator */
|
| 115 |
+
.loading-indicator {
|
| 116 |
+
font-style: italic;
|
| 117 |
+
color: #888;
|
| 118 |
+
align-self: flex-start;
|
| 119 |
+
margin-left: 10px;
|
| 120 |
+
}
|