Spaces:
Sleeping
Sleeping
Update static/styles.css
Browse files- static/styles.css +25 -4
static/styles.css
CHANGED
|
@@ -5,18 +5,23 @@ body {
|
|
| 5 |
display: flex;
|
| 6 |
justify-content: center;
|
| 7 |
align-items: center;
|
| 8 |
-
height: 100vh;
|
| 9 |
background-color: #f0f2f5;
|
|
|
|
| 10 |
}
|
| 11 |
|
| 12 |
.chat-container {
|
| 13 |
-
width:
|
| 14 |
-
|
|
|
|
|
|
|
| 15 |
border: 1px solid #ccc;
|
| 16 |
border-radius: 10px;
|
| 17 |
overflow: hidden;
|
| 18 |
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
| 19 |
background-color: white;
|
|
|
|
|
|
|
| 20 |
}
|
| 21 |
|
| 22 |
.chat-header {
|
|
@@ -25,12 +30,14 @@ body {
|
|
| 25 |
padding: 10px;
|
| 26 |
text-align: center;
|
| 27 |
font-size: 20px;
|
|
|
|
| 28 |
}
|
| 29 |
|
| 30 |
.chat-messages {
|
| 31 |
-
|
| 32 |
overflow-y: auto;
|
| 33 |
padding: 20px;
|
|
|
|
| 34 |
}
|
| 35 |
|
| 36 |
.bot-message {
|
|
@@ -39,6 +46,7 @@ body {
|
|
| 39 |
margin: 10px 0;
|
| 40 |
border-radius: 5px;
|
| 41 |
max-width: 70%;
|
|
|
|
| 42 |
}
|
| 43 |
|
| 44 |
.user-message {
|
|
@@ -49,12 +57,14 @@ body {
|
|
| 49 |
max-width: 70%;
|
| 50 |
margin-left: auto;
|
| 51 |
text-align: right;
|
|
|
|
| 52 |
}
|
| 53 |
|
| 54 |
.chat-input {
|
| 55 |
display: flex;
|
| 56 |
padding: 10px;
|
| 57 |
border-top: 1px solid #ccc;
|
|
|
|
| 58 |
}
|
| 59 |
|
| 60 |
.chat-input input {
|
|
@@ -62,6 +72,7 @@ body {
|
|
| 62 |
padding: 5px;
|
| 63 |
border: 1px solid #ccc;
|
| 64 |
border-radius: 5px;
|
|
|
|
| 65 |
}
|
| 66 |
|
| 67 |
.chat-input button {
|
|
@@ -72,6 +83,11 @@ body {
|
|
| 72 |
border: none;
|
| 73 |
border-radius: 5px;
|
| 74 |
cursor: pointer;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 75 |
}
|
| 76 |
|
| 77 |
.option-button {
|
|
@@ -83,6 +99,7 @@ body {
|
|
| 83 |
border: none;
|
| 84 |
border-radius: 5px;
|
| 85 |
cursor: pointer;
|
|
|
|
| 86 |
}
|
| 87 |
|
| 88 |
.option-button.green {
|
|
@@ -92,3 +109,7 @@ body {
|
|
| 92 |
.option-button.red {
|
| 93 |
background-color: #f44336;
|
| 94 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
display: flex;
|
| 6 |
justify-content: center;
|
| 7 |
align-items: center;
|
| 8 |
+
min-height: 100vh;
|
| 9 |
background-color: #f0f2f5;
|
| 10 |
+
overflow: auto;
|
| 11 |
}
|
| 12 |
|
| 13 |
.chat-container {
|
| 14 |
+
width: 100%;
|
| 15 |
+
max-width: 400px; /* Maximum width for larger screens */
|
| 16 |
+
height: 80vh; /* Use viewport height for responsiveness */
|
| 17 |
+
max-height: 600px; /* Maximum height cap */
|
| 18 |
border: 1px solid #ccc;
|
| 19 |
border-radius: 10px;
|
| 20 |
overflow: hidden;
|
| 21 |
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
| 22 |
background-color: white;
|
| 23 |
+
display: flex;
|
| 24 |
+
flex-direction: column;
|
| 25 |
}
|
| 26 |
|
| 27 |
.chat-header {
|
|
|
|
| 30 |
padding: 10px;
|
| 31 |
text-align: center;
|
| 32 |
font-size: 20px;
|
| 33 |
+
flex-shrink: 0;
|
| 34 |
}
|
| 35 |
|
| 36 |
.chat-messages {
|
| 37 |
+
flex: 1; /* Allow messages to take available space */
|
| 38 |
overflow-y: auto;
|
| 39 |
padding: 20px;
|
| 40 |
+
box-sizing: border-box;
|
| 41 |
}
|
| 42 |
|
| 43 |
.bot-message {
|
|
|
|
| 46 |
margin: 10px 0;
|
| 47 |
border-radius: 5px;
|
| 48 |
max-width: 70%;
|
| 49 |
+
word-wrap: break-word;
|
| 50 |
}
|
| 51 |
|
| 52 |
.user-message {
|
|
|
|
| 57 |
max-width: 70%;
|
| 58 |
margin-left: auto;
|
| 59 |
text-align: right;
|
| 60 |
+
word-wrap: break-word;
|
| 61 |
}
|
| 62 |
|
| 63 |
.chat-input {
|
| 64 |
display: flex;
|
| 65 |
padding: 10px;
|
| 66 |
border-top: 1px solid #ccc;
|
| 67 |
+
flex-shrink: 0;
|
| 68 |
}
|
| 69 |
|
| 70 |
.chat-input input {
|
|
|
|
| 72 |
padding: 5px;
|
| 73 |
border: 1px solid #ccc;
|
| 74 |
border-radius: 5px;
|
| 75 |
+
box-sizing: border-box;
|
| 76 |
}
|
| 77 |
|
| 78 |
.chat-input button {
|
|
|
|
| 83 |
border: none;
|
| 84 |
border-radius: 5px;
|
| 85 |
cursor: pointer;
|
| 86 |
+
transition: background-color 0.3s;
|
| 87 |
+
}
|
| 88 |
+
|
| 89 |
+
.chat-input button:hover {
|
| 90 |
+
background-color: #d8702a;
|
| 91 |
}
|
| 92 |
|
| 93 |
.option-button {
|
|
|
|
| 99 |
border: none;
|
| 100 |
border-radius: 5px;
|
| 101 |
cursor: pointer;
|
| 102 |
+
transition: background-color 0.3s;
|
| 103 |
}
|
| 104 |
|
| 105 |
.option-button.green {
|
|
|
|
| 109 |
.option-button.red {
|
| 110 |
background-color: #f44336;
|
| 111 |
}
|
| 112 |
+
|
| 113 |
+
.option-button:hover {
|
| 114 |
+
opacity: 0.9;
|
| 115 |
+
}
|